MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Example

Function Example

starters/docs/stories/Dialog.stories.tsx:19–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17type Story = StoryFn<typeof Dialog>;
18
19export 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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected