feat: add simple MultiEntry component

This commit is contained in:
alphafetus committed 2025-08-03 17:58:36 -04:00
1 parent 9d18eb0810
commit c6e99cc7a8
9 files changed
+369 -184

No files matched your search

+6 -3
View File
@@ -1,8 +1,10 @@
use crate::components::{MultiEntry, OutlinedTextField};
use crate::components::{MultiEntry, MultiEntryData, MultiEntryMember, OutlinedTextField};
use leptos::prelude::*;
#[component]
pub fn ProviderEntry() -> impl IntoView {
let multi_entries: RwSignal<Vec<MultiEntryData>> = RwSignal::new(vec![]);
view! (
<h1>This is the provider entry page</h1>
<h2>It would usually have a series of questions that we ask the providers</h2>
@@ -16,8 +18,9 @@ pub fn ProviderEntry() -> impl IntoView {
<div>
<p>This is an example of the multientry element.</p>
<MultiEntry
nameMember="name".into()
infoMember="info".into()
entries=multi_entries
name_member=Signal::from(MultiEntryMember::from_str("Entry Name", "name"))
info_member=Signal::from(MultiEntryMember::from_str("Entry Info", "info"))
/>
</div>
)