2.0.1 • Published 6 months ago

@sikt/sds-table v2.0.1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
6 months ago

@sikt/sds-table

Consume

npm i -s @sikt/sds-table

React

import { Table } from "@sikt/sds-table";
import "@sikt/sds-table/dist/index.css";

<Table>
  <TableHead>
    <TableRow>
      <TableHeader>Header</TableHeader>
    </TableRow>
  </TableHead>
  <TableBody>
    <TableRow>
      <TableCell data-th="Header">Cell</TableCell>
    </TableRow>
  </TableBody>
</Table>;

Note: That you need to add the data-th to all cells of the body for the mobile view to work.

Stylesheets & custom markup

Import stylesheet:

@import url("@sikt/sds-table");

Create custom markup:

<div class="sds-table"></div>
1.0.2

11 months ago

2.0.1

6 months ago

2.0.0

7 months ago

1.0.1

12 months ago

1.0.0

1 year ago