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

Function Example

starters/docs/stories/Select.stories.tsx:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14type Story = StoryFn<typeof Select>;
15
16export const Example: Story = args => (
17 <Select {...args}>
18 <SelectItem>Chocolate</SelectItem>
19 <SelectItem>Mint</SelectItem>
20 <SelectItem>Strawberry</SelectItem>
21 <SelectItem>Vanilla</SelectItem>
22 </Select>
23);
24
25Example.args = {
26 label: 'Ice cream flavor'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected