use leptos::{ IntoView, component, error::Error, html::Select, prelude::{ ClassAttribute, CollectView, ElementChild, GlobalAttributes, NodeRef, NodeRefAttribute, }, server::LocalResource, view, }; use crate::components::{async_fetch::AsyncFetch, get_id}; #[component] pub fn SelectPlaceholder( label: &'static str, node_ref: NodeRef {move || { AsyncFetch! { @map_error_in_producer from_resource = options, producer = |options| { options .into_iter() .map(|(label, value)| { view! { } }) .collect_view() } } }} // TODO: Reference `var(--tw-border-2)` instead of the `2 px` <2025-10-01>
} }