<BlockIconSelector/>
Allows you to insert an icon picker into a block. Fetches the available T2 icons from the window object, and lets you use them in blocks.
The BlockIconSelector
component is a wrapper around the IconSelector
component, to be used in block toolbars.
Available props
Prop | Type | Description |
---|---|---|
allowedIcons? | string[]; | Array of icon names you want to make available for the user. |
onSelect? | (args1: string | undefined) => string | void; |
label? | string; | Label for the component. |
icon? | string; | Icon to be used for the block toolbar button. Defaults to info if none is given. |