Components

Chip

Selectable or dismissible pills for filters, tags, and compact choices with touch-friendly padding.

Tap to show a QR code for the Expo showcase deep link. The web preview below runs in the browser.

Loading...

Installation

Install the registry item directly, then add any package dependencies if you are setting the component up manually.

1

Install the component

Run the registry command below to add chip to your project.

watermelon add chip
2

Import the component

Import Chip from your local UI registry output.

Import

import { Chip } from "@/components/ui/chip";

Import

Import

import { Chip } from "@/components/ui/chip";

Usage

Use string children for simple labels, or pass custom nodes. Toggle selected for filter state, variant="outline" for outlined chips, and onRemove for a trailing remove affordance.

proptypedefaultdescription
selectedbooleanfalseHighlights the chip as active.
onRemove() => void-Shows a remove control beside the chip.