Popover
Popover renders compact positioned supporting content next to its trigger.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/hover-card-relative-time.json.
Usage
Examples
Relative timestamp
Rich hover cards
Sides
Inside a dialog
Paged content
Sides and alignment
Rich content
Settings form
API
10 props
Accessibility
The trigger is a DS button with aria-expanded; the panel is portalled, dismisses on Escape or an outside click, and returns focus to the trigger. Keep popover content short and non-modal.
Related
AvatarProfile images, resilient initials, presence, verification, account menus and collaborator groups. The existing Avatar API and curated patterns share the same image and fallback primitives.10 examplesDialogModal, confirmation and bare full-screen dialogs for editing, detail inspection, explicit decisions, lightboxes and launchers.12 examplesFieldField composes form label, description, error, and input building blocks.7 examplesPillPill renders compact category and status labels.4 examplesSeparatorSeparate related content with a horizontal or vertical rule.3 examplesSliderAdjust one value or a range with pointer and keyboard input.4 examples