20 releases (stable)

2.0.1 Oct 13, 2024
1.3.2 Mar 5, 2024
1.3.1 Jan 6, 2024
1.3.0 Aug 22, 2023
0.5.0 Jul 31, 2021

#130 in Command line utilities

Download history 178/week @ 2024-08-22 240/week @ 2024-08-29 246/week @ 2024-09-05 219/week @ 2024-09-12 179/week @ 2024-09-19 343/week @ 2024-09-26 496/week @ 2024-10-03 592/week @ 2024-10-10 411/week @ 2024-10-17 153/week @ 2024-10-24 205/week @ 2024-10-31 204/week @ 2024-11-07 235/week @ 2024-11-14 231/week @ 2024-11-21 277/week @ 2024-11-28 161/week @ 2024-12-05

958 downloads per month
Used in 12 crates

MIT license

245KB
5.5K SLoC

tui-realm-stdlib

logo

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

tui-realm derive · tui-realm · Documentation

Developed by @veeso

Current version: 2.0.1 (13/10/2024)

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

ratatui 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 = "2"

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

tui-realm-stdlib = { version = "2", default-features = false, features = [ "termion" ] }

Latest version of tui-realm-stdlib requires tui-realm >= 2.0 or higher

tuirealm = "2"

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

~7–17MB
~231K SLoC