3.2 KiB
title, icon, badges
title | icon | badges | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Card | lucide:square |
|
Usage
::stack ::div{class="p-4"} ::card
icon: lucide:box
#title Card Title
#description Description
#content Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source.
#footer Footer :: ::
::card
---
icon: lucide:box
---
#title
Card Title
#description
Description
#content
Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._
#footer
Footer
::
::
Link
::stack ::div{class="p-4"} ::card
to: https://github.com/ZTL-UwU/shadcn-docs-nuxt target: _blank
showLinkIcon: false
#title Link Card
#content Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. :: ::
::card
---
to: https://github.com/ZTL-UwU/shadcn-docs-nuxt
target: _blank
# showLinkIcon: false
---
#title
Link Card
#content
Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._
::
::
Horizontal
::stack ::div{class="p-4"} ::card
icon: 'lucide:fold-horizontal' icon-size: 26 horizontal: true
#title Horizontal Card
#description Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. :: ::
::card
---
icon: 'lucide:fold-horizontal'
icon-size: 26
horizontal: true
---
#title
Horizontal Card
#description
Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._
::
::
Image
::stack ::div{class="p-4"} ::card
img: /og-nuxt.png
#title Image Card
#content Beautifully designed Nuxt Content template with shadcn-vue. Customizable. Compatible. Open Source. :: ::
::card
---
img: /og-nuxt.png
---
#title
Image Card
#content
Beautifully designed **Nuxt Content** template with **shadcn-vue**. _Customizable. Compatible. Open Source._
::
::
Props
::field-group
:field{name="title" type="string"}[Card title]
:field{name="description" type="string"}[Card description]
:field{name="content" type="string"}[Card content]
:field{name="footer" type="string"}[Card footer]
:field{name="icon" type="string"}[Card icon]
:field{name="horizontal" type="boolean" default-value="false"}
:field{name="to" type="string"}[Link URL]
:field{name="target" type="Target"}[A target
attribute value to apply on the link]
:field{name="iconSize" type="number" default-value="24"}
:field{name="img" type="string"}[Image URL]
:field{name="showLinkIcon" type="boolean" default-value="true"}[Whether to show the link indicator :icon{name="lucide:arrow-up-right"}]
::