--- title: Icon Picker sidebar_position: 5 sidebar_custom_props: icon: TbColorPicker --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import { SandpackEditor} from '@site/src/ui/SandpackEditor' import iconPickerCode from '!!raw-loader!@site/src/ui/input/components/iconPickerCode.js' A dropdown-based icon picker that allows users to select an icon from a list.
Props Type Description Default
disabled boolean Disables the icon picker if set to `true`
onChange function The callback function triggered when the user selects an icon. It receives an object with `iconKey` and `Icon` properties
selectedIconKey string The key of the initially selected icon
onClickOutside function Callback function triggered when the user clicks outside the dropdown
onClose function Callback function triggered when the dropdown is closed
onOpen function Callback function triggered when the dropdown is opened
variant string The visual style variant of the clickable icon. Options include: `primary`, `secondary`, and `tertiary` secondary