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

Function Example

starters/tailwind/stories/ListBox.stories.tsx:15–22  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

13export default meta;
14
15export const Example = (args: any) => (
16 <ListBox aria-label="Ice cream flavor" {...args}>
17 <ListBoxItem id="chocolate">Chocolate</ListBoxItem>
18 <ListBoxItem id="mint">Mint</ListBoxItem>
19 <ListBoxItem id="strawberry">Strawberry</ListBoxItem>
20 <ListBoxItem id="vanilla">Vanilla</ListBoxItem>
21 </ListBox>
22);
23
24Example.args = {
25 onAction: null,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected