Struct freya::prelude::ButtonProps
source · pub struct ButtonProps<'a> {
pub children: Option<VNode<'a>>,
pub onclick: Option<EventHandler<'a, Event<MouseData>>>,
}
Expand description
Button
component properties.
Fields§
§children: Option<VNode<'a>>
Inner children for the Button.
onclick: Option<EventHandler<'a, Event<MouseData>>>
Handler for the onclick
event.
Implementations§
Trait Implementations§
source§impl<'a> Properties for ButtonProps<'a>
impl<'a> Properties for ButtonProps<'a>
§type Builder = ButtonPropsBuilder<'a, ((), ())>
type Builder = ButtonPropsBuilder<'a, ((), ())>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
source§fn builder() -> <ButtonProps<'a> as Properties>::Builder
fn builder() -> <ButtonProps<'a> as Properties>::Builder
Create a builder for this component.