Menu Pick
A game-style menu lists options, a red selection bar hops between rows, blinks, and settles on the chosen one. A free, MIT-licensed Remotion UI block.
$ pnpm dlx shadcn@latest add @remocn/menu-pickUsage
// src/Root.tsx
import { Composition } from "remotion";
import { MenuPick } from "@/components/remocn/menu-pick";
const MenuPickScene = () => (
<MenuPick
prompt="Choose your launch"
options={["Keyframe every beat", "Wait on an agency", "Install the scenes"]}
pick={2}
/>
);
export const RemotionRoot = () => (
<Composition
id="MenuPick"
component={MenuPickScene}
durationInFrames={120}
fps={30}
width={1280}
height={720}
/>
);A panel appears with a prompt and a list of options. A selection bar hops between rows, confirms with a quick blink on the pick row, and the other rows dim. Pass your own prompt, options and a zero-based pick; it ships light and dark through theme. Use speed to slow or quicken the hops.
The ground is a live gradients.sh shader (GshGround), installed with the component as @remocn/gsh. Pick another look with the ground preset prop.
Props16
| Prop | Type | Default |
|---|---|---|
| prompt | string"Choose your launch" Heading shown at the top of the menu. | |
| options | string[]— Menu rows. Each is one line of text. | |
| pick | number2 Zero-based index of the row that gets selected. | |
| backLabel | string"Back" Hint next to the B key in the footer. | |
| selectLabel | string"Select" Hint next to the A key in the footer. | |
| stagger | number3 Frames between rows as the menu builds. | |
| accent | string"#E60012" Color of the selection bar. | |
| background | string— Solid background. Use 'transparent' to drop the ground. | |
| ink | string— Text color; overrides the theme ink. | |
| fontFamily | string"Rubik" 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. | |
| speed | number1 Playback speed multiplier for the hops and blinks. | |
| theme | "dark" | "light""dark" Color scheme. Ships light and dark. | |
| ground | GshPresetId— Shader preset id for the animated background. | |
| groundParams | Partial<GradientParams>— Partial shader parameters that override the ground preset. | |
- promptstring
Heading shown at the top of the menu.
Default
"Choose your launch" - optionsstring[]
Menu rows. Each is one line of text.
- picknumber
Zero-based index of the row that gets selected.
Default
2 - backLabelstring
Hint next to the B key in the footer.
Default
"Back" - selectLabelstring
Hint next to the A key in the footer.
Default
"Select" - staggernumber
Frames between rows as the menu builds.
Default
3 - accentstring
Color of the selection bar.
Default
"#E60012" - backgroundstring
Solid background. Use 'transparent' to drop the ground.
- inkstring
Text color; overrides the theme ink.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Rubik" - 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 - speednumber
Playback speed multiplier for the hops and blinks.
Default
1 - theme"dark" | "light"
Color scheme. Ships light and dark.
Default
"dark" - groundGshPresetId
Shader preset id for the animated background.
- groundParamsPartial<GradientParams>
Partial shader parameters that override the ground preset.