Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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