Elements Card
Back to Elements

Card

0 components

UI elements you can copy into your project.

API reference

Generated from each primitive's $props() declaration.

Card.Root

Contained content block with optional header/footer using design tokens.

Prop Type Default Description
ref bind: HTMLElement | null null
as string "div"
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Card.Action

Contained content block with optional header/footer.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Card.Content

Contained content block with optional header/footer.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Card.Description

Contained content block with optional header/footer.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Card.Footer

Contained content block with optional header/footer.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Card.Header

Contained content block with optional header/footer.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.

Card.Title

Contained content block with optional header/footer.

Prop Type Default Description
ref bind: HTMLElement | null null
class as className string
children Snippet
...restProps Record<string, unknown> Remaining attributes, spread onto the underlying element.