@pagedotapp/page-dialog
v0.0.0-alpha.13
Published
PageDialog - A reusable React component
Downloads
22
Readme
@pagedotapp/page-dialog
A modal dialog component built on Radix UI
Installation
npm install @pagedotapp/page-dialogUsage
import { PageDialog } from "@pagedotapp/page-dialog"
function App() {
return (
<PageDialog
open={isOpen}
onOpenChange={setIsOpen}
title="Dialog Title"
description="Dialog description"
>
<p>Dialog content goes here</p>
</PageDialog>
)
}Props
See the TypeScript definitions for detailed prop types.
Styling
This component uses CSS modules for styling. The styles are injected automatically when you use the component.
Dependencies
Peer Dependencies
- React >=16.8.0
- React DOM >=16.8.0
Required Dependencies
- @radix-ui/react-dialog: ^1.1.14
- @react-spring/web: ^10.0.1
License
MIT © PageStudio
