Content Card

Overview

A simple card for grouping related text or controls.

<.content_card title="Overview">
  <p style="margin: 0; color: var(--exo-muted-foreground); line-height: 1.5;">A simple card for grouping related text or controls.</p>
</.content_card>

With action

The action slot is rendered in the card header.

<.content_card title="With action">
  <:action><ExoUI.Components.button variant="ghost" size="sm">View</ExoUI.Components.button></:action>
  <p style="margin: 0; color: var(--exo-muted-foreground); line-height: 1.5;">The action slot is rendered in the card header.</p>
</.content_card>

A compact body-only card without a header.

<.content_card>
  <p style="margin: 0; color: var(--exo-muted-foreground); line-height: 1.5;">A compact body-only card without a header.</p>
</.content_card>