@boba-cli/table
v0.1.0-alpha.3
Published
Tabular data display with scrolling and selection for Boba
Downloads
60
Readme
@boba-cli/table
Tabular data display with scrolling and selection for Boba terminal UIs.
import { TableModel } from '@boba-cli/table'
import { borderStyles } from '@boba-cli/chapstick'
const table = TableModel.new({
columns: [
{ title: 'ID', width: 6 },
{ title: 'Task', width: 20 },
{ title: 'Status', width: 10 },
],
rows: [
['001', 'Implement table', 'Doing'],
['002', 'Write docs', 'Todo'],
],
height: 5,
focused: true,
bordered: true,
borderStyle: borderStyles.rounded,
})
console.log(table.view())