ShadcnUI.Components.Foundation.Card (shadcn_ui v1.0.0)

Copy Markdown View Source

Neutral content surfaces with caller-authored semantic regions.

Card supplies layout only. Applications own data, destinations, selection, submission, loading, commands, and outcomes. Headings, links, forms, and controls supplied in slots retain their native meaning and behavior.

Summary

Functions

Renders one bordered surface around required primary content.

Functions

card(assigns)

Renders one bordered surface around required primary content.

Optional regions are omitted entirely when absent. Their deterministic DOM order is header, title, description, actions, primary content, then footer. Card adds no destination, click handler, selected state, or workflow role.

Attributes

  • class (:any) - Defaults to nil.
  • Global attributes are accepted.

Slots

  • header
  • title
  • description
  • actions
  • inner_block (required)
  • footer