Skip to Content
Archi-ui 1.0.25 is released 🎉
ComponentsSpeedDial

SpeedDial

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 use to present them.

Basic SpeedDial

The floating action button can display related actions.

Usage

import { SpeedDial, SpeedDialAction, SpeedDialAction, SpeedDialIcon, IconButton } from 'archi-ui'
<SpeedDial icon={<SpeedDialIcon icon={'+'} openIcon={'X'} open={openSpeedDial} />} open={true} > <SpeedDialActions direction='up'> <SpeedDialAction icon={<IconButton color='warning' className='hover:bg-gray-200' size='sm'><span>S</span></IconButton>} tooltipOpen arrow placement='left' tooltipTitle="send" open={openSpeedDial} /> <SpeedDialAction icon={<IconButton color='error' className='hover:bg-gray-200' size='sm'><span>D</span></IconButton>} tooltipOpen arrow placement='left' tooltipTitle="delete" open={openSpeedDial} /> <SpeedDialAction icon={<IconButton color='info' className='hover:bg-gray-200' size='sm'><span>S</span></IconButton>} tooltipOpen arrow placement='left' tooltipTitle="share" open={openSpeedDial} /> <SpeedDialAction icon={<IconButton color='success' className='hover:bg-gray-200' size='sm'><span>W</span></IconButton>} tooltipOpen arrow placement='left' tooltipTitle="whatsapp" open={openSpeedDial} /> </SpeedDialActions> </SpeedDial>

Playground

Hidden

Tooltip

Tooltip arrow

Direction:

Placement:

Tooltip Placement:

Share
Print
Save
Copy

Controlled speed Dial

The open state of the component can be controlled with the open / onOpen / onClose props.

Persistent action tooltips

The SpeedDialActions tooltips can be displayed persistently so that users don’t have to long press to see the tooltip on touch devices.

Share
Print
Save
Copy

SpeedDial API

API reference docs for the React SpeedDial component.

Props

NameTypeDefaultDescription
childrennode-SpeedDialActions to display when the SpeedDial is open.
classNamestring-Override or extend the styles applied to the component.
direction'up' | 'down' | 'left' | 'right''up'The direction the actions open relative to the floating action button.
placement'top-left' | 'top-right' | 'bottom-left' | 'bottom-right''bottom-right'The placement of an SpeedDial, the position of the component is fixed(default).
FabPropsobject-Props applied to the Fab element.
hiddenboolfalseIf true, the SpeedDial is hidden.
iconnode-The icon to display in the SpeedDial Fab. Component provides a default Icon with animation.
openbool-If true, the component is shown.
onClosefunc-Callback fired when the component is requests to be closed.
Signature: function() => void.
onOpenfunc-Callback fired when the component is requests to be opened.
Signature: function() => void.

SpeedDialAction API

API reference docs for the React SpeedDialAction component.

Props

NameTypeDefaultDescription
classNamestring-Override or extend the styles applied to the component.
iconnode-The icon to display in the SpeedDialAction.
openbool-If true, the component is shown.
tooltipOpenboolfalseMake the tooltip always visible when the SpeedDial is open.
tooltipPlacement'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top''left'The placement of an SpeedDial, the position of the component is fixed(default).
tooltipTitlenode-Label to display in the tooltip.
arrowboolfalseIf true, tooltip arrow is shown.
tooltipClassesstring-Classes applied to the Tooltip element.
tooltipArrowClassesstring-Classes applied to the tooltip arrow element.
iconnode-The icon to display in the SpeedDial Fab. Component provides a default Icon with animation.
openbool-If true, the component is shown.
onClosefunc-Callback fired when the component is requests to be closed.
Signature: function() => void.
onOpenfunc-Callback fired when the component is requests to be opened.
Signature: function() => void.

SpeedDialIcon API

API reference docs for the React SpeedDialIcon component.

Props

NameTypeDefaultDescription
classNamestring-Override or extend the styles applied to the component.
iconnode-The icon to display.
openIconnode-The icon to display in the SpeedDial Floating Action Button when the SpeedDial is open.
Last updated on