Documentation Index
Fetch the complete documentation index at: https://mintlify.com/danielitoCode/compose_svelted/llms.txt
Use this file to discover all available pages before exploring further.
Card is a themed container component built on top of Surface that encapsulates common patterns for grouping related content with an elevation-based drop shadow and configurable corner radius. Three related components — OutlinedCard, DropdownMenu, and DropdownMenuItem — are present in the source repository as empty placeholder files and have no implementation yet.
Card
Card wraps Surface and adds an elevation-based drop shadow with a configurable corner radius. It is the right choice when you want content visually lifted off the background.
The shadow is derived from a numeric or string elevation value using the formula:
{v} is the elevation coerced to a CSS length (e.g. 1 → 1px). Passing 0 or "" removes the shadow entirely.
Props
Elevation depth. A number is treated as pixels; a string CSS length is used directly. Pass
0 for a flat card with no shadow.Corner radius of the card. Defaults to
RoundedCornerShape(16) (16 px all corners), matching the M3 medium component shape.Layout modifier passed through to the underlying
Surface.Slot
| Slot | Description |
|---|---|
default | Any content to render inside the card. |
Basic example
Flat card (no shadow)
Elevated card with custom shape
Placeholder stub components
The following three components exist as empty files in the source repository. They have no implementation and therefore have no documented props or behavior. Do not use them in production.| Component | File | Status |
|---|---|---|
OutlinedCard | cards/OutlinedCard.svelte | Placeholder stub — 0 bytes |
DropdownMenu | menus/DropdownMenu.svelte | Placeholder stub — 0 bytes |
DropdownMenuItem | menus/DropdownMenuItem.svelte | Placeholder stub — 0 bytes |
When
OutlinedCard, DropdownMenu, and DropdownMenuItem are implemented, they will be documented here. Watch the changelog for updates.