docs/components/navigation/Popover

Popover

Anchored floating content.

import { Popover } from '@ybouhjira/hyperkit';

#Playground

Edit the code — the preview recompiles and re-renders as you type.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
trigger *JSX.ElementThe trigger element that opens the popover.
content *JSX.ElementThe content rendered inside the popover panel.
placement'top' | 'bottom' | 'left' | 'right''bottom'Placement of the popover relative to the trigger.
openbooleanControlled open state.
onOpenChange(open: boolean) => voidCallback when open state changes.
classstringAdditional CSS classes applied to the content panel.
styleJSX.CSSPropertiesInline styles for the content panel.

* required prop.

#Design Tokens

This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.

  • --sk-bg-elevated
  • --sk-bg-secondary
  • --sk-border
  • --sk-duration-fast
  • --sk-font-size-sm
  • --sk-radius-md
  • --sk-space-md
  • --sk-text-primary