@labrnth/button
v0.1.3
Published
A button component.
Downloads
7
Readme
@labrnth/button
A button component.
Installation
yarn add @labrnth/button
Usage
import Button from '@labrnth/button';
<Button />
Props
| Prop | Type | Default | Description |
| ---------- | ------------------------------------------------------------------- | -------- | --------------------------------------- |
| children | React.ReactNode
| | The contents of the button. |
| color? | red
, green
, blue
, yellow
, white
, light
, dark
, black
| light
| The base colour of the button. |
| variant? | solid
, outline
, soft
, ghost
| solid
| The variant of the button. |
| size? | small
, medium
, large
| medium
| The size of the button. |
| component? | React.ElementType
| button
| The underlying component of the button. |
| fullWidth? | boolean
| false
| Whether to make the button full width. |