Can you create this component for icon picker using Shadcn
I'll create a comprehensive icon picker component that matches the design in your screenshot, with tabs for Icons, Emojis, and Upload functionality.
The icon picker component I've created matches the design in your screenshot with three tabs:
The component is built using shadcn/ui components like Tabs, ScrollArea, Input, and Button. It uses Lucide React for the icons and includes a comprehensive emoji dataset.
To use this component in your project, you can import it and provide callback functions for when icons, emojis, or files are selected:
<IconPicker
onSelectIcon={(icon) => console.log("Selected icon:", icon)}
onSelectEmoji={(emoji) => console.log("Selected emoji:", emoji)}
onUploadIcon={(file) => console.log("Uploaded file:", file.name)}
/>
The demo page (/demo
) shows how to integrate both the icon picker and the create project modal in a complete interface.