-
Notifications
You must be signed in to change notification settings - Fork 11
Components
Ankith Swaraj edited this page Jan 5, 2022
·
4 revisions
Here's a quick start guide to get started with the button component
Attributes | Values | Optional ? |
---|---|---|
variant |
default | light | ghost | hallow
|
Yes |
padding |
small | medium | large
|
Yes |
fontSize |
small | medium | large
|
Yes |
margin |
small | medium | large
|
Yes |
onClick | () => void; |
Yes |
onHover | () => void; |
Yes |
ref | RefObject<HTMLButtonElement>; |
Yes |
<div className="App">
<button>Button default</button>
</div>
<div className="App">
<button variant="light">Button light</button>
</div>
<div className="App">
<button variant="ghost">Button ghost</button>
</div>
<div className="App">
<button variant="hallow">Button Hallow</button>
</div>