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

Function Example

starters/docs/stories/Table.stories.tsx:16–41  ·  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="Files" {...args}>
18 <TableHeader>
19 <Column isRowHeader>Name</Column>
20 <Column>Type</Column>
21 <Column>Date Modified</Column>
22 </TableHeader>
23 <TableBody>
24 <Row>
25 <Cell>Games</Cell>
26 <Cell>File folder</Cell>
27 <Cell>6/7/2020</Cell>
28 </Row>
29 <Row>
30 <Cell>Program Files</Cell>
31 <Cell>File folder</Cell>
32 <Cell>4/7/2021</Cell>
33 </Row>
34 <Row>
35 <Cell>bootmgr</Cell>
36 <Cell>System file</Cell>
37 <Cell>11/20/2010</Cell>
38 </Row>
39 </TableBody>
40 </Table>
41);
42
43Example.args = {
44 onRowAction: undefined,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected