Popover

PreviousNext

popover-demo

Docs
intentuipage

Preview

Loading preview…
components/docs/overlays/popover/popover-demo.tsx
"use client"

import { Button } from "@/components/ui/button"
import {
  Popover,
  PopoverBody,
  PopoverContent,
  PopoverDescription,
  PopoverFooter,
  PopoverHeader,
  PopoverTitle,
} from "@/components/ui/popover"

export default function PopoverDemo() {
  return (
    <Popover>
      <Button intent="outline">What’s this?</Button>
      <PopoverContent>
        <PopoverHeader>
          <PopoverTitle>This is the title of the popover.</PopoverTitle>
          <PopoverDescription>This is the description of the popover.</PopoverDescription>
        </PopoverHeader>
        <PopoverBody>This is the body of the popover.</PopoverBody>
        <PopoverFooter>This is the footer of the popover.</PopoverFooter>
      </PopoverContent>
    </Popover>
  )
}

Installation

npx shadcn@latest add @intentui/popover-demo

Usage

Usage varies by registry entry. Refer to the registry docs or source files below for details.