use crate::tag::TagLike;
use dioxus::prelude::*;
#[derive(Props, Clone, PartialEq)]
pub struct DropdownGroupProps<T: TagLike + 'static> {
pub label: String,
#[props(extends = GlobalAttributes)]
pub attributes: Vec<Attribute>,
pub children: Element,
#[props(default)]
_phantom: std::marker::PhantomData<T>,
}
pub fn DropdownGroup<T: TagLike>(props: DropdownGroupProps<T>) -> Element {
rsx! {
div {
role: "group",
aria_label: "{props.label}",
"data-slot": "dropdown-group",
"data-group": "{props.label}",
..props.attributes,
{props.children}
}
}
}