BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/nexvyn/phone-mockup

Phone Mockup

nexvyn/phone-mockup
FreeComponent

A device-frame illustration with side buttons, dynamic island, and a cropped/scrolled variant for showcasing app screens.

Live preview

live · rendered by the registry
Rendered by nexvyn on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.nexvyn.dev/r/phone-mockup.json

Source

components/illustration/phone-mockup.tsxui.nexvyn.dev/r/phone-mockup.json
1'use client'
2
3import { forwardRef, type ComponentPropsWithoutRef, type ReactNode } from 'react'
4import { cn } from '@/lib/utils'
5
6const mockupChassisVariants = {
7 black: {
8 frame: 'bg-(--color-foreground)',
9 button: 'bg-(--color-foreground)',
10 },
11 white: {
12 frame: 'bg-(--color-card)',
13 button: 'bg-(--color-card)',
14 },
15 accent: {
16 frame:
17 'bg-(--color-accent) dark:bg-[color-mix(in_srgb,var(--color-accent)_60%,var(--color-card))]',
18 button:
19 'bg-(--color-accent) dark:bg-[color-mix(in_srgb,var(--color-accent)_60%,var(--color-card))]',
20 },
21} as const
22
23type MockupChassisVariant = keyof typeof mockupChassisVariants
24
25const CHASSIS_ASPECT_RATIO = 70.6 / 146.6
26
27type PhoneMockupCardProps = Readonly<
28 ComponentPropsWithoutRef<'div'> & {
29 variant?: MockupChassisVariant
30 visibleRatio?: number
31 showDynamicIsland?: boolean
32 }
33>
34
35const sideControlClass = (color: string) => cn('absolute w-0.5 rounded-l-sm', color)
36
37function SideControls({
38 frame,
39}: Readonly<{
40 frame: (typeof mockupChassisVariants)[MockupChassisVariant]
41}>) {
42 return (
43 <>
44 <div
45 className={cn(sideControlClass(frame.button), 'top-[15.5%] -left-0.5 h-[3.2%]')}
46 aria-hidden="true"
47 />
48 <div
49 className={cn(sideControlClass(frame.button), 'top-[21%] -left-0.5 h-[7.2%]')}
50 aria-hidden="true"
51 />
52 <div
53 className={cn(sideControlClass(frame.button), 'top-[30.5%] -left-0.5 h-[7.2%]')}
54 aria-hidden="true"
55 />
56 <div
57 className={cn(
58 sideControlClass(frame.button),
59 'top-[23%] -right-0.5 h-[11.5%] rounded-l-none rounded-r-sm',
60 )}
61 aria-hidden="true"
62 />
63 </>
64 )
65}
66
67function MockupScreen({
68 children,
69 showDynamicIsland,
70}: Readonly<{
71 children: ReactNode
72 showDynamicIsland: boolean
73}>) {
74 return (
75 <div className="relative h-full w-full overflow-hidden rounded-[2.5rem] bg-black">
76 <div className="absolute inset-[3.5px] overflow-hidden rounded-[2.3rem] bg-white">
77 <div className="relative h-full w-full">{children}</div>
78 {showDynamicIsland && (
79 <div
80 className="absolute top-[9px] left-1/2 z-20 h-5 w-[66px] -translate-x-1/2 rounded-full bg-black"
81 aria-hidden="true"
82 >
83 <div
84 className="absolute top-1/2 right-[5px] block h-2 w-2 shrink-0 -translate-y-1/2 rounded-full bg-(--color-muted)/40"
85 aria-hidden="true"
86 />
87 </div>
88// … truncated

Files it writes

  • components/illustration/phone-mockup.tsx

Facts

Registry
nexvyn
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

Docs on nexvyn ui.nexvyn.dev Nexvyn/Nexvyn-ui on GitHub Raw registry item This item as JSON

More from nexvyn

All 40 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionnexvynComponentsFree1 dep
Action Buttonaction-buttonnexvynComponentsFree3 deps · 4 files
Adaptive Actionsadaptive-actionsnexvynComponentsFree1 dep
AI Inputai-inputnexvynComponentsFree1 dep · 2 files
BadgebadgenexvynComponentsFree2 deps · 2 files
Bars Themebars-themenexvynComponentsFree1 dep · 3 files
Bounce Sidebarbounce-sidebarnexvynComponentsFree1 dep · 2 files
BreadcrumbsbreadcrumbsnexvynComponentsFree1 dep · 2 files

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

ToolDrift

What the AI coding tools changed last night

tooldrift.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 ToolDrift

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 ToolDrift

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 ToolDrift

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