Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (25 sloc) 859 Bytes

Button

See the demo component here

Usage

Below, an example of using the Button component:

import { Button, Icon } from 'mdwrapper';

const Demo = () => (
  <Button outlined onClick={() => console.log('Demo')}>
    <Icon font={'done_outline'} classes={[{ margin: '1rem' }]} />
    Demo
  </Button>
);

Props

List of all properties for the Button component:

Prop Type Default Description
classes array [] Overrides Class
children object - Node Content
dense boolean false Dense Style
disabled boolean false Available State
onClick function void Click Trigger
outlined boolean false Outlined Style
raised boolean false Raised Style
unelevated boolean false Unelevated Style
You can’t perform that action at this time.