mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-25 13:06:00 +03:00
[PR #598] feat: Add Table component with borders, separators, and styling support #645
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#645
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/598
Author: @votsuk
Created: 1/28/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (2)
685bae8feat: Add TableRenderable component with full styling and rendering supportf87fc37feat: Add Table Demo to ExampleSelector with description and scene integration📊 Changes
14 files changed (+1951 additions, -0 deletions)
View changed files
➕
packages/core/src/examples/table-demo.ts(+272 -0)➕
packages/core/src/renderables/Table.test.ts(+372 -0)➕
packages/core/src/renderables/Table.ts(+872 -0)📝
packages/core/src/renderables/composition/constructs.ts(+34 -0)📝
packages/core/src/renderables/index.ts(+1 -0)➕
packages/react/examples/table-demo.tsx(+151 -0)📝
packages/react/jsx-namespace.d.ts(+12 -0)📝
packages/react/src/components/index.ts(+12 -0)📝
packages/react/src/types/components.ts(+22 -0)📝
packages/solid/examples/components/ExampleSelector.tsx(+9 -0)➕
packages/solid/examples/components/table-demo.tsx(+148 -0)📝
packages/solid/jsx-runtime.d.ts(+12 -0)📝
packages/solid/src/elements/index.ts(+12 -0)📝
packages/solid/src/types/elements.ts(+22 -0)📄 Description
Summary
table,thead,tbody,tr,th,td) to core, React, and Solid packages with complete TypeScript typesDetails
Core Package (
@opentui/core)TableRenderablewith configurable border styles, colors, separators, and cell paddingTableHeadRenderable,TableBodyRenderable) with background color supportTableRowRenderable,TableHeaderCellRenderable,TableDataCellRenderable) with text alignment and per-cell stylingconstructs.tsas JSX-like helper functions (Table,THead,TBody,TR,TH,TD)React Package (
@opentui/react)Solid Package (
@opentui/solid)Examples & Tests
table-demofor core, React, and Solid showcasing all featuresA few screenshots
An example inside of OpenDocker using the table renderable
A solidjs demo for using the table renderable
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.