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