|
Download tabler-react/src/components/Table/TableBody.examples.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 653 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Table/TableBody.examples.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Table/TableBody.examples.md
-
curl -L -o TableBody.examples.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/tabler-react/src/components/Table/TableBody.examples.md
653 Bytes
<Table>
<Table.Body>
<Table.Row>
<Table.Col>1</Table.Col>
<Table.Col>Jon</Table.Col>
<Table.Col>
<Button color="primary">Edit</Button>
</Table.Col>
</Table.Row>
</Table.Body>
</Table>
Build body from Table props
<Table
bodyItems={[
{
key: 1,
item: [
{ content: "1" },
{ content: "Jon" },
{ content: <Button color="primary">Edit</Button> },
],
},
]}
>
<Table.Header>
<Table.ColHeader>ID</Table.ColHeader>
<Table.ColHeader>Name</Table.ColHeader>
<Table.ColHeader>Action</Table.ColHeader>
</Table.Header>
</Table>