1.0.1 • Published 2 years ago
szn-final-demo-button v1.0.1
Introduction
This project was developved just for demonstration purposes only.
Installation
npm i szn-final-demo-button
How to use in project
It accepts 4 props
children
type
onClick
buttonStyle
buttonSize
buttonStyle
buttonStyle
accepts one of following:
- "btn--primary--solid"
- "btn--warning--solid"
- "btn--danger--solid"
- "btn--success--solid"
- "btn--primary--outline"
- "btn--warning--outline"
- "btn--danger--outline"
- "btn--success--outline"
buttonSize
buttonSize
accepts one of following:
- "btn--medium"
- "btn--large"
Example
<Button
onClick={() => {
console.log("You Clicked on Me!");
}}
type="button"
buttonStyle="btn--primary--outline"
buttonSize="btn--large"
>
Helllllloooo Thereee
</Button>