0.8.0-alpha.112 • Published 11 months ago
@blaze-react/button
Licence
GPL-3.0
Version
0.8.0-alpha.112
Deps
0
Size
1.5 MB
Vulns
0
Weekly
0
Description
Custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Usage
- Simple
<Button>Button</Button>
- Themed and tailwind class utilities
<Button utilities={`text-bold`}>Bold</Button>
API
Buttons can receive a number of props as follow:
| NAME | TYPE | DEFAULT | OPTIONS |
|---|---|---|---|
| modifiers | Array | empty | rounded, outline, alert, cta, light, dark, disabled, icon, small, full-width, plain, back, link |
| type | String | button | button, submit, reset |
| disabled | Boolean | false | |
| children | single/array of nodes | null | |
| classes | CSS utilities classes | empty |