pub enum UiVariant {
Default,
Secondary,
Outline,
Ghost,
Destructive,
}Expand description
Visual emphasis for buttons and badges, mirroring shadcn/ui variants.
Default is a high-contrast filled button; secondary is a muted fill; outline shows only a border; ghost is transparent until hover; destructive flags a dangerous action.
Variants§
Default
High-emphasis button (light fill on dark theme).
Secondary
Neutral fill on a muted surface.
Outline
Transparent fill with a visible border.
Ghost
Transparent fill, only shows on hover.
Destructive
Red emphasis for destructive actions / errors.
Trait Implementations§
impl Copy for UiVariant
impl Eq for UiVariant
impl StructuralPartialEq for UiVariant
Auto Trait Implementations§
impl Freeze for UiVariant
impl RefUnwindSafe for UiVariant
impl Send for UiVariant
impl Sync for UiVariant
impl Unpin for UiVariant
impl UnsafeUnpin for UiVariant
impl UnwindSafe for UiVariant
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