A horizontal toolbar of icon buttons with bloom-open label reveal on hover/selection, accent dot indicator, and roving tabindex.
Dependencies
Interaction Type
Click an icon to select it. Hover or focus to bloom open the label. Click selected again to deselect.
Props
Options you can pass to customize this component.
valueControlled selected value.
defaultValueInitial selected value.
onValueChangeCalled when selection changes. null = deselected.
Installation
How to use
<IconBar value={tool} onValueChange={setTool} aria-label="Drawing tools">
<IconBarItem value="pen" label="Pen" icon={<PenIcon />} />
<IconBarItem value="eraser" label="Eraser" icon={<EraserIcon />} />
<IconBarItem value="fill" label="Fill" icon={<FillIcon />} disabled />
</IconBar>Source Code
Click the code icon in the top-right corner to view the source code.
License & Usage
// No code loaded.