PopoverAnchor
What the panel is placed against when it is not its trigger (a field, a row); it adds no look of its own, and with asChild no element either.
import { PopoverAnchor } from '@/components/ui/goop/popover';
Options
- Also takes: asChild?: boolean
PopoverClose
Wraps a control inside the panel that closes it, such as a Done button.
import { PopoverClose } from '@/components/ui/goop/popover';
Options
- Also takes: asChild?: boolean
PopoverContent
The panel the trigger opens (a dialog: name it with aria-label, or aria-labelledby pointing at its PopoverTitle), below its trigger at its start, 8 px off (side, align, sideOffset move it), in a portal — the end of <body>, or container.
import { PopoverContent } from '@/components/ui/goop/popover';
Options
- variant: default (default), menu
- container?: HTMLElement | null — Where the panel is portalled; the end of
<body> when left out. - frameClassName?: string — Classes added last on the 208 px column the children sit in, for a panel that needs another width.
PopoverControl
The row's controls, the theme's own components, in the order written (the tab order).
import { PopoverControl } from '@/components/ui/goop/popover';
Options
- Also takes: asChild?: boolean
PopoverGroup
A section of the panel (a field, a list, a run of rows).
import { PopoverGroup } from '@/components/ui/goop/popover';
Options
- Also takes: asChild?: boolean
PopoverLabel
The words that name a row of the panel and the controls in it (as a group, and its one control).
import { PopoverLabel } from '@/components/ui/goop/popover';
Options
- Also takes: asChild?: boolean
PopoverTitle
The panel's heading, its first child (an h2; asChild puts the look on the caller's own heading for another level).
import { PopoverTitle } from '@/components/ui/goop/popover';
Options
- Also takes: asChild?: boolean