Feature rows
Feature rows with media on alternating sides.
Preview
Each row's media slides in from its own side as it scrolls into view. With reduced motion turned on, it renders the plain layout.
Install
One command, then it's yours
The CLI copies the component into your project. Sample copy.
Weekly active usersSample data
Theme
Matches the rest of your app
Sections read your shadcn tokens. Sample copy.
Weekly active usersSample data
Install
One command, then it's yours
Sample copy.
Weekly active usersSample data
Theme
Matches the rest of your app
Sample copy.
Weekly active usersSample data
Installation
Run this in a project that already uses shadcn/ui. It adds the component and anything it needs; the motion version also adds the plain one and the motion package.
Usage
import { FeatureRows } from "@/components/custom/feature-rows";
<FeatureRows
rows={[
{ label: "Install", title: "One command", description: "…", media: <Screenshot /> },
{ label: "Theme", title: "Your colors", description: "…", media: <Screenshot /> },
]}
/>import { FeatureRowsMotion } from "@/components/custom/feature-rows/feature-rows-motion";
<FeatureRowsMotion rows={rows} />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| rows* (required) | { title; description; media; label? }[] | – | Rows alternate media sides from the lg breakpoint. |
| title / description | string | – | Optional heading (h2) above the rows. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
| Prop | Type | Default | Description |
|---|---|---|---|
| rows* (required) | { title; description; media; label? }[] | – | Rows alternate media sides from the lg breakpoint. |
| title / description | string | – | Optional heading (h2) above the rows. |
| ...props | React.ComponentProps<"section"> | – | Any other section attribute (id, aria-*, data-*, ref) goes to the root element. |
Accessibility
- Copy always comes before media in reading order, whatever side the media shows on.
- The motion version follows the visitor's reduced-motion setting and never hides content before it animates.