Installation
npx shadcn@latest add @iconiq/icon-barProps
IconBar
Horizontal toolbar of compact icon chips. Hover or focus previews labels; clicking selects one item and keeps it expanded.
valuestring | nulldefaultValuestring | nullonValueChange(value: string | null) => voidclassNamestringchildrenReact.ReactNodeIconBarItem
Individual pill chip with a Lucide icon and animated label reveal on hover, focus, or selection.
iconLucideIconRequired
labelstringRequired
valuestringonClick(event: React.MouseEvent<HTMLButtonElement>) => voiddisabledbooleanDefault false
classNamestringOnly one item stays expanded at a time. Clicking a chip selects it; clicking another moves selection; clicking the active chip again collapses it.
Hover and keyboard focus preview labels on non-selected chips. Give each item a unique value when labels repeat.
In controlled mode, update value from onValueChange (including null on deselect) for the UI to stay in sync.
Registry bundle
Install the exact registry entry shown on the right when you want the component file and its declared runtime dependencies together.
Dependencies: @base-ui/react/toggle, @base-ui/react/toggle-group, motion, lucide-react.
This page documents the Base UI install only. Icon Bar uses Base UI Toggle Group and Toggle for selection.
The generated registry file is /r/icon-bar.json.