Closed joshka closed 10 months ago
These macros are similar to the format! macro, but return a raw or styled Span instead of a String.
use ratatui_macros::{raw, styled}; let name = "world"; raw!("Hello, {name}!"); styled!(Style::new().green(), "Hello, {name}!"); styled!(Color::Green, "Hello, {name}!"); styled!(Modifier::BOLD, "Hello, {name}!");
Looks good! Should we add a note to the README?
done
These macros are similar to the format! macro, but return a raw or styled Span instead of a String.