IconPicker
Searchable in-app browser for the @ramtt/icons catalog. Supports line, solid, micro variants with category chips and keyboard nav.
Preview
Usage
import { IconPicker } from '@ramtt/ui'
<IconPicker value="IconATP" onChange={setIcon} variant="micro" />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | Currently selected icon name (e.g. "IconATP") |
| onChange* | (name: string) => void | — | Called when an icon is chosen |
| variant | 'line' | 'solid' | 'micro' | 'micro' | Icon variant rendered in the grid |
| categories | string[] | — | Restrict pickable set to these catalog categories |
| size | number | 20 | Render size in grid cells (px) |
| placeholder | string | 'Select icon…' | Trigger placeholder when no value |
| onClose | () => void | — | Called when the popover closes |