Function freya::components::Body

source ·
pub fn Body<'a>(cx: &'a Scoped<'a, BodyProps<'a>>) -> Option<VNode<'a>>
Expand description

Body component.

Usually just used one time and as a root component for all the app.

Props

See BodyProps.

Styling

Inherits the BodyTheme theme.

Example

fn app(cx: Scope) -> Element {
    render!(
        Body {
            label {
                "Click this"
            }
        }
    )
}