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

Function Table

packages/react-aria/test/table/ariaTableResizing.test.tsx:72–84  ·  view source on GitHub ↗
(props: {columns: {id: Key; name: string}[]; rows: Record<string, string>[]})

Source from the content-addressed store, hash-verified

70});
71
72function Table(props: {columns: {id: Key; name: string}[]; rows: Record<string, string>[]}) {
73 let {columns, rows, ...args} = props;
74 return (
75 <ResizingTable {...args}>
76 <TableHeader columns={columns}>
77 {column => <Column {...column}>{column.name}</Column>}
78 </TableHeader>
79 <TableBody items={rows}>
80 {item => <Row>{columnKey => <Cell>{item[columnKey]}</Cell>}</Row>}
81 </TableBody>
82 </ResizingTable>
83 );
84}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected