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

@@ -18,8 +18,6 @@ Use the `label` prop to display a label on the right.
::component-card
---
baseProps:
name: 'checkbox1'
props:
label: 'Label'
---
@@ -32,7 +30,6 @@ Use the `color` prop to change the style of the Checkbox.
::component-card
---
baseProps:
name: 'checkbox2'
label: 'Label'
props:
color: 'primary'
@@ -45,8 +42,6 @@ Use the `required` prop to display a red star next to the label.
::component-card
---
baseProps:
name: 'checkbox3'
props:
label: 'Label'
required: true
@@ -59,8 +54,6 @@ Use the `help` prop to display some text under the Checkbox.
::component-card
---
baseProps:
name: 'checkbox4'
props:
label: 'Label'
help: 'Please check this box'
@@ -73,9 +66,6 @@ Use the `disabled` prop to disable the Checkbox.
::component-card
---
baseProps:
name: 'checkbox4'
modelValue: true
props:
disabled: true
---
@@ -91,8 +81,6 @@ Use the `#label` slot to override the content of the label.
---
slots:
label: <span class="italic">Label</span>
baseProps:
name: 'checkbox5'
---
#label