skip to content
mpkcn

~/components/feature-list

Feature List

A spec-sheet list of label and value rows between hairlines, sliding in one by one.

Stack
Next.js 16 · React 19
Styling
Tailwind 4
Motion
framer-motion
Install
copy the source
License
MIT

Installation

terminal
npx mpkcn add feature-list
deps:framer-motion@13.4.4· tested with react@19.3.0

Usage

tsx
import { FeatureList } from "@/components/mpkcn/feature-list";

export function ProjectFacts() {
  return (
    <FeatureList
      items={[
        { label: "Role", value: "Solo dev" },
        { label: "Stack", value: "Next.js · Postgres" },
        { label: "Year", value: "2026" },
      ]}
    />
  );
}

Each row is a label on the left (bright) and a value on the right (dimmed), between hairlines. When a third of the list is in view, the rows slide in from the left one by one, 80ms apart.

Examples

Without animation

Format
copy-paste source
Deps
framer-motion
License
MIT

Rich values

label and value take any React node, such as links or badges.

tsx
<FeatureList
  items={[
    { label: "Repo", value: <a href="https://github.com/you/app">github.com/you/app</a> },
    { label: "Status", value: <span className="text-mpk-amber">beta</span> },
  ]}
/>

Props

PropTypeDefaultDescription
items{ label: React.ReactNode; value: React.ReactNode }[]—Rows to show, top to bottom.
animatebooleantrueSlide the rows in one after another when the list scrolls into view.
staggernumber0.08Seconds between rows.
oncebooleantrueAnimate only the first time it scrolls into view.
ignoreReducedMotionbooleanfalseAnimate even when the user prefers reduced motion. Only use it behind an explicit action, like a "play anyway" button.
classNamestring—Extra classes for the list.

Accessibility

  • Rendered as a description list: each row is a div holding a dt (label) and a dd (value), so screen readers announce the pairs together.
  • Under prefers-reduced-motion: reduce the rows don't slide, they only fade in.
  • Server and client render the same markup, so there is no hydration mismatch.