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

99.10.0 • Public • Published

category: packages

ui-table

npm  build-status  MIT License  Code of Conduct

A styled HTML table component.

Components

The ui-table package contains the following:

Installation

yarn add @temporg/ui-table

Usage

---
example: false
---
import React from 'react'
import { Table } from '@temporg/ui-table'

const MyTable = () => {
  return (
    <Table caption='Top rated movies'>
      <Table.Head>
        <Table.Row>
          <Table.ColHeader>Rank</Table.ColHeader>
          <Table.ColHeader>Title</Table.ColHeader>
          <Table.ColHeader>Year</Table.ColHeader>
          <Table.ColHeader>Rating</Table.ColHeader>
        </Table.Row>
      </Table.Head>
      <Table.Body>
        <Table.Row>
          <Table.RowHeader>1</Table.RowHeader>
          <Table.Cell>The Shawshank Redemption</Table.Cell>
          <Table.Cell>1994</Table.Cell>
          <Table.Cell>9.3</Table.Cell>
        </Table.Row>
        <Table.Row>
          <Table.RowHeader>2</Table.RowHeader>
          <Table.Cell>The Godfather</Table.Cell>
          <Table.Cell>1972</Table.Cell>
          <Table.Cell>9.2</Table.Cell>
        </Table.Row>
        <Table.Row>
          <Table.RowHeader>3</Table.RowHeader>
          <Table.Cell>The Godfather: Part II</Table.Cell>
          <Table.Cell>1974</Table.Cell>
          <Table.Cell>9.0</Table.Cell>
        </Table.Row>
      </Table.Body>
  </Table>
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @temporg/ui-table

Weekly Downloads

0

Version

99.10.0

License

MIT

Unpacked Size

133 kB

Total Files

56

Last publish

Collaborators

  • npm