@mirohq/design-system-dialog 0.1.0-dialog.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # Dialog
2
+
3
+ React dialog following the WAI-ARIA APG modal dialog pattern.
4
+ For the complete specification, read [`SPEC.md`](./SPEC.md).
5
+
6
+ ## Install
7
+
8
+ ```sh
9
+ pnpm add @mirohq/design-system-dialog
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```tsx
15
+ import { Dialog } from '@mirohq/design-system-dialog'
16
+
17
+ export const Example = () => (
18
+ <Dialog>
19
+ <Dialog.Trigger>Open</Dialog.Trigger>
20
+ <Dialog.Portal>
21
+ <Dialog.Backdrop />
22
+ <Dialog.Content>
23
+ <Dialog.Close>Close</Dialog.Close>
24
+ <Dialog.Title>Title</Dialog.Title>
25
+ <Dialog.Description>Description</Dialog.Description>
26
+ <Dialog.Actions>
27
+ <button type='button'>Confirm</button>
28
+ </Dialog.Actions>
29
+ </Dialog.Content>
30
+ </Dialog.Portal>
31
+ </Dialog>
32
+ )
33
+ ```