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

Function Example

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

Source from the content-addressed store, hash-verified

13export default meta;
14
15export const Example = (args: any) => (
16 <Tabs {...args}>
17 <TabList aria-label="History of Ancient Rome">
18 <Tab id="FoR">Founding of Rome</Tab>
19 <Tab id="MaR">Monarchy and Republic</Tab>
20 <Tab id="Emp">Empire</Tab>
21 </TabList>
22 <TabPanels>
23 <TabPanel id="FoR">Arma virumque cano, Troiae qui primus ab oris.</TabPanel>
24 <TabPanel id="MaR">Senatus Populusque Romanus.</TabPanel>
25 <TabPanel id="Emp">Alea jacta est.</TabPanel>
26 </TabPanels>
27 </Tabs>
28);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected