use leptos::prelude::*;
#[component]
pub fn DemoDatalist() -> impl IntoView {
view! {
<div>
<input list="data" type="text" placeholder="Select a value" />
<datalist id="data">
<option value="Value 1" />
<option value="">"Just title"</option>
<option value="Value 3" />
<option value="Value 4">"Title with long text"</option>
<option value="Value 5" />
<option value="Value 6" />
</datalist>
</div>
}
}