mirror of
https://github.com/ratatui-org/ratatui
synced 2025-02-16 22:18:51 +00:00
Currently, `f.render_widget("hello world".bold(), area)` works but `f.render_widget("hello world", area)` doesn't. This PR changes that my implementing `Widget` for `&str` and `String`. This makes it easier to render strings with no styles as widgets. Example usage: ```rust terminal.draw(|f| f.render_widget("Hello World!", f.size()))?; ``` --------- Co-authored-by: Josh McKinney <joshka@users.noreply.github.com> |
||
---|---|---|
.. | ||
backend | ||
buffer | ||
layout | ||
style | ||
terminal | ||
text | ||
widgets | ||
backend.rs | ||
buffer.rs | ||
layout.rs | ||
lib.rs | ||
prelude.rs | ||
style.rs | ||
symbols.rs | ||
terminal.rs | ||
text.rs | ||
widgets.rs |