Spec Sheet
A spec table with hairline rows reveals values in turn, then one row expands to feature its value. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/spec-sheetUsage
// src/Root.tsx
import { Composition } from "remotion";
import { SpecSheet } from "@/components/remocn/spec-sheet";
const SpecSheetScene = () => (
<SpecSheet title="Tech specs" highlight={3} rows={[{ label: "Resolution", value: "4K" }, { label: "Frame rate", value: "60 fps" }, { label: "Install", value: "1 command" }]} />
);
export const RemotionRoot = () => (
<Composition
id="SpecSheet"
component={SpecSheetScene}
durationInFrames={280}
fps={60}
width={1280}
height={720}
/>
);Hairline rules draw across and the labels and values reveal row by row, the values typing in. Then the highlighted row expands and its value grows in the accent gradient. Pass rows, highlight (row index), title and name (shown in the bottom lockup); it ships light and dark through theme.
Props16
| Prop | Type | Default |
|---|---|---|
| rows | SpecRow[]DEFAULT_ROWS Table rows, each with a label and a value shown as text. | |
| highlight | number3 Zero-based index of the row that expands. | |
| title | string"Tech specs" Heading shown above the table. | |
| name | string"3.0" Name shown next to the logo in the bottom lockup. | |
| stagger | number5 Frames between rows as the table builds. | |
| expandAt | number62 Frame the highlighted row starts to expand. | |
| logo | React.ReactNode— React node shown in the lockup instead of the default Remocn logo. | |
| accent | string"#3B5BFD" Accent color for highlights and small marks. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Instrument Sans" Typeface for the copy. Load the font in your project first. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| grain | booleantrue Film grain over the scene. | |
| theme | "dark" | "light""dark" Color theme, "dark" or "light". | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
- rowsSpecRow[]
Table rows, each with a label and a value shown as text.
Default
DEFAULT_ROWS - highlightnumber
Zero-based index of the row that expands.
Default
3 - titlestring
Heading shown above the table.
Default
"Tech specs" - namestring
Name shown next to the logo in the bottom lockup.
Default
"3.0" - staggernumber
Frames between rows as the table builds.
Default
5 - expandAtnumber
Frame the highlighted row starts to expand.
Default
62 - logoReact.ReactNode
React node shown in the lockup instead of the default Remocn logo.
- accentstring
Accent color for highlights and small marks.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Instrument Sans" - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Color theme, "dark" or "light".
Default
"dark" - speednumber
Playback speed multiplier for the whole timeline.
Default
1