@versini/ui-icon-picker
v3.0.2
Published
[](https://www.npmjs.com/package/@versini/ui-icon-picker)  in your project.
Usage
IconPicker
import { IconPicker } from "@versini/ui-icon-picker";
const MyComponent = () => {
const handleIconChange = (iconName: string) => {
console.info("Selected icon:", iconName);
};
return <IconPicker onChange={handleIconChange} />;
};IconRenderer
Render a single icon by name:
import { IconRenderer } from "@versini/ui-icon-picker";
const MyComponent = () => {
return <IconRenderer icon="IconSettings" className="size-6" />;
};Props
IconPicker
| Prop | Type | Default | Description |
| --------------- | ------------------------------------------------ | -------- | ------------------------------------------------- |
| onChange | (icon: string) => void | required | Callback fired when an icon is selected. |
| className | string | - | Optional class name for the root element. |
| textInputMode | "dark" \| "light" \| "system" \| "alt-system" | "dark" | Theme mode for the search input. |
| noSearch | boolean | false | If true, the search input is hidden. |
IconRenderer
| Prop | Type | Default | Description |
| ------ | -------- | -------- | ------------------------------------------------------------ |
| icon | string | required | The name of the icon component to render (e.g. "IconSettings"). |
| ...rest | SVGProps | - | Any additional props are passed to the underlying <svg> element. |
