Skip to content

feat: add TextTable component - #60

Open
posva wants to merge 1 commit into
mainfrom
feat/text-table
Open

feat: add TextTable component#60
posva wants to merge 1 commit into
mainfrom
feat/text-table

Conversation

@posva

@posva posva commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

What

TextTable + TableRow/TableCell components, wired in nodeOps as tui-text-table, exported types

Slot rows compile to the content matrix; unchanged cells keep identity so OpenTUI's cell diff skips them

Implementation Notes

  • fg/bg/backgroundColor/selection colors are constructor-only in OpenTUI → non-reactive, documented
  • Fix: exported BorderStyle wrongly included 'none' (OpenTUI has no such style) — now aliases OpenTUI's type

Testing

  • 14 new specs; full suite 188 passing
  • Demo verified live in the playground

- new <TextTable> mapping to OpenTUI's TextTableRenderable
- declarative <TableRow>/<TableCell> with style props that cascade (chunk > cell > row), or a raw `content` matrix
- fix exported BorderStyle: alias OpenTUI's type, drop nonexistent 'none'
- playground demo replicating opentui's text-table-demo + a static declarative example
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vue-termui Ready Ready Preview, Comment Jul 10, 2026 8:29pm

Request Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/vue-terminal/vue-termui@60

commit: ff75249

@posva posva linked an issue Jul 10, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can this framework display tables?

1 participant