Skip to content

TkxPopover

import { TkxPopover, TkxButton } from 'tekivex-ui';
Basic — click trigger to open
<TkxPopover
trigger={<TkxButton variant="outline">More info</TkxButton>}
content={<div>About this metric…</div>}
/>
Placement options
<TkxPopover trigger={...} placement="top" content={...} />
<TkxPopover trigger={...} placement="bottom" content={...} />
<TkxPopover trigger={...} placement="left" content={...} />
<TkxPopover trigger={...} placement="right" content={...} />
PropTypeRequiredDescription
triggerReactNodeyes
contentReactNodeyes
placementPopoverPlacement
isOpenboolean
onOpenChange(open: boolean) => void
closeOnClickOutsideboolean
classNamestring
styleCSSProperties
  • Keyboard navigation supported on all interactive elements
  • :focus-visible outline at 2px (theme-token primary)
  • ARIA roles and properties applied per WAI-ARIA 1.2
  • Respects prefers-reduced-motion
  • Minimum 44×44 touch target where applicable

The implementation lives at src/components/TkxPopover.tsx.

For the full interactive sandbox with every prop tweakable, open the playground.