Popover

Displays a popover card with some content over the main content.

Preview

Installation

bash
npx sigma-ui add popover

Examples

Basic

vue
<script setup lang="ts">
import {
  Popover,
  PopoverContent,
  PopoverTrigger,
} from '@/components/ui/popover'
</script>

<template>
  <Popover>
    <PopoverTrigger>
      Open popover
    </PopoverTrigger>
    <PopoverContent>
      Some popover content
    </PopoverContent>
  </Popover>
</template>
Edit this page on GitHub