Getting StartedInstall and bootstrap headless foundations 4
FormHeadless input and selection contracts 19
LayoutHeadless structural primitives for expandable and container patterns 6
NavigationHeadless trails, trees, menus, and command surfaces 7
OverlayHeadless modal and floating layer behavior 3
FeedbackHeadless notification and status communication patterns 5
UtilityReusable action, identity, and clipboard behavior 6

Card overview

Headless card gives you stable structural slots for grouped content while keeping markup, semantics, and the entire visual contract under your control.

Imports

Import only the slots you need for the card shape your feature owns.

Headless card imports

ts
import {
  TngCard,
  TngCardHeader,
  TngCardTitle,
  TngCardDescription,
  TngCardContent,
  TngCardFooter,
  TngCardActions,
} from '@tailng-ui/primitives';

Basic composition

Apply the directives to semantic elements like article, header, section, and footer.

Headless card usage

html
<article tngCard>
  <header tngCardHeader>
    <h3 tngCardTitle>Release status</h3>
    <p tngCardDescription>Production rollout is complete and monitoring is stable.</p>
  </header>

  <section tngCardContent>
    <p>Latency is below target across all regions.</p>
  </section>

  <footer tngCardFooter>
    <div tngCardActions>
      <button type="button">View report</button>
      <button type="button">Promote</button>
    </div>
  </footer>
</article>

Style variants

The same headless card structure skinned with local CSS or a Tailwind utility shell.

Headless card overview (plain CSS)

Release status

Production rollout is complete and monitoring is stable.

  • Latency is below 120ms across all regions.
  • Error rate stayed under 0.2% for the last hour.

Accessibility baseline

  • Use semantic regions so screen-reader users get a meaningful content outline.
  • Keep the card itself non-interactive unless the entire surface truly behaves like one action.
  • Preserve a natural tab order for links, buttons, and other controls inside the footer.