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

Function Example

starters/hooks/stories/Table.stories.tsx:16–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14type Story = StoryFn<typeof Table>;
15
16export const Example: Story = args => (
17 <Table aria-label="Pokémon" selectionMode="multiple" selectionBehavior="replace" {...args}>
18 <TableHeader>
19 <Column isRowHeader>Name</Column>
20 <Column>Type</Column>
21 <Column>Level</Column>
22 </TableHeader>
23 <TableBody>
24 <Row key="charizard">
25 <Cell>Charizard</Cell>
26 <Cell>Fire, Flying</Cell>
27 <Cell>67</Cell>
28 </Row>
29 <Row key="blastoise">
30 <Cell>Blastoise</Cell>
31 <Cell>Water</Cell>
32 <Cell>56</Cell>
33 </Row>
34 <Row key="venusaur">
35 <Cell>Venusaur</Cell>
36 <Cell>Grass, Poison</Cell>
37 <Cell>83</Cell>
38 </Row>
39 <Row key="pikachu">
40 <Cell>Pikachu</Cell>
41 <Cell>Electric</Cell>
42 <Cell>100</Cell>
43 </Row>
44 </TableBody>
45 </Table>
46);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected