pub struct FormFieldProps {
pub label: String,
pub value: Option<State<String>>,
pub has_focus: bool,
pub suffix: String,
pub is_editable: bool,
}Expand description
Props for the FormField component.
Fields§
§label: StringField label
value: Option<State<String>>Field value (state binding)
has_focus: boolWhether this field has focus
suffix: StringOptional suffix text (e.g., domain suffix)
is_editable: boolWhether this field should be editable as text input (false for cycled fields like Type/Proxied)
Trait Implementations§
Source§impl Default for FormFieldProps
impl Default for FormFieldProps
Source§fn default() -> FormFieldProps
fn default() -> FormFieldProps
Returns the “default value” for a type. Read more
impl Props for FormFieldProps
Auto Trait Implementations§
impl Freeze for FormFieldProps
impl !RefUnwindSafe for FormFieldProps
impl Send for FormFieldProps
impl Sync for FormFieldProps
impl Unpin for FormFieldProps
impl UnsafeUnpin for FormFieldProps
impl !UnwindSafe for FormFieldProps
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more