pub struct EuvButtonProps {
pub variant: EuvButtonVariant,
pub label: &'static str,
pub onclick: Option<Rc<dyn Fn(Event)>>,
pub disabled: Signal<bool>,
}Expand description
Props for the euv_button component.
Defines the strongly-typed interface for a versatile button.
Fields§
§variant: EuvButtonVariantThe visual variant determining colour scheme.
label: &'static strThe button label text, used as fallback when no children are provided.
onclick: Option<Rc<dyn Fn(Event)>>Optional click event handler.
disabled: Signal<bool>Whether the button is disabled.
Trait Implementations§
Source§impl Clone for EuvButtonProps
impl Clone for EuvButtonProps
Source§fn clone(&self) -> EuvButtonProps
fn clone(&self) -> EuvButtonProps
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 EuvButtonProps
impl Debug for EuvButtonProps
Source§impl Default for EuvButtonProps
impl Default for EuvButtonProps
Source§fn default() -> EuvButtonProps
fn default() -> EuvButtonProps
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for EuvButtonProps
impl !Send for EuvButtonProps
impl !Sync for EuvButtonProps
impl !UnwindSafe for EuvButtonProps
impl Freeze for EuvButtonProps
impl Unpin for EuvButtonProps
impl UnsafeUnpin for EuvButtonProps
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