docs(ComponentCard): show all props for the code (#797)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
KeJun
2023-10-15 23:52:20 +08:00
committed by GitHub
parent 9f4d88e0aa
commit 8867936e01
16 changed files with 157 additions and 99 deletions

View File

@@ -36,6 +36,7 @@ Use the `color` and `variant` props to change the visual style of the Button.
props:
color: 'primary'
variant: 'solid'
code: Button
---
Button
@@ -56,9 +57,10 @@ options:
restriction: expected
values:
- solid
- ghost
- ghost
excludedProps:
- color
code: Button
---
Button
@@ -77,9 +79,10 @@ options:
values:
- solid
- ghost
- link
- link
excludedProps:
- color
code: Button
---
Button
@@ -97,9 +100,10 @@ options:
restriction: expected
values:
- solid
- link
- link
excludedProps:
- color
code: Button
---
Button
@@ -113,6 +117,7 @@ Use the `size` prop to change the size of the Button.
---
props:
size: 'sm'
code: Button
---
Button
@@ -129,6 +134,7 @@ props:
rounded: 'rounded-full'
excludedProps:
- ui
code: Button
---
Button
@@ -183,6 +189,7 @@ Use the `disabled` prop to disable the Button.
---
props:
disabled: true
code: Button
---
Button
@@ -198,6 +205,7 @@ Use the `loading-icon` prop to set a different icon or change it globally in `ui
---
props:
loading: true
code: Button
---
Button
@@ -211,6 +219,7 @@ Use the `block` prop to make the Button fill the width of its container.
---
props:
block: true
code: Button
---
Button
@@ -225,6 +234,7 @@ Use the `to` prop to make the Button a link.
props:
to: 'https://volta.net'
target: '_blank'
code: Button
---
Button