| 17 | type Story = StoryFn<typeof Dialog>; |
| 18 | |
| 19 | export const Example: Story = args => ( |
| 20 | <DialogTrigger> |
| 21 | <Button>Sign up…</Button> |
| 22 | <Modal> |
| 23 | <Dialog {...args}> |
| 24 | <form> |
| 25 | <Heading slot="title">Sign up</Heading> |
| 26 | <TextField autoFocus label="First Name" placeholder="Enter your first name" /> |
| 27 | <TextField label="Last Name" placeholder="Enter your last name" /> |
| 28 | <Button slot="close" style={{marginTop: 8}}> |
| 29 | Submit |
| 30 | </Button> |
| 31 | </form> |
| 32 | </Dialog> |
| 33 | </Modal> |
| 34 | </DialogTrigger> |
| 35 | ); |
nothing calls this directly
no outgoing calls
no test coverage detected