UNPKG

@mui/material

Version:

React components that implement Google's Material Design.

64 lines (61 loc) 1.79 kB
import * as React from 'react'; import { SxProps } from '@mui/system'; import { Theme } from '../styles'; import { InternalStandardProps as StandardProps } from '..'; import { FabProps } from '../Fab'; import { TooltipProps } from '../Tooltip'; import { SpeedDialActionClasses } from './speedDialActionClasses'; export interface SpeedDialActionProps extends StandardProps<Partial<TooltipProps>, 'children'> { /** * Override or extend the styles applied to the component. */ classes?: Partial<SpeedDialActionClasses>; /** * Props applied to the [`Fab`](/material-ui/api/fab/) component. * @default {} */ FabProps?: Partial<FabProps>; /** * Adds a transition delay, to allow a series of SpeedDialActions to be animated. * @default 0 */ delay?: number; /** * The icon to display in the SpeedDial Fab. */ icon?: React.ReactNode; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps<Theme>; /** * `classes` prop applied to the [`Tooltip`](/material-ui/api/tooltip/) element. */ TooltipClasses?: TooltipProps['classes']; /** * Placement of the tooltip. * @default 'left' */ tooltipPlacement?: TooltipProps['placement']; /** * Label to display in the tooltip. */ tooltipTitle?: React.ReactNode; /** * Make the tooltip always visible when the SpeedDial is open. * @default false */ tooltipOpen?: boolean; } /** * * Demos: * * - [Speed Dial](https://mui.com/material-ui/react-speed-dial/) * * API: * * - [SpeedDialAction API](https://mui.com/material-ui/api/speed-dial-action/) * - inherits [Tooltip API](https://mui.com/material-ui/api/tooltip/) */ export default function SpeedDialAction(props: SpeedDialActionProps): JSX.Element;