PUI.Card provides composable surfaces for grouping related content.

Usage

<.card>
  <.card_header>
    <.card_title>Profile</.card_title>
    <.card_description>Manage your account details.</.card_description>
    <.card_action>
      <.button size="sm">Edit</.button>
    </.card_action>
  </.card_header>
  <.card_content>Your profile information.</.card_content>
  <.card_footer>
    <.button>Save</.button>
  </.card_footer>
</.card>

API

ComponentAttributesDescription
card/1class, global HTML attributesMain card container
card_header/1Header layout for title, description, and action
card_title/1classCard title
card_description/1classSupporting description
card_action/1Right-aligned header action
card_content/1Main content area
card_footer/1classFooter area

All components accept an inner_block slot. Card is a presentation primitive; the host application owns the meaning and behavior of its contents.

The canonical module is PUI.Card. Existing PUI.Container.card* calls remain available as deprecated compatibility wrappers.