When pressed, a floating action button can display three to six related actions in the form of a Speed Dial.
If more than six actions are needed, something other than a FAB should be used to present them.
The floating action button can display related actions.
{{ādemoā: āBasicSpeedDial.jsā}}
{{ādemoā: āPlaygroundSpeedDial.jsā}}
The open state of the component can be controlled with the open
/onOpen
/onClose
props.
{{ādemoā: āControlledOpenSpeedDial.jsā}}
You can provide an alternate icon for the closed and open states using the icon
and openIcon
props
of the SpeedDialIcon
component.
{{ādemoā: āOpenIconSpeedDial.jsā}}
The SpeedDialActions tooltips can be displayed persistently so that users donāt have to long-press to see the tooltip on touch devices.
It is enabled here across all devices for demo purposes, but in production it could use the isTouch
logic to conditionally set the prop.
{{ādemoā: āSpeedDialTooltipOpen.jsā}}
ariaLabel
for the speed dial component.tooltipTitle
for each speed dial action.aria-haspopup
, aria-expanded
and aria-controls
attributes.role="menu"
and aria-orientation
set according to the direction.role="menuitem"
, and an aria-describedby
attribute that references the associated tooltip.