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

Function Example

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

Source from the content-addressed store, hash-verified

14type Story = StoryFn<typeof ListBox>;
15
16export const Example: Story = args => (
17 <ListBox aria-label="Ice cream flavor" {...args}>
18 <ListBoxItem>Chocolate</ListBoxItem>
19 <ListBoxItem>Mint</ListBoxItem>
20 <ListBoxItem>Strawberry</ListBoxItem>
21 <ListBoxItem>Vanilla</ListBoxItem>
22 </ListBox>
23);
24
25Example.args = {
26 onAction: undefined,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected