Overlayssrc/components/ui/dialog.tsx

Dialog

A modal window overlaid on the page content.

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 { Dialog } from "@/components/ui/dialog"

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

API Reference

ExportPurpose
DialogComposable part exported by `@/components/ui/dialog`.