grx

Macro grx 

Source
macro_rules! grx {
    (
        $text:literal
    ) => { ... };
    (
        $component_name:ident
        // args
        $( ($($args:tt)*) )?
        // body
        $([$($body:tt)+])?
    ) => { ... };
}
Expand description

Define a UI component

ยงExamples

use grx::{Component, grx, container, Style::*};
fn my_component() -> Component {
    grx! {
        container(id="root".to_string(), styles=[vertical, p(2)])
    }
}