Skip to main content
Version: 3.4.2

Speed Dial

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. Upon press, the FAB remains visible and emits a stack of related actions. If the FAB is tapped in this state, it should either initiate its default action or close the speed dial actions.

Speed Dial

Usage#

import { SpeedDial } from 'react-native-elements';
<SpeedDial  isOpen={open}  icon={{ name: 'edit', color: '#fff' }}  openIcon={{ name: 'close', color: '#fff' }}  onOpen={() => setOpen(!open)}  onClose={() => setOpen(!open)}>  <SpeedDial.Action    icon={{ name: 'add', color: '#fff' }}    title="Add"    onPress={() => console.log('Add Something')}  />  <SpeedDial.Action    icon={{ name: 'delete', color: '#fff' }}    title="Delete"    onPress={() => console.log('Delete Something')}  /></SpeedDial>

Props#

Also receives all FAB props except size


Reference#

isOpen#

Opens the action stack

TypeDefault
booleanfalse

openIcon#

Icon shown on FAB when action stack is open

TypeDefault
IconNodenone

transitionDuration#

The duration for the transition, in milliseconds.

TypeDefault
Number150

onOpen#

Callback fired when the component requests to be open.

TypeDefault
functionnone

onClose#

Callback fired when the component requests to be closed.

TypeDefault
functionnone


Child Components#

SpeedDial.Action#

Receives all FAB props.