Skip to content

IconPicker

Icon field: a square with the pick opens an icon grid.

Group: Inputs · Kind: macro

value · color
empty
open · the board set, allowNone

Open in the playground

The same specimen painted by React, SwiftUI, Compose and gpui.

exponential-ui-icon-picker on Web
exponential-ui-icon-picker on iOS
exponential-ui-icon-picker on Android
exponential-ui-icon-picker on Desktop
allowNone
Prop Type Required Bindable Description
value string – yes Picked icon name.
icons [icon] – – Offered; default the board set.
color string – – Hex tint of the pick.
allowNone boolean – – Adds a No icon row. Default false.
open boolean – yes Grid shows; bind it. Default false.
  • on.change: runs an action

None.

none

No basic catalog component maps here.

Box · Button · Icon · Popover · Text

Role: button

trigger = button named by the pick (Icon: rocket, else Pick an icon) opening a dialog; each cell a toggle button named by its icon, aria-pressed on the pick

Keys Action
Enter Space open; Tab moves through the cells
Enter Space on a cell pick it and close; Escape: close

Recipe parts: IconPicker/root IconPicker/none IconPicker/noneLabel IconPicker/scroll IconPicker/grid IconPicker/cell IconPicker/glyph IconPicker/trigger IconPicker/pick IconPicker/placeholder IconPicker/content

Keyed by: allowNone selected empty :hover :pressed :focus :disabled :checked :open :selected :invalid :dragover :warning :info

Themes · Write a theme

Icon · Button · Popover · Text · Form · FieldGroup · FormActions · SettingsRow