Material Components React Floating Action Button (FAB)
npm install @material/react-fabA React version of an MDC Floating Action Button.
```
npm install @material/react-fab
with Sass:
`js`
import '@material/react-fab/index.scss';
with CSS:
`js`
import '@material/react-fab/dist/fab.css';
The Fab can be used with the span, i, img or svg elements. It can also be used with the`
Material Icon react component.html
}/>
``
Prop Name | Type | Description
--- | --- | ---
className | String | Classes to be applied to the root element.
exited | Boolean | When true animates the FAB out of view. When this false, the FAB will return to view.
mini | Boolean | Enables the mini variant.
icon | Element | The icon.
textLabel | String | The label, which makes the FAB extended.
Sass mixins may be available to customize various aspects of the components. Please refer to the
MDC Web repository for more information on what mixins are available, and how to use them.
Please see our Best Practices doc when importing or using icon fonts.