Commit graph

1 commit

Author SHA256 Message Date
da7b4c5658 feat: dioxus-ratatui v0.1.0 — Ratatui renderer for Dioxus
Bridge between Dioxus Core (reactive components) and
Ratatui (terminal rendering).

Architecture: retained TuiNode tree + immediate Ratatui render
  Dioxus VirtualDom → WriteMutations → TuiTree → Frame → Terminal

Modules:
  tree.rs      — retained node tree (Element, Text, Placeholder)
  renderer.rs  — WriteMutations impl (14 methods)
  layout.rs    — Dioxus attrs → Ratatui Constraint/Direction
  style.rs     — attrs → Ratatui Style (colors, bold, italic)
  events.rs    — crossterm quit detection
  render.rs    — tree walker → Ratatui widget rendering
  lib.rs       — launch() + event loop + terminal lifecycle

Elements: div, p, span, h1-h3, hr
Layout: vertical/horizontal split, percentage/length/fill constraints
Styling: named colors, hex, bold, italic, underline, dim
Events: keyboard quit (Ctrl+C, q)

453 lines. Zero governance/substrate dependencies.
Apache 2.0 — pure community crate.

Signed-off-by: Tyler King <tking@guildhouse.dev>
2026-04-05 14:38:14 -04:00