feat(Card): add variant prop

This commit is contained in:
Benjamin Canac
2025-02-14 19:23:07 +01:00
parent 7a56903f47
commit 847d4aa752
7 changed files with 151 additions and 14 deletions

View File

@@ -16,6 +16,42 @@ props:
---
::
### Variant
Use the `variant` prop to change the variant of the Card.
::component-code
---
prettier: true
hide:
- class
props:
variant: subtle
class: 'w-full'
slots:
header: |
<Placeholder class="h-8" />
default: |
<Placeholder class="h-32" />
footer: |
<Placeholder class="h-8" />
---
#header
:placeholder{class="h-8"}
#default
:placeholder{class="h-32"}
#footer
:placeholder{class="h-8"}
::
## API
### Props