BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/snap-cn/laptop-frame

Laptop Frame

snap-cn/laptop-frame
FreeComponent

MacBook-style laptop that opens, runs a dynamic-island notch notification, then dives the camera into the screen until an image or video fills the frame.

Install it

npx shadcn@latest add https://snapcn.dev/r/laptop-frame.json

Source

registry/snap-cn/laptop-frame/index.tsxsnapcn.dev/r/laptop-frame.json · first 6 KB
1"use client";
2
3import type { CSSProperties, ReactNode } from "react";
4import {
5 Easing,
6 getRemotionEnvironment,
7 Img,
8 interpolate,
9 OffthreadVideo,
10 staticFile,
11 useCurrentFrame,
12 useVideoConfig,
13} from "remotion";
14import {
15 mixOklch,
16 type SnapCnTheme,
17 useSnapCnTheme,
18 withAlpha,
19} from "@/lib/snap-cn-ui";
20
21export type LaptopFrameEntrance = "rise" | "open" | "none";
22export type LaptopFrameFinale = "none" | "zoom-to-screen";
23export type NotchPhase = "idle" | "loading" | "done";
24
25export interface LaptopFrameProps {
26 /** Screen content. Falls back to `screenSrc`, then a built-in hero placeholder. */
27 children?: ReactNode;
28 /**
29 * Image *or* video to fill the screen when `children` is omitted. Videos
30 * (.mp4/.webm/.mov/.m4v) play via `<OffthreadVideo>`, images via `<Img>` —
31 * both cover the screen and fade/un-blur in. A root-relative path
32 * (`/showcase-videos/x.mp4`) is served by Next in the Player and rewritten
33 * through `staticFile()` in a render.
34 */
35 screenSrc?: string;
36 /** How the laptop enters. `open` lifts the lid up from the deck. */
37 entrance?: LaptopFrameEntrance;
38 /**
39 * How the shot ends. `zoom-to-screen` dollies the camera into the screen and
40 * un-tilts it until the content fills the frame — a product "screen takeover".
41 * Assumes the frame is the whole composition (the cover scale is derived from
42 * `useVideoConfig`).
43 */
44 finale?: LaptopFrameFinale;
45 /** Lid shell + deck base color. Space-grey by default. */
46 /** Lid colour. Defaults to a dark neutral from the design system. */
47 bezelColor?: string;
48 /** Screen fill behind the content. */
49 /** Screen fill behind `children`. Defaults to the theme's `card`. */
50 screenColor?: string;
51 /** Design-system token overrides — applied to the screen's contents. */
52 theme?: Partial<SnapCnTheme>;
53 mode?: "light" | "dark";
54 /** Notch status indicator. The macOS system green is the look, not a token. */
55 indicatorColor?: string;
56 /** rotateX of the lid at rest, in degrees (positive tips the top back). */
57 restTilt?: number;
58 /** Lid top-corner radius. The bottom corners stay near-square (the hinge). */
59 radius?: number;
60 /** CSS box-shadow under the deck. Empty string disables it. */
61 shadow?: string;
62 /** Uniform size multiplier for the whole machine. */
63 scale?: number;
64 /** Render the notch notification pill. */
65 showNotch?: boolean;
66 /** Text shown in the notch's connected state. */
67 notchLabel?: string;
68// … truncated

What it pulls in

npm packages

  • remotion

Other registry items

  • https://snapcn.dev/r/snap-cn-ui.json

Files it writes

  • registry/snap-cn/laptop-frame/index.tsx

Facts

Registry
snap-cn
Type
registry:component
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-13
Last confirmed
yesterday

Go to the source

snapcn.dev Raw registry item This item as JSON

More from snap-cn

All 24 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Answer Streamanswer-streamsnap-cnComponentsFree2 deps
UI Caretcaretsnap-cnComponentsFree1 dep
Follower Rushfollower-rushsnap-cnComponentsFree2 deps
Product Herohero-launchsnap-cnComponentsFree2 deps
UI Inputinputsnap-cnComponentsFree2 deps · 2 files
Karaoke Captionskaraoke-captionssnap-cnComponentsFree2 deps
Logo Assemblelogo-assemblesnap-cnComponentsFree1 dep
Logo Flickerlogo-flickersnap-cnComponentsFree1 dep

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

KitGrade

SaaS starter kits, scored from measured facts

kitgrade.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and KitGrade

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex