docs: add missing component slots

This commit is contained in:
Benjamin Canac
2023-08-29 18:03:38 +02:00
parent 791804b2fb
commit 98b3c3550c
6 changed files with 88 additions and 0 deletions

View File

@@ -49,6 +49,12 @@ Use the `mode` prop to switch between `click` and `hover` modes.
```
::
## Slots
### `panel`
Use the `#panel` slot to fill the content of the panel.
## Props
:component-props

View File

@@ -21,6 +21,22 @@ links:
```
::
## Slots
### `text`
Use the `#text` slot to override the content of the text.
::component-card
---
slots:
text: <span class="italic">Hello World!</span>
---
#text
[Hello World!]{.italic}
::
## Props
:component-props