1.4.0 ā€¢ Published 4 years ago

ink-component-table v1.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

A table component for Ink.

Installation

npm install --save ink-component-table

Demo

Screen recording of the component demo

npm run build && npm run demo

Usage

import {Table} from 'ink-component-table';

render(
  <Table columnWidths={[10, 20, 30]}>
    <Table.Header>
      <Table.Row>
        <Table.Cell>ID</Table.Cell>
        <Table.Cell>Name</Table.Cell>
        <Table.Cell>Email</Table.Cell>
      </Table.Row>
    </Table.Header>
    <Table.Body>
      <Table.Row>
        <Table.Cell>123</Table.Cell>
        <Table.Cell>Matthew</Table.Cell>
        <Table.Cell>matthewtole@gmail.com</Table.Cell>
      </Table.Row>
    </Table.Body>
  </Table>
);

Run tests

# You will need to build the library first
npm run build
npm run test

Author

šŸ‘¤ Matthew Tole matthewtole@gmail.com

šŸ¤ Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.

Show your support

Give a ā­ļø if this project helped you!

šŸ“ License

Copyright Ā© 2020 Matthew Tole <matthewtole@gmail.com>. This project is MIT licensed.


This README was generated with ā¤ļø by readme-md-generator

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago