Back to components
ElementData DisplayFree

Icon Box React component

A feature box with an icon, title and text for features and services grids: in the card style a light follows the pointer along the border, the icon tile lifts and tilts on hover, and a linked box nudges its arrow forward.

About the Icon Box component

Icon Box is a feature card with an icon tile, a title and a short description, the building block of feature and service grids. In the card style a soft light follows the pointer around the card's 1px border and across its surface, and the icon tile lifts and tilts slightly on hover. Given a link, the whole box becomes the link with a Learn more line and an arrow that nudges forward.

icon takes one of eight built-in icons (bolt, shield, chart, globe, layers, sparkles, lock, code) or your own element. title and description set the text, href and linkLabel turn it into a link, variant picks card or plain (no frame) and layout puts the icon above or beside the text. accent colors the pointer light and the glow under the icon tile. Keyboard focus plays the same lift as hover.

When to use it

Use Icon Box for feature and service grids on landing pages, product overviews and pricing pages: each box is one idea with an icon, a short title and a sentence.

Give boxes an href when each feature has its own page; the whole box becomes the link, with a clear 'Learn more' affordance.

Installation

Add the Icon Box component to your project with the shadcn CLI. It lands in components/icon-box.tsx as plain React + Tailwind CSS source you own and can edit.

Install
Copied!
npx shadcn@latest add @reactframe/icon-box

Or copy the source by hand and install its dependencies:

Install
Copied!
npm install motion clsx tailwind-merge

More Data Display components

Data View
Free
Icon List
Free
Sortable List
Free
Checklist
Free
Organization Chart
Free
Sparkline Stat
Free