yew_components_library 0.1.0

A collection of yew components using the atomic component management system. Components are made in tailwindcss.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use yew::{function_component, html, Html};

mod props;
use props::Props;

#[function_component]
pub fn Label(props: &Props) -> Html {
    html! {
        <div class="text-center text-background-on-light dark:text-background-on-dark align-middle">
            {for props.children.iter()}
        </div>
    }
}