Files
estel_docs/content/docs/1.简单文档/5.components/card.md
estel be69a51bb2
Some checks failed
CI / lint (push) Has been cancelled
CI / typecheck (push) Has been cancelled
CI / build (ubuntu-latest) (push) Has been cancelled
改回项目内获取md文档
2025-08-08 12:15:35 +08:00

3.2 KiB

title, icon, badges
title icon badges
Card lucide:square
value to target
Nuxt UI Pro https://ui.nuxt.com/pro/prose/card _blank
value to target
Docus https://docus.dev/api/components#card _blank
value icon to target
Source lucide:code https://github.com/ZTL-UwU/shadcn-docs-nuxt/blob/main/components/content/Card.vue _blank

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
::

::

::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"}] ::