Card
Structured content container with header, content, and footer slots. Use it for product info panels, checkout summaries, account settings blocks, and order reviews.
Best for
Import
import { Card } from "@enadhq/enad-react-sdk/client/ui-resolver"When to use it
Use Card when a group of related information needs a clear surface boundary and a predictable slot model. It works especially well for summary modules where title, support text, actions, and detail rows should stay aligned across many screens.
Slot strategy
Card is most useful when each slot has a clear job:
CardHeaderfor title, description, and optional top-level actionCardContentfor the main details, metrics, or rich body contentCardFooterfor the final CTA or supporting controls
Layout guidance
Cards work best when the spacing between sections stays consistent. Resist the urge to restyle each card from scratch with heavy one-off utility classes. Instead, keep the recipe intact and let content density or slot presence create the variation.
For grids, use one consistent width and let copy wrap naturally. For detail views, cards can be wider, but the same slot order still helps maintain rhythm across the page.
Examples
Live examples you can edit directly in the sandbox.
Default
The basic card pattern. Header, body, and footer action work well for product info panels and summary blocks.
With action slot
Use CardAction when a quick link or button should appear inline with the header instead of anchored to the footer.
Component Sets
Preview the first example across the available component-set presets to compare tone, spacing, and structural defaults.