Skip to main content

Examples

Outlined

Outlined Selected

With Small Notification

With Dot

All Variants

Props

Chip

A compact element for filters, tags, or toggleable actions. When an onClick handler is provided, the chip renders as an interactive <button> with aria-pressed support.
boolean
default:"false"
Merge props onto a child element instead of rendering a wrapper.
boolean
default:"false"
Whether the chip is disabled.
boolean
default:"false"
Whether the chip uses a dashed border for add/create affordances. When selected, it becomes a subtle filled state with a solid border. Has no effect when variant="dark".
boolean
default:"false"
Whether to show a coloured status dot at the leading edge.
ReactNode
Icon element displayed before the label.
number
Numeric value for the notification badge. Uses the Count component for overflow formatting. Takes precedence over notificationLabel when both are provided.
string
Notification badge content (e.g. "99+"). Passed as a string for i18n support.
number
default:"99"
Maximum value before the badge shows overflow (e.g. "9+"). Only applies when notificationCount is set.
"16" | "20"
default:"20"
Height of the notification badge. "20" is the V2 Notification Count, a rounded square; "16" is a circle for dense rows such as page tab chips.
"alert" | "info" | "success" | "warning" | "default" | "brand" | "pink" | "contrast"
default:"brand"
Colour variant of the notification badge.
MouseEventHandler<HTMLElement>
Click handler — when provided, the chip renders as a <button> for accessibility.
boolean
default:"false"
Draws the unselected state as a 1px neutral-alphas-100 outline over a transparent background instead of the solid chip fill. This is the Figma V2 Insights Chips treatment, used where chips sit over a chart and a row of solid fills would compete with the plotted series. The selected state is unaffected — it stays filled — as are the dark and dotted variants.
ReactNode
Icon element displayed after the label.
boolean
default:"false"
Whether the chip is in a selected (pressed) state.
"32" | "40" | "36"
default:"32"
Height of the chip in pixels.
"dark" | "square" | "rounded"
default:"rounded"
Visual variant of the chip.

Exported types

Also exported from @fanvue/ui: ChipNotificationSize, ChipProps, ChipSize, ChipVariant.
Setup: Installation · Theming