React Alegrify UI
Button
Variants
Default
<Button>
Yay! I'm a button
</Button>Primary
<Button primary>
Yay! I'm a primary button
</Button>Destructive
<Button destructive>
Yay! I'm a destructive button
</Button>Full
<Button full>
Yay! I'm a full button
</Button>link
<Button link>
Yay! I'm a link button
</Button>Loading
<Button loading>
Yay! I'm a loading button
</Button>Disabled
<Button disabled>
Yay! I'm a disabled button
</Button>Properties
| Property | Type | Default |
|---|---|---|
| children* | node | |
| className | string | |
| primary | bool | |
| destructive | bool | |
| full | bool | |
| link | bool | |
| loading | bool | |
| type | string | submit |
| disabled | bool | |
| onClick | func | |
| dataTest | string | |
| dataTestId | string |