Input

Displays a form input field or a component that looks like an input field.

Installation

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

rust-shadcn-ui add input

Usage

use yew::prelude::*;

use crate::components::ui::input::Input;

#[component]
fn Usage() -> impl IntoView {
    view! {
        <Input />
    }
}

Examples

Default

File

Disabled

With Label

With Text

With Button

Form

See Also