feat: implement basic selectable nav list

This commit is contained in:
alphafetus committed 2026-01-26 16:42:32 -05:00
1 parent 2069beba8a
commit aa912673c0
10 files changed
+285 -19

No files matched your search

+30
View File
@@ -0,0 +1,30 @@
use leptos::prelude::*;
use crate::components::{NavListInfo, SelectableNavList};
#[component]
pub fn AdminProviderPage() -> impl IntoView {
let selected_items = RwSignal::new(Vec::new());
let provider_list = RwSignal::new(vec![
NavListInfo {
text: "Testing 1".to_string(),
id: "1".to_string(),
slug: "1".to_string(),
},
NavListInfo {
text: "Testing 2".to_string(),
id: "2".to_string(),
slug: "2".to_string(),
}
]);
view! {
<div class="flex flex-1 flex-col gap-4 items-stretch mt-4">
<div class="font-bold text-3xl self-center">"Provider View"</div>
<SelectableNavList
selected=selected_items
name="providers-nav-list"
items=provider_list
/>
</div>
}
}