Components
Icon Picker
BetaBeta — the props contract is close to final, but small breaking changes can still land.Searchable icon grid and color swatches using an app-supplied icon catalog.
Composition
Icon grid
The app supplies icons, search keywords, and color choices. IconPickerColors controls a separate color value; apply it through --cui-icon-picker-foreground.
- <IconPicker>
- <IconPickerSearch />
- <IconPickerColors />
- <IconPickerContent />
Installation
The Control UI source installs this primitive from src/registry/sources/control-ui/ui/icon-picker.tsx.
Dependencies
Raw code
Primary installed source
Knobs
Typed custom properties the recipe paints with. Set one on the root — style, a utility class, or a skin — and every slot inherits it.
--cui-icon-picker-* · 6 knobsHow the cascade resolves--cui-icon-picker-cell-size<length-percentage>calc(var(--spacing) * 10)--cui-icon-picker-cell-radius<length-percentage>var(--radius-control)--cui-icon-picker-icon-size<length-percentage>calc(var(--spacing) * 4)--cui-icon-picker-foreground<color>var(--foreground)--cui-icon-picker-cell-hover-background<color>var(--accent)--cui-icon-picker-cell-pressed-background<color>var(--accent)