About
A click-triggered floating panel anchored to its trigger button, used to show contextual details, settings, or a quick inline form without navigating away from the page.
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
"use client";
import Popover from "@/components/ui/popover";
import Button from "@/components/ui/popover-utils/button";
import Stack from "@/components/ui/popover-utils/stack";
import TextInput from "@/components/ui/popover-utils/text-input";
import Text from "@/components/ui/popover-utils/text";
import { useState } from "react";
export default function PopoverFieldDemo() {
const [note, setNote] = useState("");
return (
<div className="flex items-center justify-center w-full h-full min-h-[320px] p-10">
<Popover
trigger={
<Button variant="outline" icon="+">
Add note
</Button>
}
>
<Stack gap={12} style={{ width: 240 }}>
<TextInput
label="Internal note"
value={note}
onChange={setNote}
placeholder="Visible to Northwind only"
/>
<Text size="sm" secondary>
{note ? `${note.length} characters` : "Saved to ticket #4821."}
</Text>
</Stack>
</Popover>
</div>
);
}
















