thaw 0.4.8

An easy to use leptos component library
Documentation
1
2
3
4
5
6
7
8
9
10
11
use leptos::prelude::*;
use thaw_utils::{class_list, mount_style};

#[component]
pub fn CardFooter(
    #[prop(optional, into)] class: MaybeProp<String>,
    children: Children,
) -> impl IntoView {
    mount_style("card-footer", include_str!("./card-footer.css"));
    view! { <div class=class_list!["thaw-card-footer", class]>{children()}</div> }
}