4.0.12 • Published 3 months ago

@nice-digital/nds-table v4.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@nice-digital/nds-table

Basic table styling for the NICE design system

Installation

Install Node, and then:

npm i @nice-digital/nds-table --save

Usage

React

Import the Table component from the package and use within JSX:

import React from "react";
import { Table } from "@nice-digital/nds-table";

<Table>
  <tr>
     <td>Data!</td>
  </tr>
</Table>

Note: The React component automatically imports the SCSS, so there's no need to import the SCSS directly yourself.

Props

children
  • Type: React.node (required)

The component will only return the surrounding table tag. The rest of the table must be supplied as children.

<Table>
  <tr>
     <td>Data!</td>
  </tr>
</Table>
className
  • Type: string

Any additional classes you would like cascading to the table tag.

SCSS

If you're not using React, then import the SCSS directly into your application by:

@forward '@nice-digital/nds-table/scss/table';

HTML

If you're not using React, then include the SCSS as above and use the HTML:

<table class="table">
  <tbody>
    <tr>
      <td>Data!</td>
    </tr>
  </tbody>
</table>
4.0.12

3 months ago

4.0.11

3 months ago

4.0.10

3 months ago

4.0.9

3 months ago

4.0.8

3 months ago

4.0.7

4 months ago

4.0.7-alpha.0

4 months ago

4.0.6

10 months ago

4.0.5

12 months ago

4.0.4

1 year ago

4.0.3

1 year ago

4.0.2

1 year ago

4.0.2-alpha.0

1 year ago

3.0.3

1 year ago

4.0.0-alpha.0

1 year ago

3.0.2-alpha.0

2 years ago

3.0.1-alpha.0

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

2.0.3-alpha.0

2 years ago

2.0.4-alpha.0

2 years ago

2.0.5-alpha.0

2 years ago

1.1.20-alpha.0

2 years ago

2.0.10-alpha.0

2 years ago

2.0.6-alpha.0

2 years ago

2.0.1-alpha.0

2 years ago

2.0.0-alpha.0

2 years ago

2.0.2-alpha.0

2 years ago

1.1.19

2 years ago

2.0.9-alpha.0

2 years ago

2.0.8-alpha.0

2 years ago

3.0.0

2 years ago

2.0.7-alpha.0

2 years ago

2.0.11-alpha.0

2 years ago

1.1.21-alpha.0

2 years ago

1.1.22-alpha.0

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.16

2 years ago

1.1.15

2 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.13-alpha.0

3 years ago

1.1.10

3 years ago

1.1.12-alpha.0

3 years ago

1.1.11-alpha.0

3 years ago

1.1.10-alpha.0

3 years ago

1.1.9-alpha.0

3 years ago

1.1.8-alpha.0

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.6-alpha.0

3 years ago

1.1.4-alpha.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago