Card
import { Card } from '@editora/ui-react';
<Card variant="surface" size="md" radius={8}>
<Card.Header>
<Card.Title>Quick start</Card.Title>
<Card.Description>Start building your next project in minutes.</Card.Description>
</Card.Header>
<p>Use cards to group related content and actions inside a single surface.</p>
<Card.Footer>Updated 2m ago</Card.Footer>
</Card>;
Key Props
variant, size, radius, tone, elevation, interactive, disabled
Composed Sub-Components
All Card sub-components are available as properties on the main Card component:
Card.Header- Top section contentCard.Title- Title text elementCard.Description- Description text elementCard.Footer- Bottom section contentCard.Media- Media block rendered above the bodyCard.Inset- Full-bleed content inside the card frame
Slots
- default slot: main body content
header: top section contentinset: full-bleed content inside the card framemedia: media block rendered above the bodyfooter: bottom section content
Notes
- Use
variantto switch betweensurface,outline,soft,solid,ghost, andglass. - Use
sizeto control the padding scale withsm,md, orlg.mdis the baseline default and matches the unset card size. - Use
radiusfor corner control with values like0,4,8,12, or'full'. - Use the
insetslot when media or artwork should sit flush with the card edges while the rest of the content stays padded. - The convenience exports map directly to the same slot contract, so you can choose either semantic React helpers or explicit slot markup.
- Use
interactivewhen the whole card should behave like a clickable surface. The core element adds button semantics, keyboard activation, and focus styling. - Combine
interactivewithdisabledto expose an unavailable card surface witharia-disabled.