Skip to content

Chip

<ts-chip> vv0.4.0

The ts-chip component.

Open in Storybook for interactive demos.

<ts-chip size="md" variant="neutral">Content</ts-chip>
PropertyAttributeTypeDefaultDescription
disableddisabledbooleanfalseWhether the chip is disabled.
outlineoutlinebooleanfalseWhether to render as outline style.
removableremovablebooleanfalseWhether the chip shows a remove button.
selectedselectedbooleanfalseWhether the chip is selected.
sizesize"lg" | "md" | "sm" | "xl" | "xs"'md'The chip’s size.
variantvariant"danger" | "info" | "neutral" | "primary" | "secondary" | "success" | "warning"'neutral'The chip’s semantic variant.
EventDetailBubblesComposedDescription
tsClickvoidYesYesEmitted when the chip body is clicked.
tsRemovevoidYesYesEmitted when the remove button is clicked.
NameDescription
*(default)*Default slot for chip label.
prefixIcon or content before the label.

Use ::part() to style internal elements:

PartDescription
baseThe chip container.
labelThe label wrapper.
prefixThe prefix slot wrapper.
removeThe remove button.
ts-chip::part(base) {
/* your custom styles */
}
<ts-chip size="md" variant="neutral">Content</ts-chip>
import { TsChip } from '@tessera-ui/react';
<TsChip size="md" variant="neutral">Content</TsChip>