shadcn-vue/apps/www/src/content/docs/components/popover.md
Onur Usluca 7b8f1f233d
Update popover.md
Description only had the closing tag and it was wrong. Added the opening tag, fixed the closing tag and some text.
2024-04-14 15:47:31 +09:00

640 B

title description source primitive
Popover Displays rich content in a portal, triggered by a button. apps/www/src/lib/registry/default/ui/popover https://www.radix-vue.com/components/popover.html

Installation

npx shadcn-vue@latest add popover

Usage

<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>