About
Enhanced shadcn/ui popover
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Popover to your project and fits it to your theme.
Code
How Popover is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Button } from "@/components/ui/button";
import { Checkbox } from "@/components/ui/checkbox";
import { Label } from "@/components/ui/label";
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
import { useId } from "react";
import { ListFilter } from "lucide-react";
function Component() {
const id = useId();
return (
<div className="flex flex-col gap-4">
<Popover>
<PopoverTrigger asChild>
<Button variant="outline" size="icon" aria-label="Filters">
<ListFilter size={16} strokeWidth={2} aria-hidden="true" />
</Button>
</PopoverTrigger>
<PopoverContent className="w-36 p-3">
<div className="space-y-3">
<div className="text-xs font-medium text-muted-foreground">Filters</div>
<form className="space-y-3">
<div className="flex items-center gap-2">
<Checkbox id={`${id}-1`} />
<Label htmlFor={`${id}-1`} className="font-normal">
Real Time
</Label>
</div>
<div className="flex items-center gap-2">
<Checkbox id={`${id}-2`} />
<Label htmlFor={`${id}-2`} className="font-normal">
Top Channels
</Label>
</div>
<div className="flex items-center gap-2">
<Checkbox id={`${id}-3`} />
<Label htmlFor={`${id}-3`} className="font-normal">
Last Orders
</Label>
</div>
<div className="flex items-center gap-2">
<Checkbox id={`${id}-4`} />
<Label htmlFor={`${id}-4`} className="font-normal">
Total Spent
</Label>
</div>
<div
role="separator"
aria-orientation="horizontal"
className="-mx-3 my-1 h-px bg-border"
></div>
<div className="flex justify-between gap-2">
<Button size="sm" variant="outline" className="h-7 px-2">
Clear
</Button>
<Button size="sm" className="h-7 px-2">
Apply
</Button>
</div>
</form>
</div>
</PopoverContent>
</Popover>
</div>
);
}
export { Component };







![Calendar [React Day Picker]](https://cdn.21st.dev/cdn-cgi/image/fit=scale-down,width=640,quality=75,format=webp/https://cdn.21st.dev/user_originui/calendar/default/preview.1737991983843.png)







