Popover renders interactive floating content anchored to a trigger. Use it for focused controls, lightweight configuration, or short contextual workflows that need deliberate user interaction.
Popover content is surface-aware: it lands at parent +2 and uses the matching floating border and shadow for that surface level.
Popover content can be positioned on any side of the trigger.
import { Button } from "@tilt-legal/cubitt-components/button";import { Popover, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger,} from "@tilt-legal/cubitt-components/popover";import { ArrowLeft } from "@tilt-legal/cubitt-icons/ui/outline";<Popover> <PopoverTrigger render={<Button variant="secondary" />}> <ArrowLeft /> Left </PopoverTrigger> <PopoverContent className="space-y-1" side="left"> <PopoverTitle>Left Position</PopoverTitle> <PopoverDescription> This popover appears on the left side of the trigger. </PopoverDescription> </PopoverContent></Popover>;
Popover content can align to the start, center, or end of the trigger.
import { Button } from "@tilt-legal/cubitt-components/button";import { Popover, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger,} from "@tilt-legal/cubitt-components/popover";<Popover> <PopoverTrigger render={<Button variant="secondary" />}> Align Start </PopoverTrigger> <PopoverContent align="start" className="space-y-1"> <PopoverTitle>Start Alignment</PopoverTitle> <PopoverDescription> This popover is aligned to the start of the trigger. </PopoverDescription> </PopoverContent></Popover>;