@arcteryx/components-table
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

Arc'teryx Tables

Styled, zebra-striped tables. The

component offers a styled-wrapper to wrap basic html tables.

Install

npm install --save @arcteryx/components-table

Usage

import { Table } from "@arcteryx/components-table";
<Table>
  <table>
    <tbody>
      <tr>
        <th>Header</th>
      </tr>
      <tr>
        <td>123</td>
      </tr>
    </tbody>
  </table>
</Table>

Content Toggle

The purpose of this component is to switch between cm/inch tables, but it could be used for any content.

It takes an array of options that will be shown as buttons, and selecting these will search the DOM and toggle content accordingly.

import { Table } from "@arcteryx/components-table";

<ContentToggle items={contentToggleItems} name="sizing" default="cm" />

<div class="content--sizing content--cm">stuff</div>
<div class="content--sizing content--inches">other stuff</div>

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @arcteryx/components-table

      Weekly Downloads

      6

      Version

      1.3.1

      License

      ISC

      Unpacked Size

      42.8 kB

      Total Files

      30

      Last publish

      Collaborators

      • justinohalloran
      • ronvs
      • jamiearc