canonrs-server 0.1.0

CanonRS server-side rendering support
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use leptos::prelude::*;
use super::combobox_ui::{Combobox, ComboboxTrigger, ComboboxList, ComboboxItem};

#[component]
pub fn BasicExample() -> impl IntoView {
    view! {
        <Combobox>
            <ComboboxTrigger>"Select option..."</ComboboxTrigger>
            <ComboboxList>
                <ComboboxItem>"Option 1"</ComboboxItem>
                <ComboboxItem>"Option 2"</ComboboxItem>
                <ComboboxItem>"Option 3"</ComboboxItem>
                <ComboboxItem disabled=true>"Option 4"</ComboboxItem>
            </ComboboxList>
        </Combobox>
    }
}