pub struct FormStyle {
pub title: Style,
pub label: Style,
pub label_focused: Style,
pub input: Style,
pub input_focused: Style,
pub placeholder: Style,
pub error: Style,
pub button: Style,
pub button_focused: Style,
pub border: Style,
pub border_focused: Style,
}Expand description
Style configuration for forms.
Fields§
§title: StyleStyle for the form title.
label: StyleStyle for field labels.
label_focused: StyleStyle for focused field labels.
input: StyleStyle for input fields.
input_focused: StyleStyle for focused input fields.
placeholder: StyleStyle for placeholder text.
error: StyleStyle for error messages.
Style for the submit button.
Style for the focused submit button.
border: StyleStyle for the form border.
border_focused: StyleStyle for the focused form border.
Implementations§
Source§impl FormStyle
impl FormStyle
Sourcepub fn label_focused(self, style: Style) -> Self
pub fn label_focused(self, style: Style) -> Self
Sets the focused label style.
Sourcepub fn input_focused(self, style: Style) -> Self
pub fn input_focused(self, style: Style) -> Self
Sets the focused input style.
Sourcepub fn placeholder(self, style: Style) -> Self
pub fn placeholder(self, style: Style) -> Self
Sets the placeholder style.
Sets the button style.
Sets the focused button style.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormStyle
impl RefUnwindSafe for FormStyle
impl Send for FormStyle
impl Sync for FormStyle
impl Unpin for FormStyle
impl UnwindSafe for FormStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more