Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

Popover

Popover renders compact positioned supporting content next to its trigger.

CoreOverlays & Menus@gaudi/design-system/core/PopoverView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import { Popover } from '@gaudi/design-system/core/Popover';

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

import { Popover } from '@gaudi/design-system';
<Popover trigger='Open popover'>Compact supporting content.</Popover>

Examples

Relative timestamp

Storybook

Rich hover cards

Storybook

Sides

Storybook

Inside a dialog

Storybook

Paged content

Storybook

Sides and alignment

Storybook

Rich content

Storybook

Settings form

Storybook

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.