Skip to main content

Button

Function Button 

Source
pub fn Button(_: ButtonProps) -> Element
Expand 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.