#tui #terminal

tui-realm-stdlib

Standard component library for tui-realm

13 releases (8 stable)

Uses new Rust 2021

1.1.6 Jan 30, 2022
1.1.5 Dec 8, 2021
1.1.4 Nov 28, 2021
0.6.4 Nov 5, 2021
0.5.0 Jul 31, 2021

#1506 in Command line utilities

Download history 105/week @ 2022-01-25 123/week @ 2022-02-01 103/week @ 2022-02-08 62/week @ 2022-02-15 104/week @ 2022-02-22 116/week @ 2022-03-01 108/week @ 2022-03-08 218/week @ 2022-03-15 200/week @ 2022-03-22 71/week @ 2022-03-29 138/week @ 2022-04-05 81/week @ 2022-04-12 89/week @ 2022-04-19 252/week @ 2022-04-26 257/week @ 2022-05-03 94/week @ 2022-05-10

706 downloads per month
Used in 5 crates

MIT license

260KB
5.5K SLoC

tui-realm-stdlib

~ A tui-rs framework inspired by Elm and React ~

tui-realm derive · tui-realm · Documentation

Developed by @veeso

Current version: 1.1.6 (30/01/2022)

License-MIT Repo stars Downloads counter Latest version Ko-fi

CI Docs



About tui-realm-stdlib 👑

tui-realm-stdlib is the standard component library for tui-realm.

It provides several Mock Components for your tui-realm applications. Probably all the components you need are here 😉


Get started 🏁

Add tui-realm to your Cargo.toml 🦀

tui-realm-stdlib = "^1.1.0"

or if you're not using the default crossterm backend, specify another backend in the cargo entry:

tui-realm-stdlib = { version = "^1.1.0", default-features = false, features = [ "with-crossterm" ] }

Latest version of tui-realm-stdlib requires tui-realm 1.1.0 or higher

tuirealm = "^1.1.0"

Support the developer ☕

If you like tui-realm and you're grateful for the work I've done, please consider a little donation 🥳

You can make a donation with one of these platforms:

ko-fi PayPal


Components 🎨

All the components implemented in the standard library can be viewed in the components wiki.


Utilities

The standard components library also exports the utils module, which provides these very handy functions:

  • wrap_spans: Creates span lines from text spans, in order to wrap lines
  • use_or_default_styles: use colors and modifiers of the text spans if not Color::Reset or Modifiers::empty(), otherwise use the properties defined the Props.
  • get_block: creates the block for the widget. If focus is true, the colors are applied, otherwise Color::Reset.

Documentation 📚

The developer documentation can be found on Rust Docs at https://docs.rs/tui-realm-stdlib


Contributing and issues 🤝🏻

Contributions, bug reports, new features and questions are welcome! 😉 If you have any question or concern, or you want to suggest a new feature, or you want just want to improve tui-realm-stdlib, feel free to open an issue or a PR.

Please follow our contributing guidelines


Changelog ⏳

View tui-realm's changelog HERE


License 📃

tui-realm-stdlib is licensed under the MIT license.

You can read the entire license HERE

Dependencies

~2.7–9MB
~172K SLoC