bpk-component-table-css

3.1.8 • Public • Published

bpk-component-table

Backpack table component.

Installation

npm install bpk-component-table --save-dev

Usage

import React from 'react';
import {
  BpkTable,
  BpkTableHead,
  BpkTableBody,
  BpkTableRow,
  BpkTableCell,
  BpkTableHeadCell,
} from 'bpk-component-table';

export default () => (
  <BpkTable>
    <BpkTableHead>
      <BpkTableRow>
        <BpkTableHeadCell>Heading 1</BpkTableHeadCell>
        <BpkTableHeadCell>Heading 2</BpkTableHeadCell>
        <BpkTableHeadCell>Heading 3</BpkTableHeadCell>
        <BpkTableHeadCell>Heading 4</BpkTableHeadCell>
      </BpkTableRow>
    </BpkTableHead>
    <BpkTableBody>
      <BpkTableRow>
        <BpkTableCell>Row 1, Data 1</BpkTableCell>
        <BpkTableCell>Row 1, Data 2</BpkTableCell>
        <BpkTableCell>Row 1, Data 3</BpkTableCell>
        <BpkTableCell>Row 1, Data 4</BpkTableCell>
      </BpkTableRow>
      <BpkTableRow>
        <BpkTableCell>Row 2, Data 1</BpkTableCell>
        <BpkTableCell>Row 2, Data 2</BpkTableCell>
        <BpkTableCell>Row 2, Data 3</BpkTableCell>
        <BpkTableCell>Row 2, Data 4</BpkTableCell>
      </BpkTableRow>
    </BpkTableBody>
  </BpkTable>
);

Props

For BpkTableHead, BpkTableBody, BpkTableRow & BpkTableCell .

Property PropType Required Default Value
children node true -

For BpkTable & BpkTableHeadCell.

Property PropType Required Default Value
children node true -
alternate bool false false

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
3.1.82latest

Version History

VersionDownloads (Last 7 Days)Published
3.1.82
3.1.60
3.1.40
3.1.31
3.1.10
3.1.00
3.0.291
3.0.261
3.0.251
3.0.241
3.0.191
3.0.171
3.0.161
3.0.150
3.0.111
3.0.81
3.0.61
3.0.51
3.0.41
3.0.31
3.0.21
3.0.10
3.0.00
2.1.71
2.1.51
2.1.41
2.1.31
2.1.21
2.1.10
2.1.00
2.0.1170
2.0.1160
2.0.1150
2.0.1141
2.0.1130
2.0.1120
2.0.1111
2.0.1101
2.0.1090
2.0.1081
2.0.1071
2.0.1061
2.0.1051
2.0.1041
2.0.1030
2.0.1020
2.0.1010
2.0.1001
2.0.990
2.0.981
2.0.970
2.0.960
2.0.951
2.0.941
2.0.911
2.0.900
2.0.890
2.0.880
2.0.870
2.0.851
2.0.840
2.0.830
2.0.820
2.0.810
2.0.800
2.0.781
2.0.771
2.0.761
2.0.711
2.0.701
2.0.691
2.0.671
2.0.660
2.0.650
2.0.641

Package Sidebar

Install

npm i bpk-component-table-css

Weekly Downloads

44

Version

3.1.8

License

Apache-2.0

Unpacked Size

29.9 kB

Total Files

24

Last publish

Collaborators

  • k0nserv
  • shaundon
  • georgegillams
  • tiagohngl
  • ojcurt