Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 613 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 613 Bytes

FAB

See the demo component here

Usage

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>
);

Props

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