Skip to main content

Badge

Function Badge 

Source
pub fn Badge(props: BadgeProps) -> Element
Expand description

Badge component for displaying notification counts or status indicators

§Example

rsx! {
    Badge { value: Some("5".to_string()), badge_type: BadgeType::Danger,
        Button { "Messages" }
    }
}