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

Function Example

starters/docs/stories/Modal.stories.tsx:19–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17type Story = StoryFn<typeof Modal>;
18
19export const Example: Story = args => (
20 <DialogTrigger>
21 <Button>Sign up…</Button>
22 <Modal {...args}>
23 <Dialog>
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">Submit</Button>
29 </form>
30 </Dialog>
31 </Modal>
32 </DialogTrigger>
33);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected