Label

Renders an accessible label associated with controls.

Installation

The CLI is not yet available. For now, manually copy the component source into your project.

rust-shadcn-ui add label

Usage

use yew::prelude::*;

use crate::components::ui::label::Label;

#[component]
fn Usage() -> impl IntoView {
    view! {
        <Label r#for="email">{"Your email address"}</Label>
    }
}

See Also