Superfícies
VCard
Contentor flexível para agrupar conteúdo relacionado, ações e metadados de forma clara e escalável. Serve para apresentar informação (produto, métricas), navegar (cartão clicável) e conduzir ações (CTA) em todo o produto, com estrutura unificada e visual moderno.
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
</script>Uso
<script setup lang="ts">
</script>
<template>
</template>Playground
Os controles abaixo são gerados a partir das props declaradas em VCard.types.ts; o código acompanha cada mudança.
Exemplos
Variantes, tamanhos e estados, extraídos das stories da biblioteca.
Default
Variação Padrão. Estado padrão do componente; use a aba Controls para experimentar as props ao vivo. Props: title="Alpine Pro", description="A modern workspace for brig…".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
const args = {
size: 'md',
variant: 'elevated',
title: 'Alpine Pro',
description: 'A modern workspace for brighter ideas.'
}
</script>
<template>
<VCard v-bind="args"><p>Card content goes here.</p></VCard>
</template>Elevated
Variação Elevated. Props: variant="elevated", title="Alpine Pro", description="Robustest with shadow and d…".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
const args = {
size: 'md',
variant: 'elevated',
title: 'Alpine Pro',
description: 'Robustest with shadow and depth.'
}
</script>
<template>
<VCard v-bind="args"><p>Content.</p></VCard>
</template>Outlined
Variação Outlined. Props: variant="outlined", title="Alpine Pro", description="Subtle border for minimal c…".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
const args = {
size: 'md',
variant: 'outlined',
title: 'Alpine Pro',
description: 'Subtle border for minimal contexts.'
}
</script>
<template>
<VCard v-bind="args"><p>Content.</p></VCard>
</template>Filled
Variação Preenchido. Props: variant="filled", title="Alpine Pro", description="Soft background for grouped…".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
const args = {
size: 'md',
variant: 'filled',
title: 'Alpine Pro',
description: 'Soft background for grouped content.'
}
</script>
<template>
<VCard v-bind="args"><p>Content.</p></VCard>
</template>Interactive
Variação Interativo. Props: variant="interactive", interactive=true, title="Project Alpha", description="Build what’s next.".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
const args = {
size: 'md',
variant: 'interactive',
interactive: true,
title: 'Project Alpha',
description: 'Build what’s next.'
}
</script>
<template>
<VCard v-bind="args"><p>Clickable card.</p></VCard>
</template>Sizes
Variação Tamanhos.
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
</script>
<template>
<div style="display:flex;gap:16px;align-items:flex-start">
<VCard size="sm" title="Small"><p>Compact for dense layouts.</p></VCard>
<VCard size="md" title="Medium"><p>Balanced for most use cases.</p></VCard>
<VCard size="lg" title="Large"><p>Spacious for rich content.</p></VCard>
</div>
</template>With Media
Variação Com Media. Props: title="Alpine Pro", description="A modern workspace for brig…", badge="Product". Slots usados: #media, #avatar-group, #actions.
Ver código
<script setup lang="ts">
import { VCard, VGroupAvatar, VButton, VIcon } from 'vueui-nova-kit'
const args = {
size: 'md',
variant: 'elevated',
title: 'Alpine Pro',
description: 'A modern workspace for brighter ideas.',
badge: 'Product'
}
const alpineSrc = 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&h=480&fit=crop'
const arrowUpRightIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M6 6H17.5C17.77614 6 18 6.22386 18 6.5V18M7.2 16.8L17.4 6.6\'/>'
}
const members = [
{
initials: 'AL',
alt: 'Alex'
},
{
initials: 'JM',
alt: 'Jamie'
},
{
initials: 'RK',
alt: 'Riley'
},
{
initials: 'SA',
alt: 'Sam'
}
]
</script>
<template>
<VCard v-bind="args" style="max-width:360px">
<template #media><img :src="alpineSrc" alt="Alpine Pro" /></template>
<template #avatar-group>
<VGroupAvatar :members="members" :max="3" size="sm" />
</template>
<template #actions>
<VButton variant="icon" aria-label="Open">
<VIcon :icon="arrowUpRightIcon" size="sm" />
</VButton>
</template>
</VCard>
</template>Loading
Variação Carregando. Props: loading=true, title="Loading card".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
</script>
<template>
<VCard loading title="Loading card" />
</template>Media Placement
Variação Media Placement. Slots usados: #media, #icon.
Ver código
<script setup lang="ts">
import { VCard, VTag, VIcon } from 'vueui-nova-kit'
const alpineSrc = 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&h=480&fit=crop'
const portraitSrc = 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=720&h=900&fit=crop'
const V_TAG_PLUS_ICON = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M5 12H19M11.995 19.005V5.005\'/>'
}
</script>
<template>
<div style="display:grid;gap:24px">
<VCard title="Top media" description="Default anatomy." badge="Product" data-test-id="docs-card-media-top" style="max-width:360px">
<template #media><img :src="alpineSrc" alt="Lake in the Alps" /></template>
</VCard>
<VCard title="Media at the end" description="Quote or summary stays on the left." media-placement="end" data-test-id="docs-card-media-end" style="max-width:720px">
<template #media><img :src="portraitSrc" alt="Portrait" /></template>
<p>Use this layout for testimonials and editorials.</p>
</VCard>
<VCard title="Media at the bottom" description="Supporting visual under the copy." variant="filled" media-placement="bottom" data-test-id="docs-card-media-bottom" style="max-width:420px">
<template #media>
<div style="display:flex;gap:8px;padding:16px;align-items:center">
<span style="width:36px;height:36px;border-radius:var(--v-radius-circle);background:var(--v-color-elevated)"></span>
<span style="width:36px;height:36px;border-radius:var(--v-radius-circle);background:var(--v-color-success-soft)"></span>
<VTag size="sm">
<template #icon><VIcon :icon="V_TAG_PLUS_ICON" size="sm" /></template>
Add Goals
</VTag>
</div>
</template>
</VCard>
</div>
</template>Selected
Variação Selected. Props: title="PDF", description="Print ready", selected=true, variant="filled", size="sm". Slots usados: #icon.
Ver código
<script setup lang="ts">
import { VCard, VIcon } from 'vueui-nova-kit'
const args = {
size: 'sm',
variant: 'filled',
title: 'PDF',
description: 'Print ready',
selected: true
}
const fileIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M14 2H8C5.79086 2 4 3.79086 4 6V18C4 20.2091 5.79086 22 8 22H16C18.2091 22 20 20.2091 20 18V8L14 2ZM14 2V5C14 6.65685 15.3431 8 17 8H20\'/>'
}
</script>
<template>
<VCard v-bind="args" style="max-width:140px">
<template #icon>
<span style="width:36px;height:36px;border-radius:var(--v-radius-circle);background:var(--v-color-surface);display:inline-flex;align-items:center;justify-content:center">
<VIcon :icon="fileIcon" size="sm" />
</span>
</template>
</VCard>
</template>Hero
Variação Hero. Slots usados: #media, #avatar-group, #actions, #footer.
Ver código
<script setup lang="ts">
import { VCard, VGroupAvatar, VButton, VIcon } from 'vueui-nova-kit'
const alpineSrc = 'https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=800&h=480&fit=crop'
const arrowUpRightIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M6 6H17.5C17.77614 6 18 6.22386 18 6.5V18M7.2 16.8L17.4 6.6\'/>'
}
const members = [
{
initials: 'AL',
alt: 'Alex'
},
{
initials: 'JM',
alt: 'Jamie'
},
{
initials: 'RK',
alt: 'Riley'
},
{
initials: 'SA',
alt: 'Sam'
}
]
</script>
<template>
<div style="display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch">
<VCard title="Alpine Pro" description="A modern workspace for brighter ideas." badge="Product">
<template #media><img :src="alpineSrc" alt="Alpine Pro" /></template>
<template #avatar-group>
<VGroupAvatar :members="members" :max="3" size="sm" />
</template>
<template #actions>
<VButton variant="icon" aria-label="Open">
<VIcon :icon="arrowUpRightIcon" size="sm" />
</VButton>
</template>
</VCard>
<VCard title="Active Users" description="↑ 12% vs last month">
<p style="margin:0;font-size:32px;font-weight:700;letter-spacing:-0.04em">12,480</p>
</VCard>
<VCard
aria-label="Turn ideas into impact"
style="background:linear-gradient(160deg, var(--v-color-primary), color-mix(in srgb, var(--v-color-primary) 55%, #0f172a)); color:#fff; border-color:transparent">
<strong style="font-size:22px;line-height:1.25">Turn ideas into impact.</strong>
<p style="margin:0;color:rgba(255,255,255,.82)">Build faster with AI powered workflows.</p>
<template #footer>
<VButton>Get Started</VButton>
</template>
</VCard>
</div>
</template>Export panel
Variação Export Panel. Interativo: o estado é mantido na própria story (v-model). Slots usados: #footer, #icon, #caption.
Ver código
<script setup lang="ts">
import { ref } from 'vue'
import { VCard, VIcon, VSwitch, VButton } from 'vueui-nova-kit'
const format = ref('pdf')
const exhibitIndex = ref(true)
const citationAppendix = ref(true)
const formats = [
{
id: 'pdf',
title: 'PDF',
description: 'Print ready',
icon: {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M14 2H8C5.79086 2 4 3.79086 4 6V18C4 20.2091 5.79086 22 8 22H16C18.2091 22 20 20.2091 20 18V8L14 2ZM14 2V5C14 6.65685 15.3431 8 17 8H20\'/>'
}
},
{
id: 'docx',
title: 'DOCX',
description: 'Editable copy',
icon: {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M14 2H8C5.79086 2 4 3.79086 4 6V18C4 20.2091 5.79086 22 8 22H16C18.2091 22 20 20.2091 20 18V8L14 2ZM14 2V5C14 6.65685 15.3431 8 17 8H20M8 13H12M8 17H16\'/>'
}
},
{
id: 'copy',
title: 'Copy',
description: 'To clipboard',
icon: {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M15.8284 4C15.4046 2.8015 14.2714 2 13 2H5C3.34315 2 2 3.34315 2 5V13C2 14.2714 2.8015 15.4046 4 15.8284M11 8H19C20.65684 8 22 9.34316 22 11V19C22 20.65684 20.65684 22 19 22H11C9.34316 22 8 20.65684 8 19V11C8 9.34316 9.34316 8 11 8Z\'/>'
}
}
]
const checkIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M5 12L9.66667 17L19 7\'/>'
}
</script>
<template>
<div style="display:flex;justify-content:center;padding:40px 16px;background:var(--v-color-neutral-200);border-radius:24px">
<VCard title="Export" size="md" style="width:min(100%,420px)">
<div style="display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px">
<VCard
v-for="item in formats"
:key="item.id"
size="sm"
:variant="format === item.id ? 'filled' : 'outlined'"
:selected="format === item.id"
interactive
:aria-label="item.title"
@click="format = item.id">
<div style="display:flex;flex-direction:column;gap:8px;padding-right:12px">
<span style="width:32px;height:32px;border-radius:var(--v-radius-circle);background:var(--v-color-surface);display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--v-color-border)">
<VIcon :icon="item.icon" size="sm" />
</span>
<strong>{{ item.title }}</strong>
<span style="color:var(--v-color-text-muted);font-size:var(--v-font-size-text-small)">{{ item.description }}</span>
</div>
</VCard>
</div>
<div style="display:flex;flex-direction:column;gap:2px">
<VSwitch v-model="exhibitIndex" size="sm" label="Include exhibit index" />
<VSwitch v-model="citationAppendix" size="sm" label="Add citation appendix" />
</div>
<template #footer>
<VButton>
<template #icon><VIcon :icon="checkIcon" size="sm" /></template>
Finalize Demand Letter
</VButton>
</template>
<template #caption>Locks draft v3 and saves it to the case history.</template>
</VCard>
</div>
</template>Final review
Variação Final Review. Slots usados: #header-trailing, #icon.
Ver código
<script setup lang="ts">
import { VCard, VBadge, VIcon, VButton, VAvatar } from 'vueui-nova-kit'
const checkIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M5 12L9.66667 17L19 7\'/>'
}
const folderIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M3 7C3 5.3431 4.3431 4 6 4L8.6716 4C9.202 4 9.7107 4.2107 10.0858 4.5858L11.4142 5.9142C11.7893 6.2893 12.298 6.5 12.8284 6.5L18 6.5C19.6569 6.5 21 7.8431 21 9.5L21 17C21 18.6569 19.6569 20 18 20L6 20C4.3431 20 3 18.6569 3 17Z\'/>'
}
const fileTextIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M14 2H8C5.79086 2 4 3.79086 4 6V18C4 20.2091 5.79086 22 8 22H16C18.2091 22 20 20.2091 20 18V8L14 2ZM14 2V5C14 6.65685 15.3431 8 17 8H20M8 13H12M8 17H16\'/>'
}
const arrowUpRightIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M6 6H17.5C17.77614 6 18 6.22386 18 6.5V18M7.2 16.8L17.4 6.6\'/>'
}
const attorneySrc = 'https://images.unsplash.com/photo-1580489944761-15a19d654956?w=160&h=160&fit=crop'
</script>
<template>
<div style="display:flex;justify-content:center;padding:40px 16px;background:var(--v-color-neutral-200);border-radius:24px">
<VCard title="Final Review" size="md" style="width:min(100%,460px)">
<template #header-trailing>
<VBadge variant="success" size="sm">
<template #icon><VIcon :icon="checkIcon" size="sm" /></template>
Ready
</VBadge>
</template>
<VCard
variant="filled"
size="sm"
style="background:color-mix(in srgb, var(--v-color-success-base) 22%, var(--v-color-surface));border-color:transparent">
<div style="display:flex;align-items:center;justify-content:space-between;gap:12px">
<div>
<div style="font-size:12px;color:var(--v-color-text-muted)">Demand</div>
<div style="font-size:28px;font-weight:700;letter-spacing:-0.03em;line-height:1.1">$125,000</div>
</div>
<VButton variant="icon" aria-label="Open demand">
<VIcon :icon="arrowUpRightIcon" size="sm" />
</VButton>
</div>
</VCard>
<div style="display:flex;flex-direction:column;gap:14px">
<div style="display:flex;align-items:center;gap:12px">
<VAvatar initials="JJ" size="md" />
<div>
<div style="color:var(--v-color-text-muted);font-size:12px">Client</div>
<div style="font-weight:600">James Johnson</div>
</div>
</div>
<div style="display:flex;align-items:center;gap:12px">
<span style="width:40px;height:40px;border-radius:var(--v-radius-circle);border:1px solid var(--v-color-border);display:inline-flex;align-items:center;justify-content:center">
<VIcon :icon="folderIcon" size="sm" />
</span>
<div>
<div style="color:var(--v-color-text-muted);font-size:12px">Supporting Evidence</div>
<div style="font-weight:600">18 documents</div>
</div>
</div>
<div style="display:flex;align-items:center;gap:12px">
<span style="width:40px;height:40px;border-radius:var(--v-radius-circle);border:1px solid var(--v-color-border);display:inline-flex;align-items:center;justify-content:center">
<VIcon :icon="fileTextIcon" size="sm" />
</span>
<div>
<div style="color:var(--v-color-text-muted);font-size:12px">Citations</div>
<div style="font-weight:600">24, all verified</div>
</div>
</div>
<div style="display:flex;align-items:center;gap:12px">
<VAvatar :src="attorneySrc" alt="Sarah Williams" size="md" />
<div style="flex:1;min-width:0">
<div style="color:var(--v-color-text-muted);font-size:12px">Attorney Review</div>
<div style="font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis">Completed by Sarah Williams</div>
</div>
<span style="flex-shrink:0">
<VBadge variant="success" size="sm">
<template #icon><VIcon :icon="checkIcon" size="sm" /></template>
Completed
</VBadge>
</span>
</div>
</div>
</VCard>
</div>
</template>Feature split
Variação Feature Split. Slots usados: #media, #icon.
Ver código
<script setup lang="ts">
import { VCard, VIcon, VTag } from 'vueui-nova-kit'
const walletIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M5 3L15 3C16.6569 3 18 4.3431 18 6L18 7C19.6569 7 21 8.3431 21 10L21 18C21 19.6569 19.6569 21 18 21L6 21C4.3431 21 3 19.6569 3 18L3 5C3 3.8954 3.8954 3 5 3ZM3 5C3 6.1046 3.8954 7 5 7L18 7M21 12L18 12C16.8954 12 16 12.8954 16 14C16 15.1046 16.8954 16 18 16L21 16\'/>'
}
const V_TAG_PLUS_ICON = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M5 12H19M11.995 19.005V5.005\'/>'
}
</script>
<template>
<div style="display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px">
<VCard
variant="filled"
size="lg"
media-placement="bottom"
style="min-height:280px">
<strong style="font-size:22px;line-height:1.25;letter-spacing:-0.02em">Track, plan, and manage your finances effortlessly</strong>
<p style="margin:0;color:var(--v-color-text-muted)">Stay on top of your goals with easy-to-use tools that help you create budgets and stick to them.</p>
<template #media>
<div style="display:flex;align-items:center;gap:10px;padding:20px 24px 24px">
<span style="width:44px;height:44px;border-radius:var(--v-radius-circle);background:var(--v-color-surface);display:inline-flex;align-items:center;justify-content:center">
<VIcon :icon="walletIcon" size="md" />
</span>
<span style="width:44px;height:44px;border-radius:var(--v-radius-circle);background:var(--v-color-success-soft);color:var(--v-color-success-strong);display:inline-flex;align-items:center;justify-content:center">
<VIcon :icon="walletIcon" size="md" />
</span>
<VTag size="sm">
<template #icon><VIcon :icon="V_TAG_PLUS_ICON" size="sm" /></template>
Add Goals
</VTag>
</div>
</template>
</VCard>
<VCard
variant="filled"
size="lg"
media-placement="bottom"
style="min-height:280px">
<strong style="font-size:22px;line-height:1.25;letter-spacing:-0.02em">Personalized analytics to optimize your spending</strong>
<p style="margin:0;color:var(--v-color-text-muted)">Gain valuable insights into your financial habits and uncover opportunities to save and invest smarter.</p>
<template #media>
<div style="padding:8px 24px 20px;display:grid;gap:8px">
<div style="display:flex;justify-content:space-between;align-items:flex-end;font-size:12px;color:var(--v-color-text-muted)">
<span>Total bill<br /><strong style="color:var(--v-color-text);font-size:18px">$13,245.00</strong></span>
<span>$789.00</span>
</div>
<div style="display:flex;align-items:flex-end;gap:8px;height:96px">
<span style="flex:1;height:28%;background:var(--v-color-primary);border-radius:6px 6px 0 0;opacity:.45"></span>
<span style="flex:1;height:46%;background:var(--v-color-primary);border-radius:6px 6px 0 0;opacity:.55"></span>
<span style="flex:1;height:38%;background:var(--v-color-primary);border-radius:6px 6px 0 0;opacity:.4"></span>
<span style="flex:1;height:100%;background:var(--v-color-warning-base);border-radius:6px 6px 0 0"></span>
</div>
</div>
</template>
</VCard>
</div>
</template>Gradient CTA
Variação Gradient Cta. Slots usados: #footer.
Ver código
<script setup lang="ts">
import { VCard, VIcon, VButton } from 'vueui-nova-kit'
const sparklesIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M15.4651 9.1794L16.7409 12.4141C16.8933 12.8006 17.1994 13.1067 17.5859 13.2591L20.8206 14.5349C21.0117 14.6102 21.1372 14.7947 21.1372 15C21.1372 15.2053 21.0117 15.3898 20.8206 15.4651L17.5859 16.7409C17.1994 16.8933 16.8933 17.1994 16.7409 17.5859L15.4651 20.8206C15.3898 21.0117 15.2053 21.1372 15 21.1372C14.7947 21.1372 14.6102 21.0117 14.5349 20.8206L13.2591 17.5859C13.1067 17.1994 12.8006 16.8933 12.4141 16.7409L9.1794 15.4651C8.9883 15.3898 8.8628 15.2053 8.8628 15C8.8628 14.7947 8.9883 14.6102 9.1794 14.5349L12.4141 13.2591C12.8006 13.1067 13.1067 12.8006 13.2591 12.4141L14.5349 9.1794C14.6102 8.9883 14.7947 8.8628 15 8.8628C15.2053 8.8628 15.3898 8.9883 15.4651 9.1794ZM6.7151 3.1794L7.2131 4.4419C7.3655 4.8285 7.6715 5.1345 8.0581 5.2869L9.3206 5.7849C9.5117 5.8602 9.6372 6.0447 9.6372 6.25C9.6372 6.4553 9.5117 6.6398 9.3206 6.7151L8.0581 7.2131C7.6715 7.3655 7.3655 7.6715 7.2131 8.0581L6.7151 9.3206C6.6398 9.5117 6.4553 9.6372 6.25 9.6372C6.0447 9.6372 5.8602 9.5117 5.7849 9.3206L5.2869 8.0581C5.1345 7.6715 4.8285 7.3655 4.4419 7.2131L3.1794 6.7151C2.9883 6.6398 2.8628 6.4553 2.8628 6.25C2.8628 6.0447 2.9883 5.8602 3.1794 5.7849L4.4419 5.2869C4.8285 5.1345 5.1345 4.8285 5.2869 4.4419L5.7849 3.1794C5.8602 2.9883 6.0447 2.8628 6.25 2.8628C6.4553 2.8628 6.6398 2.9883 6.7151 3.1794Z\'/>'
}
</script>
<template>
<VCard
size="lg"
aria-label="Get the Payer Mobile App"
style="text-align:center;background:linear-gradient(90deg,var(--v-color-warning-soft) 0%,var(--v-color-surface) 42%,var(--v-color-primary-100) 100%);border-color:transparent;box-shadow:none">
<div style="display:grid;gap:12px;justify-items:center">
<span style="width:48px;height:48px;border-radius:14px;background:var(--v-color-primary);color:#fff;display:inline-flex;align-items:center;justify-content:center">
<VIcon :icon="sparklesIcon" size="md" />
</span>
<strong style="font-size:28px;line-height:1.2;letter-spacing:-0.03em">Get the Payer Mobile App</strong>
<p style="margin:0;max-width:32rem;color:var(--v-color-text-muted)">
With this platform, you can access your account anywhere, anytime for balance and so much more
</p>
</div>
<template #footer>
<div style="display:flex;justify-content:center;width:100%">
<VButton variant="secondary">Download app</VButton>
</div>
</template>
</VCard>
</template>Testimonial slider
Variação Testimonial Slider. Interativo: o estado é mantido na própria story (v-model). Slots usados: #media, #media-overlay.
Ver código
<script setup lang="ts">
import { ref } from 'vue'
import { VButton, VIcon, VCard } from 'vueui-nova-kit'
const index = ref(0)
const slides = [
{
heading: '10 Million People Trust Us to Protect and Grow Their Finance!',
quote: 'As an investor, tracking my portfolio was tough—until this platform. Its detailed analytics provide the insights I need for smarter decisions.',
name: 'Aryan Malhotra',
role: 'Business Development Executive',
photo: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=720&h=900&fit=crop'
},
{
heading: 'Clarity for every financial decision you make.',
quote: 'Budgets, goals, and analytics live in one place. I finally spend less time switching tools and more time acting on the numbers.',
name: 'Maya Chen',
role: 'Product Lead',
photo: 'https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=720&h=900&fit=crop'
}
]
const chevronLeftIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M15 6L9 12L15 18\'/>'
}
const chevronRightIcon = {
width: 24,
height: 24,
body: '<path fill=\'none\' stroke=\'currentColor\' stroke-linecap=\'round\' stroke-linejoin=\'round\' stroke-width=\'2\' d=\'M9 6L15 12L9 18\'/>'
}
const prev = () => {
index.value = (index.value - 1 + slides.length) % slides.length;
}
const next = () => {
index.value = (index.value + 1) % slides.length;
}
</script>
<template>
<div style="display:grid;gap:28px;max-width:960px;padding:8px;background:var(--v-color-surface);border-radius:16px">
<div style="display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,40%);gap:28px;align-items:start">
<div>
<h2 style="margin:0 0 16px;font-size:28px;line-height:1.2;letter-spacing:-0.03em">
{{ slides[index].heading }}
</h2>
<p style="margin:0 0 20px;color:var(--v-color-text-muted);font-size:15px;line-height:1.6">
“ {{ slides[index].quote }} ”
</p>
<div style="display:flex;gap:8px">
<VButton variant="icon" aria-label="Previous testimonial" @click="prev">
<VIcon :icon="chevronLeftIcon" size="sm" />
</VButton>
<VButton variant="icon" aria-label="Next testimonial" @click="next">
<VIcon :icon="chevronRightIcon" size="sm" />
</VButton>
</div>
</div>
<VCard size="sm">
<template #media>
<img :src="slides[index].photo" :alt="slides[index].name" style="height:280px;object-fit:cover" />
</template>
<template #media-overlay>
<VCard size="sm">
<div style="font-weight:600">{{ slides[index].name }}</div>
<div style="color:var(--v-color-text-muted);font-size:12px">{{ slides[index].role }}</div>
</VCard>
</template>
</VCard>
</div>
</div>
</template>Refine Frame Queued
Variação Refine Frame Queued. Props: title="Imagem", description="Estágio: queued", refineFrame="queued".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
</script>
<template>
<VCard
title="Imagem"
description="Estágio: queued"
refine-frame="queued" />
</template>Refine Frame Generating
Variação Refine Frame Generating. Props: title="Imagem", description="Estágio: generating", refineFrame="generating".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
</script>
<template>
<VCard
title="Imagem"
description="Estágio: generating"
refine-frame="generating" />
</template>Refine Frame Refining
Variação Refine Frame Refining. Props: title="Imagem", description="Estágio: refining", refineFrame="refining".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
</script>
<template>
<VCard
title="Imagem"
description="Estágio: refining"
refine-frame="refining" />
</template>Refine Frame Complete
Variação Refine Frame Complete. Props: title="Imagem", description="Estágio: complete", refineFrame="complete".
Ver código
<script setup lang="ts">
import { VCard } from 'vueui-nova-kit'
</script>
<template>
<VCard
title="Imagem"
description="Estágio: complete"
refine-frame="complete" />
</template>Acessibilidade
<article> para conteúdo autónomo; cartão interativo com role="button" + teclado Enter/Space, foco visível 2px, aria-selected/aria-disabled/aria-busy, imagem com alt, seleção nunca só por cor (check ✓).
Estados
Default · Hover (lift + shadow, 150ms) · Focus-visible (anel 2px, 150ms) · Pressed/Active scale(.98, 100ms) · Selected (check + borda primary) · Disabled · Loading (skeleton). Comportamento interativo via variante interactive ou prop interactive (classe v-card--actionable).
Motion
| Trigger | Property | Duration | Easing |
|---|---|---|---|
| Default → Hover | box-shadow/transform lift | 150ms | ease-out |
| Hover → Pressed | transform scale(.98) | 100ms | ease-out |
| Focus | outline/box-shadow ring | 150ms | ease-out |
Respeitar prefers-reduced-motion.
Todas as transições respeitam prefers-reduced-motion e os tokens --v-duration-*.
Props
| Prop | Tipo | Default | Descrição |
|---|---|---|---|
title | string | — | — |
description | string | — | — |
badge | string | — | Overlay category tag rendered as `VTag` (not `VBadge`). Use `#header-trailing` + `VBadge` for status. |
size | VCardSize | "md" | — |
variant | VCardVariant | "elevated" | — |
loading | boolean | false | — |
interactive | boolean | false | When true the card becomes keyboard-focusable/actionable (tabindex 0, Enter/Space). |
selected | boolean | false | Controlled selected appearance (check + primary tint). Does not toggle on click; the parent owns selection, matching existing interactive/click behavior. |
mediaPlacement | VCardMediaPlacement | "top" | Where `#media` sits relative to title/body. Defaults to top (current anatomy). |
refineFrame | VCardRefineFrameStage | — | Refine Frame stage for AI media generation without layout shift. |
ariaLabel | string | — | — |
motion | VMotionLevel | V_MOTION_DEFAULT ("expressive") | — |
Events
| Evento | Payload | Descrição |
|---|---|---|
@click | event: MouseEvent | KeyboardEvent | — |
Slots
| Slot | Props do slot |
|---|---|
#front | — |
#media | — |
#refine-media | — |
#media-overlay | — |
#badge | — |
#icon | — |
#title | — |
#header-trailing | — |
#description | — |
#default | — |
#back | — |
#avatar-group | — |
#actions | — |
#footer | — |
#caption | — |
Fonte: src/components/containment/VCard/VCard.vue · tipos: src/components/containment/VCard/VCard.types.ts