@zenequityui/button
v0.9.6
Published
zenequityui: Basic Button Component
Downloads
79
Readme
Installation
To install a component run
$ npm install @zenequityui/button --save
Please import CSS styles via
@import '/path__to__node_modules/@zenequityui/button/dist/index.min.css
Usage
Simple Button:
import { Button } from '@zenequityui/button';
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
<Button
type="button"
variant="text"
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Text Button</span>
</Button>
<Button
type="button"
variant="outlined"
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Outlined Button</span>
</Button>
<Button
type="button"
variant="contained"
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Contained Button</span>
</Button>
</div>
Disabled Button:
import { Button } from '@zenequityui/button';
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
<Button
type="button"
variant="text"
isDisabled
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Text Button</span>
</Button>
<Button
type="button"
variant="outlined"
isDisabled
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Outlined Button</span>
</Button>
<Button
type="button"
variant="contained"
isDisabled
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Contained Button</span>
</Button>
</div>