Icon Picker Popover
ui-components/icon-picker-popoverFreeBlock
A simple icon picker component with a popover.
Install it
npx shadcn@latest add https://ui.raulcarini.dev/r/icon-picker-popover.jsonSource
1"use client";23import * as React from "react";45import { Button } from "@/components/ui/button";6import {7 Popover,8 PopoverContent,9 PopoverTrigger,10} from "@/components/ui/popover";11import IconPicker from "@/registry/icon-picker/icon-picker-tanstack";1213export default function Page() {14 const [isOpen, setIsOpen] = React.useState(false);15 const [selectedIcon, setSelectedIcon] = React.useState<string | null>(null);1617 return (18 <Popover onOpenChange={setIsOpen} open={isOpen}>19 <PopoverTrigger render={<Button />}>20 {selectedIcon ? `Selected Icon: ${selectedIcon}` : "Icon Picker"}21 </PopoverTrigger>22 <PopoverContent className="w-fit p-0">23 <IconPicker24 selectedIcon={selectedIcon}25 setSelectedIcon={setSelectedIcon}26 className="bg-transparent border-none"27 />28 </PopoverContent>29 </Popover>30 );31}
What it pulls in
npm packages
Other registry items
Files it writes
More from UI Components
All 25 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| GitHub Contributionsgithub-contributions | UI Components | Blocks | Free | no deps | |
| GitHub Contributions Advancedgithub-contributions-advanced | UI Components | Blocks | Free | no deps | |
| GitHub Contributions Advanced Fetchergithub-contributions-advanced-fetcher | UI Components | Blocks | Free | no deps | |
| GitHub Contributions Fetchergithub-contributions-fetcher | UI Components | Blocks | Free | no deps | |
| GitHub Forksgithub-forks | UI Components | Blocks | Free | 1 dep | |
| GitHub Issuesgithub-issues | UI Components | Blocks | Free | 1 dep | |
| GitHub Pull Requestsgithub-pr | UI Components | Blocks | Free | 1 dep | |
| GitHub Starsgithub-stars | UI Components | Blocks | Free | 1 dep |
