See the demo component here
Below, an example of using the FAB component:
import { FAB, Icon } from 'mdwrapper';
const Demo = () => (
<FAB label={'Create'} onClick={() => console.log('Demo')}>
<Icon classes={['mdc-fab__icon']} font={'create'} />
</FAB>
);
List of all properties for the FAB component:
Prop | Type | Default | Description |
---|---|---|---|
children | object | - | Node Content |
label | string | - | Label |
mini | boolean | false | Mini Style |
onClick | function | void | Click Trigger |