Skip to content
+

Chip

Chips are compact elements that represent an input, attribute, or action.

Chips allow users to enter information, make selections, filter content, or trigger actions.

While included here as a standalone component, the most common use will be in some form of input, so some of the behavior demonstrated here is not shown in context.

Basic chips

The Chip component supports 'outlined' and 'filled' variants.

Filled
Outlined
Press Enter to start editing

Colors

Use the color prop to assign a color from the theme palette.

Success
Warning
Primary
Secondary
Press Enter to start editing

Sizes

Use the size prop to control the size.

Small
Small
Press Enter to start editing

Adornments

You can add ornaments like icons or <Avatar> to the beginning or end of the component using the startAdornment and endAdornment props:

M
Maya Johnson
In progress
Completed
Press Enter to start editing

Delete button

Use <ChipDelete> as an adornment to add an accessible delete button. A onDelete callback is provided that runs when <ChipDelete> is clicked, and additionally when the Backspace or Delete keys are pressed while focused.

Photography
Nature
Press Enter to start editing

Actions

Pass <ChipButton> or <ChipLink> to the action prop to create interactive chips.

ChipButton

Use <ChipButton> for triggering actions:

Press Enter to start editing

Use <ChipLink> to navigate to a URL:

Press Enter to start editing

ChipDelete

<ChipDelete> cam be used to make interactive chips deletable. Both the action component and the delete button are discrete tab stops.

Press Enter to start editing

Disabled state

Both <ChipButton> and <ChipDelete> can receive focus normally when disabled to remain discoverable to assistive technology, which typically ignores disabled elements. Only focus and blur events will run. This can be individually disabled by with focusableWhenDisabled={false}.

Press Enter to start editing

API

See the documentation below for a complete reference to all of the props and classes available to the components mentioned here.