Props

Derive Macro Props 

Source
#[derive(Props)]
Expand description

Derive macro for component props

§Example

#[derive(Props)]
struct ButtonProps {
    text: String,
    onClick: Box<dyn Fn()>,
}