The properties for the Dialog component.
A JSX element representing the Dialog.
Features:
<dialog> implementation for accessibility.const [isOpen, setIsOpen] = useState(false);
return (
<>
<button onClick={() => setIsOpen(true)}>Open Dialog</button>
<Dialog open={isOpen} onClose={() => setIsOpen(false)}>
<h2>Welcome</h2>
<p>This is a native dialog.</p>
<button onClick={() => setIsOpen(false)}>Close</button>
</Dialog>
</>
);
A responsive, accessible Dialog component built on top of the native HTML
<dialog>element.