Get Pro Access

Popover

A click-triggered popup with smart positioning

Installation

Usage

import {
  Popover,
  PopoverTrigger,
  PopoverTitle,
  PopoverDescription,
} from '@/components/ui/popover'

<PopoverTrigger popoverId='my-popover'>Open popover</PopoverTrigger>
<Popover id='my-popover' side='bottom' align='start'>
  <PopoverTitle>Team visibility</PopoverTitle>
  <PopoverDescription>
    Manage who can access this project.
  </PopoverDescription>
</Popover>

Interactivity

This component is SSR-first and works without client JavaScript. Add @kiwa-ui/enhance for interactive behavior like toggling, keyboard navigation, and ARIA state management.

Add to your layout

<script type="module">
  import { popover } from '@kiwa-ui/enhance'
  popover()
</script>