Skip to Content
SmartUI

Chip

Compact toggle for filters and categories.

Usage

import { Chip } from '@smartui/react';
import '@smartui/react/styles.css';

When to use

  • Filtering a list.

When not to use

  • Showing a status. Use Badge.

Props

PropTypeDefaultDescription
isSelected, defaultSelected, onChangeboolean, boolean, (v) => void-
size'sm' | 'md''md'
onRemove() => void-Adds a remove button.
leadingIconReactNode-

Accessibility

  • Selected is marked by background, border and text color together.

On this page