Content
Chip
A compact pill that toggles on and off for filters, or carries a remove control for picked values.
Group: Content. Exports: Chip. Halaska addition with no shadcn/ui equivalent.
Usage
import { Chip } from "./halaska-kit";
Chip props
childrenReactNode: Content.selectedboolean:onTogglefunction:onRemovefunction:iconReactNode: Icon shown before the content.
Accessibility
- Renders a native button, so Enter and Space toggle it.
- A chip with onToggle sets aria-pressed.
- A chip with onRemove is removed with Backspace or Delete while it has focus. The × inside it is not a separate Tab stop.
Used in
Halaska UI · Components · Patterns · Screens · Install