Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
  • 한국어
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
  • 한국어
GitHub
  • Categories

    • Bits
    • Bytes
    • Chart
    • Conversions
    • Core
    • Database
    • Dataframe
    • Dataframe Or Lazyframe
    • Date
    • Debug
    • Default
    • Env
    • Experimental
    • Expression
    • Filesystem
    • Filters
    • Formats
    • Generators
    • Hash
    • History
    • Lazyframe
    • Math
    • Misc
    • Network
    • Path
    • Platform
    • Plugin
    • Prompt
    • Random
    • Removed
    • Shells
    • Strings
    • System
    • Viewers

tui box for viewers

Group widgets inside a titled, bordered box.

Command Type

built-in

Signature

> tui box {flags} (title) (children)

Flags

  • --id {string}: Widget id.
  • --focus: Start with this widget focused.

Parameters

  • title: Box title.
  • children: Widgets inside the box, e.g. [(tui search) (tui table)].

Input/output types:

inputoutput
nothingtui
tuitui
anytui

Examples

A titled box inside a split

> ls | tui split [(tui box "list" [(tui table)]) (tui preview)] | tui run

Notes

Children stack vertically inside the border. Boxes nest and can sit inside tui split. Children are tui values built in parentheses: tui box "files" [(tui search) (tui table)].