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

Function Sections

starters/tailwind/stories/ComboBox.stories.tsx:35–58  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected