A dropdown-based icon picker that allows users to select an icon from a list.
import { RecoilRoot } from "recoil"; import React, { useState } from "react"; import { IconPicker } from "@/ui/input/components/IconPicker"; export const MyComponent = () => { const [selectedIcon, setSelectedIcon] = useState(""); const handleIconChange = ({ iconKey, Icon }) => { console.log("Selected Icon:", iconKey); setSelectedIcon(iconKey); }; return ( <RecoilRoot> <IconPicker disabled={false} onChange={handleIconChange} selectedIconKey={selectedIcon} variant="primary" /> </RecoilRoot> ); };
As an open-source company, we welcome contributions through Github. Help us keep it up-to-date, accurate, and easy to understand by getting involved and sharing your ideas!