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 { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
function Component() {
return (
<Popover>
<PopoverTrigger asChild>
<Button variant="outline">Tooltip-like popover</Button>
</PopoverTrigger>
<PopoverContent className="max-w-[280px] py-3 shadow-none" side="top">
<div className="space-y-3">
<div className="space-y-1">
<p className="text-[13px] font-medium">Popover with button</p>
<p className="text-xs text-muted-foreground">
I am a popover that would like to look like a tooltip. I can‘t be a tooltip
because of the interactive element inside me.
</p>
</div>
<Button size="sm" className="h-7 px-2">
Know more
</Button>
</div>
</PopoverContent>
</Popover>
);
}
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)







