shadcn-vue/apps/www/src/content/docs/components/popover.md
Onur Usluca cedce319ba
docs: update popover.md (#491)
Description only had the closing tag and it was wrong. Added the opening tag, fixed the closing tag and some text.
2024-04-14 18:10:16 +08: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>