@demo-react-styleguide/button
v0.0.15
Published
demo-ui: Basic Button Component
Downloads
18
Readme
Basic Button Usage:
<div className="styleguidist__btns-wrap">
<Button
type="primary"
onClick={() => { window.alert('Primary Button was Clicked'); }}
>
<span>Primary Button</span>
</Button>
<br />
<br />
<Button
type="secondary"
onClick={() => { window.alert('Secondary Button was Clicked'); }}
>
<span>Secondary Button</span>
</Button>
<br />
<br />
<Button
onClick={() => { window.alert('Secondary Button was Clicked'); }}
>
<span>Normal Button</span>
</Button>
<br />
<br />
<Button
isDisabled
onClick={() => { window.alert('Nothing happens on Click'); }}
>
<span>Disabled Button</span>
</Button>
</div>