pub enum ButtonVariant {
Default,
Primary,
Danger,
Outline,
}Expand description
Visual variant for buttons.
Controls the color scheme used when rendering a button. Pass to
[Context::button_with] to create styled button variants.
Default— theme text color, primary when focused (same asbutton())Primary— primary color background with contrasting textDanger— error/red color for destructive actionsOutline— bordered appearance without fill
Variants§
Default
Standard button style.
Primary
Filled button with primary background color.
Danger
Filled button with error/danger background color.
Outline
Bordered button without background fill.
Trait Implementations§
Source§impl Clone for ButtonVariant
impl Clone for ButtonVariant
Source§fn clone(&self) -> ButtonVariant
fn clone(&self) -> ButtonVariant
Returns a duplicate of the value. Read more
1.0.0 · 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 ButtonVariant
impl Debug for ButtonVariant
Source§impl Default for ButtonVariant
impl Default for ButtonVariant
Source§fn default() -> ButtonVariant
fn default() -> ButtonVariant
Returns the “default value” for a type. Read more
Source§impl Hash for ButtonVariant
impl Hash for ButtonVariant
Source§impl PartialEq for ButtonVariant
impl PartialEq for ButtonVariant
impl Copy for ButtonVariant
impl Eq for ButtonVariant
impl StructuralPartialEq for ButtonVariant
Auto Trait Implementations§
impl Freeze for ButtonVariant
impl RefUnwindSafe for ButtonVariant
impl Send for ButtonVariant
impl Sync for ButtonVariant
impl Unpin for ButtonVariant
impl UnsafeUnpin for ButtonVariant
impl UnwindSafe for ButtonVariant
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