import { Example, ExampleWrapper, } from "@/registry/bases/aria/components/example" import { Button } from "@/registry/bases/aria/ui/button" import { Dialog, DialogDescription, DialogHeader, DialogTitle, DialogTrigger, } from "@/registry/bases/aria/ui/dialog" import { Field, FieldGroup, FieldLabel } from "@/registry/bases/aria/ui/field" import { Input } from "@/registry/bases/aria/ui/input" import { Popover, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, } from "@/registry/bases/aria/ui/popover" export default function PopoverExample() { return ( ) } function PopoverBasic() { return ( Dimensions Set the dimensions for the layer. ) } function PopoverSides() { return (
{(["start", "left", "top"] as const).map((placement) => { return (

Popover on {placement}

) })}
{(["bottom", "right", "end"] as const).map((placement) => { return (

Popover on {placement}

) })}
) } function PopoverWithForm() { return ( Dimensions Set the dimensions for the layer. Width Height ) } function PopoverAlignments() { return (
Aligned to start Aligned to center Aligned to end
) } function PopoverInDialog() { return ( Popover Example Click the button below to see the popover. Popover in Dialog This popover appears inside a dialog. Click the button to open it. ) }