9.5k

Card

A content container for grouping related information.

Installation

Usage

CardFrame with header action

Use CardFrame when you need a framed layout with an action button in the header (e.g. "Add", "Connect"):

CardFrame with a table

For lists or data grids, render a Table with variant="card" inside CardFrame so the grid matches the frame’s border and radius. See the CardFrame example in the Table docs. Add @coss/table if it is not already in the project.

API Reference

This is a custom component using Base UI's useRender hook, not a direct Base UI wrapper.

Card

Root container for the card. Supports the render prop.

CardHeader

Header section container. Supports the render prop.

CardTitle

Title text for the card. Supports the render prop.

CardDescription

Description text for the card. Supports the render prop.

CardAction

Container for action buttons in the header. Automatically positions to the right. Supports the render prop.

CardPanel

Main content area of the card. Also exported as CardContent. Supports the render prop.

CardFooter

Footer section for the card. Supports the render prop.

CardFrame API Reference

CardFrame is an alternative layout for cards that groups a header, content, and footer with consistent styling and clipping. Use it when you need a framed card with optional header actions.

CardFrame

Root container for the framed card layout. Supports the render prop.

CardFrameHeader

Header section for the frame. Contains title, description, and optionally CardFrameAction. Supports the render prop.

CardFrameTitle

Title text for the frame. Supports the render prop.

CardFrameDescription

Description text for the frame. Supports the render prop.

CardFrameAction

Container for action buttons (e.g. "Add", "Edit") in the header. Place it as a sibling of CardFrameTitle and CardFrameDescription inside CardFrameHeader. It is positioned in the top-right via CSS grid (col-start-2, row-span-2, self-center, justify-self-end). Use it for primary actions that apply to the entire frame. Supports the render prop.

CardFrameFooter

Footer section for the frame. Supports the render prop.

coss.com ui

Built by and for the team of Cal.com, Inc. — the leading commercial open source company (“coss”).