pub fn IconButton(_: IconButtonProps) -> ElementExpand description
An icon-only Button: square, with the accessible name required by type.
The label is the button’s name, which a screen reader announces and voice
control users speak; the icon itself stays decorative. Pair it with a
Tooltip when sighted users may not recognise the icon.
§Props
For details, see the props struct definition.
icon:IconNamelabel:AccessibleNamevariant:ButtonVariantsize:ButtonSizeavailability:Availabilitybusy:boolShows the spinner in place of the icon and blocks activation.
pressed:Option<bool>r#type:ButtonTypeonclick:Option<EventHandler<MouseEvent>>class:Option<String>attributes:Vec<Attribute>