Struct freya_components::ButtonProps
source · pub struct ButtonProps<'a> {
pub children: Element<'a>,
pub onclick: Option<EventHandler<'a, MouseEvent>>,
}
Expand description
Button
component properties.
Fields§
§children: Element<'a>
Inner children for the Button.
onclick: Option<EventHandler<'a, MouseEvent>>
Handler for the onclick
event.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ButtonProps<'a>
impl<'a> !Send for ButtonProps<'a>
impl<'a> !Sync for ButtonProps<'a>
impl<'a> Unpin for ButtonProps<'a>
impl<'a> !UnwindSafe for ButtonProps<'a>
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