Docs
Popover

Popover

Displays rich content in a portal, triggered by a button.

Installation

bash
npx shadcn-vue@latest add popover

Usage

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

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