Skip to content

Chip

A chip represents a set of keywords that help label, organize, and categorize items.

Import

import { Chip } from "@cfa/react-core";

Live Editor

Examples

Color

There are several color variations with the Chip component, with blue as the default.

The following options are also available: "cream" | "pink" | "lightOrange" | "orange" | "darkGreen" | "navy" | "purple" | "gray" | "success" | "warning" | "error".

Variant

The Chip component has two variants: "filled" by default, and "outlined".

Leading Element

The Chip component can have a leading element, such as an icon.

Props

Visit the Documentation Site for the full list of props.

NameTypeDefaultDescription
childrenReactNode-The chip content or label.
classNamestring-CSS class names to apply custom styling.
color"blue" | "cream" | "pink" | "lightOrange" | "orange" | "darkGreen" | "navy" | "purple" | "gray" | "success" | "warning" | "error"falseThe color of the chip.
idstring-The unique identifier for the DOM element.
roleAriaRole-The ARIA role assigned to the element to improve accessibility. Example roles include "button", "navigation", "dialog", etc.
styleCSSProperties-Inline styles specified as a React-compatible CSS properties object.
variant"filled" | "outlined"filledVariant for the chip.