use leptos::prelude::*;
#[component]
pub fn NavigationGroupPrimitive(
children: Children,
#[prop(optional, into)] aria_labelledby: Option<String>,
#[prop(into, default = String::new())] class: String,
) -> impl IntoView {
let uid_ng = crate::infra::uid::generate("ng");
view! {
<div
data-rs-navigation-group=""
data-rs-uid=uid_ng
data-rs-interaction="nav"
role="group"
aria-labelledby=aria_labelledby
class=class
>
{children()}
</div>
}
}
#[component]
pub fn NavigationGroupLabelPrimitive(
children: Children,
#[prop(into, default = String::new())] class: String,
) -> impl IntoView {
view! {
<span
data-rs-navigation-group-label=""
class=class
>
{children()}
</span>
}
}