pub fn SplitButton(_: SplitButtonProps) -> ElementExpand description
The main action and a toggle that opens a menu of alternatives.
The toggle reports aria-expanded from expanded; render the menu itself in menu,
for example a popover the toggle opens through ontoggle. While the action is busy
the toggle stays focusable but inactive, so the group does not shift under the user.
§Props
For details, see the props struct definition.
label:AccessibleNameNames the group, e.g. “Send”.
menu_label:AccessibleNameNames the toggle, e.g. “More send options”.
variant:ButtonVariantsize:ButtonSizeavailability:Availabilitybusy:boolexpanded:boolonclick:Option<EventHandler<MouseEvent>>ontoggle:Option<EventHandler<()>>menu:Option<Element>class:Option<String>attributes:Vec<Attribute>children:Element