Chip
CSSA compact item, such as an attachment, that can be removed.
refund-policy.mdq3-tickets.csvnotes.mdRead only
Install
$ npx shadcn@latest add https://spotcheckui.com/r/chip.jsonNo motion engine needed.
Usage
import { Chip } from "@/components/spotcheck/chip"
<Chip onRemove={() => remove(file)} removeLabel={`Remove ${file}`}>{file}</Chip>Props
- onRemove
() => voidDefault —Shows a remove button. Pass it from a client component. - removeLabel
stringDefault RemoveNames the remove button for screen readers.
Keyboard
| Enter | Remove the chip, from its remove button |
|---|
Reduced motion
Nothing here animates.