use leptos::{ev::MouseEvent, prelude::*}; use leptos_style::Style; // Static classes for better compilation compatibility const COMPONENT_CLASS: &str = "flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"; #[component] pub fn ComponentName( /// The value of the input #[prop(into, optional)] value: MaybeProp, /// Callback when value changes #[prop(into, optional)] on_change: Option>, /// Placeholder text #[prop(into, optional)] placeholder: MaybeProp, /// Whether the input is disabled #[prop(into, optional)] disabled: Signal, /// Input type #[prop(into, optional)] input_type: MaybeProp, // Global attributes #[prop(into, optional)] class: MaybeProp, #[prop(into, optional)] id: MaybeProp, #[prop(into, optional)] style: Signal