# tui-realm-stdlib
~ 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)
--- - [tui-realm-stdlib](#tui-realm-stdlib) - [About tui-realm-stdlib ๐](#about-tui-realm-stdlib-) - [Get started ๐](#get-started-) - [Add tui-realm to your Cargo.toml ๐ฆ](#add-tui-realm-to-your-cargotoml-) - [Support the developer โ](#support-the-developer-) - [Components ๐จ](#components-) - [Utilities](#utilities) - [Documentation ๐](#documentation-) - [Contributing and issues ๐ค๐ป](#contributing-and-issues-) - [Changelog โณ](#changelog-) - [License ๐](#license-) --- ## About tui-realm-stdlib ๐ tui-realm-stdlib is the standard component library for [tui-realm](https://github.com/veeso/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 ๐ฆ ```toml tui-realm-stdlib = "2" ``` or if you're not using the default **crossterm backend**, specify another backend in the cargo entry: ```toml tui-realm-stdlib = { version = "2", default-features = false, features = [ "termion" ] } ``` Latest version of tui-realm-stdlib requires **tui-realm >= 2.0** or higher ```toml 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](https://img.shields.io/badge/Ko--fi-F16061?style=for-the-badge&logo=ko-fi&logoColor=white)](https://ko-fi.com/veeso) [![PayPal](https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white)](https://www.paypal.me/chrisintin) --- ## Components ๐จ All the components implemented in the standard library can be viewed in the [components wiki](/docs/components.md). --- ### 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