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

Function Sections

starters/tailwind/stories/Menu.stories.tsx:39–59  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

37};
38
39export const Sections = (args: any) => (
40 <MenuTrigger>
41 <Button variant="secondary" className="px-2">
42 <MoreHorizontal className="w-5 h-5" />
43 </Button>
44 <Menu {...args}>
45 <MenuSection title="Your Content">
46 <MenuItem id="repos">Repositories</MenuItem>
47 <MenuItem id="projects">Projects</MenuItem>
48 <MenuItem id="organizations">Organizations</MenuItem>
49 <MenuItem id="stars">Stars</MenuItem>
50 <MenuItem id="sponsors">Sponsors</MenuItem>
51 </MenuSection>
52 <MenuSection title="Your Account">
53 <MenuItem id="profile">Profile</MenuItem>
54 <MenuItem id="status">Set status</MenuItem>
55 <MenuItem id="sign-out">Sign out</MenuItem>
56 </MenuSection>
57 </Menu>
58 </MenuTrigger>
59);
60
61export const Submenu = (args: any) => (
62 <MenuTrigger>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected