UNPKG

@activelylearn/material-ui

Version:

Material-UI's workspace package

34 lines (23 loc) 2.74 kB
--- filename: /packages/material-ui-lab/src/SpeedDial/SpeedDial.js --- <!--- This documentation is automatically generated, do not try to edit it. --> # SpeedDial ## Props | Name | Type | Default | Description | |:-----|:-----|:--------|:------------| | <span class="prop-name required">ariaLabel *</span> | <span class="prop-type">string | | The aria-label of the `Button` element. Also used to provide the `id` for the `SpeedDial` element and its children. | | <span class="prop-name">ButtonProps</span> | <span class="prop-type">object | | Properties applied to the `Button` element. | | <span class="prop-name required">children *</span> | <span class="prop-type">node | | SpeedDialActions to display when the SpeedDial is `open`. | | <span class="prop-name">classes</span> | <span class="prop-type">object | | Override or extend the styles applied to the component. See [CSS API](#css-api) below for more details. | | <span class="prop-name">hidden</span> | <span class="prop-type">bool | <span class="prop-default">false</span> | If `true`, the SpeedDial will be hidden. | | <span class="prop-name required">icon *</span> | <span class="prop-type">element | | The icon to display in the SpeedDial Floating Action Button. The `SpeedDialIcon` component provides a default Icon with animation. | | <span class="prop-name">onClose</span> | <span class="prop-type">func | | Callback fired when the component requests to be closed.<br><br>**Signature:**<br>`function(event: object, key: string) => void`<br>*event:* The event source of the callback<br>*key:* The key pressed | | <span class="prop-name required">open *</span> | <span class="prop-type">bool | | If `true`, the SpeedDial is open. | | <span class="prop-name">openIcon</span> | <span class="prop-type">node | | The icon to display in the SpeedDial Floating Action Button when the SpeedDial is open. | | <span class="prop-name">TransitionComponent</span> | <span class="prop-type">union:&nbsp;string&nbsp;&#124;<br>&nbsp;func<br> | <span class="prop-default">Zoom</span> | Transition component. | | <span class="prop-name">transitionDuration</span> | <span class="prop-type">union:&nbsp;number&nbsp;&#124;<br>&nbsp;{enter?: number, exit?: number}<br> | <span class="prop-default">{ enter: duration.enteringScreen, exit: duration.leavingScreen,}</span> | The duration for the transition, in milliseconds. You may specify a single timeout for all transitions, or individually with an object. | | <span class="prop-name">TransitionProps</span> | <span class="prop-type">object | | Properties applied to the `Transition` element. | Any other properties supplied will be spread to the root element (native element). ## Demos - [Speed Dial](/lab/speed-dial)