@belong-ui/revamped-button
v0.1.29
Published
belong-ui: Basic Button Component
Downloads
23
Readme
Note: To use this button style, please use @belong-ui/revamped-button
package
<div className="styleguidist__btns-wrap">
<p>Simple Button</p>
<br /><br />
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
<div>
<RevampedButton
variant="text"
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Simple Text Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="outlined"
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Simple Outlined Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="raised"
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Simple Raised Button</span>
</RevampedButton>
</div>
</div>
<br /><br /><br />
<p>Disabled Button</p>
<br /><br />
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
<div>
<RevampedButton
variant="text"
isDisabled
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Simple Text Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="outlined"
isDisabled
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Simple Outlined Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="raised"
isDisabled
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span>Simple Raised Button</span>
</RevampedButton>
</div>
</div>
<br /><br /><br />
<p>Icon Button</p>
<br /><br />
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
<div>
<RevampedButton
variant="text"
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span><i className="fa fa-user" /> Simple Text Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="outlined"
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span><i className="fa fa-user" /> Simple Outlined Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="raised"
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span><i className="fa fa-user" /> Simple Raised Button</span>
</RevampedButton>
</div>
</div>
<br /><br /><br />
<p>Disabled Icon Button</p>
<br /><br />
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
<div>
<RevampedButton
variant="text"
isDisabled
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span><i className="fa fa-user" /> Simple Text Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="outlined"
isDisabled
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span><i className="fa fa-user" /> Simple Outlined Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="raised"
isDisabled
onClick={() => { window.alert('Button Was Clicked'); }}
>
<span><i className="fa fa-user" /> Simple Raised Button</span>
</RevampedButton>
</div>
</div>
<br /><br />
<p>Medium Button</p>
<br /><br />
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
<div>
<RevampedButton
variant="text"
onClick={() => { window.alert('Button Was Clicked'); }}
size="medium"
>
<span>Simple Text Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="outlined"
onClick={() => { window.alert('Button Was Clicked'); }}
size="medium"
>
<span>Simple Outlined Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="raised"
onClick={() => { window.alert('Button Was Clicked'); }}
size="medium"
>
<span>Simple Raised Button</span>
</RevampedButton>
</div>
</div>
<br /><br />
<p>Small Button</p>
<br /><br />
<div style={{ display: 'flex', justifyContent: 'space-around' }}>
<div>
<RevampedButton
variant="text"
onClick={() => { window.alert('Button Was Clicked'); }}
size="small"
>
<span>Simple Text Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="outlined"
onClick={() => { window.alert('Button Was Clicked'); }}
size="small"
>
<span>Simple Outlined Button</span>
</RevampedButton>
</div>
<div>
<RevampedButton
variant="raised"
onClick={() => { window.alert('Button Was Clicked'); }}
size="small"
>
<span>Simple Raised Button</span>
</RevampedButton>
</div>
</div>
</div>