En construcciónNumori se está construyendo en abierto. Todavía no hay nada en venta y la mayoría de las aplicaciones están sin terminar.Ver qué está listo

UiCard

The surface primitive: a bordered, rounded, elevated container.

Contenido

The shell shared by product, blog, pricing and link cards. It lays out optional header, default and footer slots but takes no view over their contents. Renders as any element via tag (so a whole card can be a link), with interactive (hover lift), highlighted (accent border) and focus-ring (for the stretched-link pattern) states. External classes merge via tailwind-merge, so a caller can override the tint.

Ejemplos

Basic

A padded, bordered surface.

Encrypted by default

Your notes are yours alone.

<UiCard class="max-w-sm">
  <h3 class="font-semibold">Encrypted by default</h3>
  <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">Your notes are yours alone.</p>
</UiCard>

Interactive and highlighted

Hover to lift; the highlighted card carries the accent border.

Standard

A regular tier.

Recommended

The one most people pick.

<div class="grid gap-4 sm:grid-cols-2">
  <UiCard interactive class="hover:border-primary-300">
    <h3 class="font-semibold">Standard</h3>
    <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">A regular tier.</p>
  </UiCard>
  <UiCard highlighted>
    <h3 class="font-semibold">Recommended</h3>
    <p class="mt-1 text-sm text-gray-600 dark:text-gray-400">The one most people pick.</p>
  </UiCard>
</div>

Header and footer

The header and footer slots add dividers around the body.

Plan

Everything included, one price.

<UiCard class="flex max-w-sm flex-col" padding="lg">
  <template #header>
    <h3 class="font-semibold">Plan</h3>
  </template>
  <p class="text-sm text-gray-600 dark:text-gray-400">Everything included, one price.</p>
  <template #footer>
    <UiButton block>Choose plan</UiButton>
  </template>
</UiCard>

Props

NombreTipoPor defectoDescripción
tagstring'div'Element (or globally registered component) to render as. divarticlesectionaliany valid tag
paddingstring'md'Inner padding. nonexssmmdlg
radiusstring'2xl'Corner radius. lgxl2xl
shadowstring'card'Base drop shadow. nonecardcard-hover
borderedbooleantrueDraw the surface border.
interactivebooleanfalseHover lift and stronger shadow; add a hover:border-* class to tint the border.
highlightedbooleanfalseAccent border and a raised shadow, for the featured card in a group.
focusRingbooleanfalseLift the focus ring to the card for the stretched-link pattern.

Slots

SlotDescripción
defaultCard body.
headerOptional header, drawn above the body with a divider.
footerOptional footer, drawn below the body with a divider.