oks-ui

Data Display

Compact tag or pill element, closable and selectable.

Playground

Chip

Press the chip or its close button to see events fire.

Options

11 options across 3 groups

Content

Chip label and avatar.

Appearance

Visual style, color, size, radius, and elevation.

Behavior & states

Closable and selectable are both real props whose presence -- not a boolean -- turns the feature on, so try them here to see the actual close button / click-to-toggle behavior.

Props

children

ReactNode

Default:

Chip label content.

avatar

ReactNode

Default:

Avatar rendered at the start of the chip.

startContent

ReactNode

Default:

Content rendered before the label.

endContent

ReactNode

Default:

Content rendered after the label, before the close button.

closeIcon

ReactNode

Default:

Overrides the default × close icon.