pub fn Input(props: InputProps) -> ElementExpand description
An input component styled with theme-chalk CSS
This component wraps the native HTML input/textarea element and applies theme-chalk CSS classes for consistent styling.
§Example
ⓘ
use dioxus_theme_chalk::components::input::{Input, InputType, InputSize};
rsx! {
Input {
input_type: InputType::Text,
placeholder: "Enter your name",
size: Some(InputSize::Medium),
on_input: move |evt| println!("Input: {}", evt.value()),
}
}