Overlayssrc/components/ui/popover.tsx

Popover

Displays floating content anchored to a trigger.

Preview

Installation

Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.

bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/ui

Usage

import { Popover } from "@/components/ui/popover"

export function Example() {
  return <Popover>Popover</Popover>
}

API Reference

ExportPurpose
PopoverComposable part exported by `@/components/ui/popover`.