thaw 0.4.8

An easy to use leptos component library
Documentation
use leptos::prelude::*;
use thaw_utils::{class_list, mount_style};

#[component]
pub fn ButtonGroup(
    #[prop(optional, into)] class: MaybeProp<String>,
    /// Directions of buttons in the group.
    #[prop(optional)]
    vertical: bool,
    children: Children,
) -> impl IntoView {
    mount_style("button-group", include_str!("./button-group.css"));
    view! {
        <div
            class=class_list!["thaw-button-group", class]
            class=("thaw-button-group--vertical", vertical)
        >
            {children()}
        </div>
    }
}