Use the CChip component
mainThe CChip component is used to create compact, interactive UI elements for labels, tags, filters, and selections. It supports icons, avatars, removal controls, and keyboard navigation. Unlike badges, chips have a fixed size and more defined visual styles for indicating state.
Key Features
- Static Sizing: Chips do not scale with their parent by default.
- Interactivity: Chips can be
selectable,removable,active, ordisabled. - Accessibility: Focusable chips (
selectableorremovable) automatically gain focus and support keyboard navigation. - Visual Extensions: Supports leading icons and avatars.
import { CChip } from '@coreui/react';
// Basic usage
<CChip>Basic Chip</CChip>