pub struct ButtonProps {
pub button_type: Option<String>,
pub label: TextProp,
pub icon: Option<String>,
pub id: Option<String>,
pub form: Option<String>,
pub disabled: Option<MaybeSignal<bool>>,
}Expand description
Props for the Button component.
A button that only contains an icon.
§Required Props
- label:
impl Into<TextProp>
§Optional Props
- button_type:
impl Into<String> - icon:
impl Into<String> - id:
impl Into<String> - form:
impl Into<String> - disabled:
impl Into<MaybeSignal<bool>>
Fields§
§label: TextProp§icon: Option<String>§id: Option<String>§form: Option<String>§disabled: Option<MaybeSignal<bool>>Implementations§
Source§impl ButtonProps
impl ButtonProps
Sourcepub fn builder() -> ButtonPropsBuilder<((), (), (), (), (), ())>
pub fn builder() -> ButtonPropsBuilder<((), (), (), (), (), ())>
Create a builder for building ButtonProps.
On the builder, call .button_type(...)(optional), .label(...), .icon(...)(optional), .id(...)(optional), .form(...)(optional), .disabled(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ButtonProps.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ButtonProps
impl !RefUnwindSafe for ButtonProps
impl !Send for ButtonProps
impl !Sync for ButtonProps
impl Unpin for ButtonProps
impl !UnwindSafe for ButtonProps
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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