pub struct ButtonProps {
pub variant: ButtonVariant,
pub size: Size,
pub disabled: bool,
pub loading: bool,
pub class: Option<String>,
pub aria_label: Option<String>,
pub id: Option<String>,
}Expand description
Properties for the styled Button component.
Fields§
§variant: ButtonVariant§size: Size§disabled: bool§loading: bool§class: Option<String>§aria_label: Option<String>§id: Option<String>Trait Implementations§
Source§impl Clone for ButtonProps
impl Clone for ButtonProps
Source§fn clone(&self) -> ButtonProps
fn clone(&self) -> ButtonProps
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ButtonProps
impl Debug for ButtonProps
Source§impl Default for ButtonProps
impl Default for ButtonProps
Source§fn default() -> ButtonProps
fn default() -> ButtonProps
Returns the “default value” for a type. Read more
Source§impl PartialEq for ButtonProps
impl PartialEq for ButtonProps
Source§fn eq(&self, other: &ButtonProps) -> bool
fn eq(&self, other: &ButtonProps) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ButtonProps
Auto Trait Implementations§
impl Freeze for ButtonProps
impl RefUnwindSafe for ButtonProps
impl Send for ButtonProps
impl Sync for ButtonProps
impl Unpin for ButtonProps
impl UnsafeUnpin 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