Chip
The Chip component displays compact elements that represent an input, attribute, or action. Supports different colors, sizes, and interactive features like removal. Inner label accepts the full Text-prop API via
labelProps.Examples
(8)Properties
(31)Playground
Basics
Wrap any label in a Chip to render a compact tag — the default
filled variant and primary color apply automatically.Semantic colors
Map the
color prop to semantic tokens like primary, success, warning, error, or gray so Chips inherit your design system palette without inline styles.Size scale
Select a
size from xs through 3xl to match the Chip density with the surrounding controls.Variant styles
Choose a
variant such as filled, outline, light, subtle, or gradient to adjust visual weight without changing the Chip label or color.surface is the neutral option: it fills from the theme's background tokens instead of the color palette, landing one step darker than whatever it sits on in both light and dark. That recessed read makes it the right pick for input tokens, filter pills, and other chrome that shouldn't look like a status color.Status dot
Add a leading status dot with the
dot prop. It defaults to the chip's resolved text color; override it with dotColor.Shadow depth
Use the
shadow prop from none to xl when a Chip needs extra elevation to stand out from nearby content.Removable tags
Provide an
onRemove handler to turn Chips into editable tags; the component renders a dismiss icon and calls your callback with no extra wiring.Scan to open this page on your phonereact-ui-library.com/components/Chip
</>
react-ui-library
100+ accessible, themeable components that work seamlessly across iOS, Android, and Web.
A Platform Blocks product.
Quick Links
Resources