Card

A container for displaying content with an optional header, cover, and actions.

When to Use

  • To group related information in a box
  • For product listings, profile cards, or summaries
  • When content needs a header with title and actions

Import

import { Card } from "orizon";

Examples

Basic

Card Title

Card content

More card content

<Card title="Card Title" extra={<a href="#">More</a>} style={{ width: 300 }}>
  <p>Card content</p>
  <p>More card content</p>
</Card>

No Border

No Border

Card without border

<Card title="No Border" bordered={false} style={{ width: 300 }}>
  <p>Card without border</p>
</Card>

Hoverable

Hoverable Card
Hover to see the effect
<Card hoverable style={{ width: 240 }}>
  <Card.Meta title="Hoverable Card" description="Hover to see the effect" />
</Card>

Loading

Loading Card
<Card loading title="Loading Card" style={{ width: 300 }}>
  Content is loading...
</Card>

With Actions

Card with Actions

Card content with action bar

Edit
Delete
<Card
  title="Card with Actions"
  style={{ width: 300 }}
  actions={[<span key="edit">Edit</span>, <span key="delete">Delete</span>]}
>
  <p>Card content with action bar</p>
</Card>

API

CardProps

  • titleReactNode — Card header title
  • extraReactNode — Extra content in header (e.g., links)
  • coverReactNode — Cover image at top
  • actionsReactNode[] — Action list at bottom
  • borderedboolean — Show border (default: true)
  • hoverableboolean — Lift on hover (default: false)
  • loadingboolean — Show skeleton placeholder (default: false)
  • size"default" | "small" — Card size (default: "default")
  • type"inner" — For nested cards
  • bodyStyleCSSProperties — Body container styles
  • headStyleCSSProperties — Header styles

Card.Meta Props

  • titleReactNode — Meta title
  • descriptionReactNode — Meta description
  • avatarReactNode — Avatar element