feat(button): add disabled and loading state

This commit is contained in:
2024-11-21 18:42:05 +08:00
parent d913f91644
commit ed419eff25
8 changed files with 267 additions and 14 deletions

View File

@ -12,6 +12,8 @@ Button
### Variants
#### soft
::ComponentPreview
---
props:
@ -20,6 +22,36 @@ props:
Button
::
#### outline
::ComponentPreview
---
props:
variant: outline
---
Button
::
#### ghost
::ComponentPreview
---
props:
variant: ghost
---
Button
::
#### link
::ComponentPreview
---
props:
variant: link
---
Button
::
### Colors
::ComponentPreview
@ -29,3 +61,23 @@ props:
---
Button
::
### Disabled
::ComponentPreview
---
props:
disabled: true
---
Button
::
### Loading
::ComponentPreview
---
props:
loading: true
---
Button
::