leptos-material 0.6.1

A Leptos component wrapper for Material Web Components.
1
2
3
4
5
6
7
8
9
10
11
12
use leptos::{component, html, view, Children, IntoView};
/// [MWC Docs](https://material-web.dev/components/progress/)
#[component]
pub fn CircularProgress(#[prop(default = true)] indeterminate: bool) -> impl IntoView {
    view! { <md-circular-progress indeterminate=indeterminate></md-circular-progress> }
}

/// [MWC Docs](https://material-web.dev/components/progress/)
#[component]
pub fn LinearProgress(#[prop(default = true)] indeterminate: bool) -> impl IntoView {
    view! { <md-linear-progress indeterminate=indeterminate></md-linear-progress> }
}