Back to blocks
BlockDashboard / ApplicationFree

Card Heading React component

Three working card headings: a person heading with avatar, time, a Follow button and a ⋯ menu (pin, copy link, hide with undo), a title and description heading with a period menu that redraws a chart, and a settings heading with a switch and a collapse toggle.

About the Card Heading component

Card Heading collects the three headers you need most often on dashboard cards, each one working. A person heading for posts, comments and activity, with a Follow button and a menu to pin, copy the link or hide the post; a title heading for metric and chart cards, with a period picker that redraws the chart; and a settings heading with an on/off switch and a fold toggle.

Small touches make them feel finished: labels slide when they change, a Pinned tag pops in, hidden posts can be brought back, and turning a setting off dims and disables its options so it is obvious they no longer apply.

When to use it

Use these headers on feeds, dashboard widgets, analytics cards, settings panels and anywhere cards need a title with actions.

Keep one visible action per card heading and put the rest in the ⋯ menu.

Installation

Add the Card Heading component to your project with the shadcn CLI. It lands in components/card-heading.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/card-heading

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More Dashboard / Application components

Grid List
Free
Section Heading
Free
Stacked List
Free
Page Heading
Free
Action Panel
Free
Settings Screen
Free