Skip to content

Chip

CSS

A 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.json

No 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.
  • removeLabelstringDefault RemoveNames the remove button for screen readers.

Keyboard

EnterRemove the chip, from its remove button

Reduced motion

Nothing here animates.