thaw 0.4.8

An easy to use leptos component library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::option_group::OptionGroup;
use leptos::prelude::*;

#[component]
pub fn ComboboxOptionGroup(
    #[prop(optional, into)] class: MaybeProp<String>,
    /// Label of the group.
    #[prop(into)]
    label: String,
    children: Children,
) -> impl IntoView {
    view! { <OptionGroup class_prefix="thaw-combobox-option-group" class label children /> }
}