@nice-digital/nds-table
TypeScript icon, indicating that this package has built-in type declarations

4.0.14 • Public • Published

@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>

Readme

Keywords

none

Package Sidebar

Install

npm i @nice-digital/nds-table

Weekly Downloads

84

Version

4.0.14

License

MIT

Unpacked Size

6.77 kB

Total Files

6

Last publish

Collaborators

  • dalenice
  • wongcheming
  • johndavey72
  • barkertron
  • martingallagher1980
  • ditprogrammatic
  • ediblecode
  • josealmeida
  • mark-nice
  • nansenst
  • colin.mazurkiewicz
  • imranazad
  • eleanormollett