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

Function Example

starters/tailwind/stories/Form.stories.tsx:18–29  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

16export default meta;
17
18export const Example = (args: any) => (
19 <Form {...args}>
20 <TextField label="Email" placeholder="Enter your email" name="email" type="email" isRequired />
21 <DateField label="Birth date" isRequired />
22 <div className="flex gap-2">
23 <Button type="submit">Submit</Button>
24 <Button type="reset" variant="secondary">
25 Reset
26 </Button>
27 </div>
28 </Form>
29);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected