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
18
#![allow(unreachable_pub, dead_code)]

use leptos::prelude::*;
use canonrs_core::primitives::LabelPrimitive;

#[component]
pub fn Label(
    children: Children,
    #[prop(into, default = String::new())] for_id: String,
    #[prop(into, default = String::new())] class: String,
) -> impl IntoView {
    view! {
        <LabelPrimitive html_for=for_id class=class>
            {children()}
        </LabelPrimitive>
    }
}