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

Function Example

starters/hooks/stories/ListBox.stories.tsx:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13type Story = StoryFn<typeof ListBox>;
14
15export const Example: Story = args => (
16 <ListBox aria-label="Favorite animal" selectionMode="single" {...args}>
17 <ListBoxItem id="aardvark">Aardvark</ListBoxItem>
18 <ListBoxItem id="cat">Cat</ListBoxItem>
19 <ListBoxItem id="dog">Dog</ListBoxItem>
20 <ListBoxItem id="kangaroo">Kangaroo</ListBoxItem>
21 <ListBoxItem id="panda">Panda</ListBoxItem>
22 <ListBoxItem id="snake">Snake</ListBoxItem>
23 </ListBox>
24);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected