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

Function Example

starters/docs/stories/Tabs.stories.tsx:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18type Story = StoryFn<typeof Tabs>;
19
20export const Example: Story = args => (
21 <Tabs {...args}>
22 <TabList aria-label="History of Ancient Rome">
23 <Tab id="FoR">Founding of Rome</Tab>
24 <Tab id="MaR">Monarchy and Republic</Tab>
25 <Tab id="Emp">Empire</Tab>
26 </TabList>
27 <TabPanels>
28 <TabPanel id="FoR">Arma virumque cano, Troiae qui primus ab oris.</TabPanel>
29 <TabPanel id="MaR">Senatus Populusque Romanus.</TabPanel>
30 <TabPanel id="Emp">Alea jacta est.</TabPanel>
31 </TabPanels>
32 </Tabs>
33);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected