Dialog
A modal dialog component for important interactions.
Installation
npm install fuyukaki-uiUsage
import { useState } from 'react'
import {
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
DialogDescription,
DialogFooter,
Button
} from 'fuyukaki-ui'
function App() {
const [open, setOpen] = useState(false)
return (
<>
<Button onClick={() => setOpen(true)}>
Open Dialog
</Button>
<Dialog open={open} onOpenChange={setOpen}>
<DialogContent>
<DialogHeader>
<DialogTitle>Dialog Title</DialogTitle>
<DialogDescription>
Dialog description
</DialogDescription>
</DialogHeader>
<DialogFooter>
<Button onClick={() => setOpen(false)}>
Close
</Button>
</DialogFooter>
</DialogContent>
</Dialog>
</>
)
}