waterui_text/
macros.rs

1/// Creates a reactive text component with formatted content.
2///
3/// This macro provides a convenient way to create text components with
4/// formatted content that automatically updates when reactive values change.
5///
6/// # Usage
7///
8/// ```ignore
9/// let name = binding("World");
10/// let greeting = text!("Hello, {}!", name);
11/// ```
12#[macro_export]
13macro_rules! text {
14    ($($arg:tt)*) => {
15        {
16            use $crate::__nami as nami;
17            #[allow(unused_parens)]
18            $crate::Text::new($crate::__nami::s!($($arg)*))
19        }
20    };
21}