pub fn Button(_: ButtonProps) -> ElementExpand description
Renders a styled native button with caller-supplied attributes and events.
- Complexity: O(attributes + children) render work.
§Examples
use adam_web_ui::components::button::Button;
use dioxus::prelude::*;
fn app() -> Element { rsx! { Button { "Save" } } }§Props
For details, see the props struct definition.
variant:ButtonVariantsize:ButtonSizeattributes:Vec<Attribute>onclick:Option<EventHandler<MouseEvent>>onmousedown:Option<EventHandler<MouseEvent>>onmouseup:Option<EventHandler<MouseEvent>>onkeydown:Option<EventHandler<KeyboardEvent>>children:Element