Skip to content
LoidoltTheme 0.11.1
Svelte 5

Component

Card

A titled block of content with an optional footer.

import { Card } from '@loidolt/theme-svelte';

Example

Terrain project

Crater Lake, Oregon

A composed card for general application content.
Ready

Notes

  • With href the whole card is one block-level link — the hover accent border says so.
  • The content region is always full width, so intrinsic-less children (viewBox-only SVGs) fill the card even when a consumer centers it.

Props

Generated from the component source, so it cannot drift from the implementation.

Card props
PropTypeDefaultNotes
children required Snippet—
as never'div'
class string—
description string—
footer Snippet—
header Snippet—
headingLevel HeadingLevel3
href string—Renders the card as one block-level link.
ref bindableHTMLElement | nullnull
title string—

Plus the attributes of Omit<HTMLAnchorAttributes, 'class'>andOmit<HTMLAttributes<HTMLElement>, 'class'>, forwarded to the root element.