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

Function Sections

starters/docs/stories/ListBox.stories.tsx:30–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28};
29
30export const Sections: Story = args => (
31 <ListBox aria-label="Sandwich contents" selectionMode="multiple">
32 <ListBoxSection>
33 <Header>Veggies</Header>
34 <ListBoxItem id="lettuce">Lettuce</ListBoxItem>
35 <ListBoxItem id="tomato">Tomato</ListBoxItem>
36 <ListBoxItem id="onion">Onion</ListBoxItem>
37 </ListBoxSection>
38 <ListBoxSection>
39 <Header>Protein</Header>
40 <ListBoxItem id="ham">Ham</ListBoxItem>
41 <ListBoxItem id="tuna">Tuna</ListBoxItem>
42 <ListBoxItem id="tofu">Tofu</ListBoxItem>
43 </ListBoxSection>
44 <ListBoxSection>
45 <Header>Condiments</Header>
46 <ListBoxItem id="mayo">Mayonaise</ListBoxItem>
47 <ListBoxItem id="mustard">Mustard</ListBoxItem>
48 <ListBoxItem id="ranch">Ranch</ListBoxItem>
49 </ListBoxSection>
50 </ListBox>
51);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected