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

Function Sections

starters/tailwind/stories/Select.stories.tsx:34–57  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

32};
33
34export const Sections = (args: any) => (
35 <Select {...args}>
36 <SelectSection title="Fruit">
37 <SelectItem id="Apple">Apple</SelectItem>
38 <SelectItem id="Banana">Banana</SelectItem>
39 <SelectItem id="Orange">Orange</SelectItem>
40 <SelectItem id="Honeydew">Honeydew</SelectItem>
41 <SelectItem id="Grapes">Grapes</SelectItem>
42 <SelectItem id="Watermelon">Watermelon</SelectItem>
43 <SelectItem id="Cantaloupe">Cantaloupe</SelectItem>
44 <SelectItem id="Pear">Pear</SelectItem>
45 </SelectSection>
46 <SelectSection title="Vegetable">
47 <SelectItem id="Cabbage">Cabbage</SelectItem>
48 <SelectItem id="Broccoli">Broccoli</SelectItem>
49 <SelectItem id="Carrots">Carrots</SelectItem>
50 <SelectItem id="Lettuce">Lettuce</SelectItem>
51 <SelectItem id="Spinach">Spinach</SelectItem>
52 <SelectItem id="Bok Choy">Bok Choy</SelectItem>
53 <SelectItem id="Cauliflower">Cauliflower</SelectItem>
54 <SelectItem id="Potatoes">Potatoes</SelectItem>
55 </SelectSection>
56 </Select>
57);
58
59Sections.args = {
60 label: 'Preferred fruit or vegetable'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected