Label

Renders an accessible label associated with controls.

Anatomy

Import all parts and piece them together.

use leptos::prelude::*;
use singlestage::Label;

#[component]
pub fn LabelAnatomy() -> impl IntoView {
    view! { <Label /> }
}

API Reference

Label

Renders an accessible label associated with controls.

Custom Attributes
NameTypeDefaultDescription
label_forString""

Renamed <label> `for` attribute to avoid name collisions.

Implements global attributes.