@materialr/fab
v1.0.3
Published
Material FAB implementation for React
Downloads
23
Readme
MaterialR Fab
@materialr/fab
Material FAB implementation for React
Installation
$ npm install --save @materialr/fab
Demo
A full demo is available on the MaterialR website showcasing all variants.
Components
Default export
import Fab from '@materialr/fab';
| Prop | Type | Required | Default | Description |
| ----------- | ------ | -------- | --------- | ------------------------------------------- |
| className
| string | No | undefined | Additional classNames to add |
| exited
| bool | No | false | Whether the fab has the exiting style |
| icon
| string | Yes | N/A | The material icon to render |
| mini
| bool | No | false | Whether the fab has the mini style |
| onClick
| func | No | undefined | The click handler method |
| ripple
| bool | No | false | Whether a ripple should be added to the fab |