ink-component-table
v1.4.0
Published
Table component for Ink
Downloads
8
Readme
A table component for Ink.
Installation
npm install --save ink-component-table
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>[email protected]</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 [email protected]
- Website: http://matthewtole.com
- Twitter: @matthewtole
- Github: @matthewtole
- LinkedIn: @matthewtole
🤝 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 [email protected]. This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator