Skip to content

A container with border, shadow, and structured sections (header, content, footer).

[atlasCardContent][atlasCardDescription][atlasCardFooter][atlasCardHeader][atlasCardTitle][atlasCard]

Examples

Basic

Compose a card from header, title, description, content and footer directives.

Create project

Deploy your new project in one click.

Accent

accentPosition draws a colored edge; accentColor takes any CSS color, including tokens. Use start / end rather than left , so the edge follows the text direction in RTL.

Top

Primary accent

Start

Destructive accent

Bottom

Success accent

Header, content and actions

Compose a card from atlasCardHeader , atlasCardContent and atlasCardFooter . Keep the title a real heading at the right level for the page.

Team plan

10 seats, billed yearly.

€240 / year

API

Generated from the library source, so it always matches the code.

AtlasCardDirective [atlasCard]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
accentColor string | nullnull Color for the accent border (any valid CSS color value).
accentPosition CardAccentPosition'none' Position of the accent border highlight. Defaults to 'none'.

AtlasCardHeaderDirective [atlasCardHeader]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.

AtlasCardTitleDirective [atlasCardTitle]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.

AtlasCardDescriptionDirective [atlasCardDescription]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.

AtlasCardContentDirective [atlasCardContent]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.

AtlasCardFooterDirective [atlasCardFooter]

InputTypeDefaultDescription
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.

Types

CardAccentPosition

Accent position for the card border highlight. - top — colored border on top edge - start — colored border on the inline-start edge (left in LTR, right in RTL) - end — colored border on the inline-end edge (right in LTR, left in RTL) - left — colored border on the physical left edge; prefer start , which follows the text direction - bottom — colored border on bottom edge - none — no accent border (default)

type CardAccentPosition = 'top' | 'start' | 'end' | 'left' | 'bottom' | 'none'