BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/launchui/mockup

Mockup

launchui/mockup
FreeComponent

Device mockup frames for showcasing app screenshots.

Live preview

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

Install it

npx shadcn@latest add https://www.launchuicomponents.com/r/mockup.json

Source

components/ui/mockup.tsxwww.launchuicomponents.com/r/mockup.json
1import { cva, type VariantProps } from "class-variance-authority";
2import React from "react";
3
4import { cn } from "@/lib/utils";
5
6const mockupVariants = cva(
7 "flex relative z-10 overflow-hidden shadow-2xl border border-border/70 dark:border-border/5 dark:border-t-border/15",
8 {
9 variants: {
10 type: {
11 mobile: "rounded-[48px] max-w-[350px]",
12 responsive: "rounded-md",
13 },
14 },
15 defaultVariants: {
16 type: "responsive",
17 },
18 },
19);
20
21export interface MockupProps
22 extends
23 React.HTMLAttributes<HTMLDivElement>,
24 VariantProps<typeof mockupVariants> {}
25
26function Mockup({ className, type, ...props }: MockupProps) {
27 return (
28 <div
29 data-slot="mockup"
30 className={cn(mockupVariants({ type, className }))}
31 {...props}
32 />
33 );
34}
35
36const frameVariants = cva(
37 "bg-border/50 flex relative z-10 overflow-hidden rounded-2xl dark:bg-border/10",
38 {
39 variants: {
40 size: {
41 small: "p-2",
42 large: "p-4",
43 },
44 },
45 defaultVariants: {
46 size: "small",
47 },
48 },
49);
50
51export interface MockupFrameProps
52 extends
53 React.HTMLAttributes<HTMLDivElement>,
54 VariantProps<typeof frameVariants> {}
55
56function MockupFrame({ className, size, ...props }: MockupFrameProps) {
57 return (
58 <div
59 data-slot="mockup-frame"
60 className={cn(frameVariants({ size, className }))}
61 {...props}
62 />
63 );
64}
65
66export { Mockup, MockupFrame };

What it pulls in

npm packages

  • class-variance-authority

Files it writes

  • components/ui/mockup.tsx

Facts

Registry
launchui
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
today

Go to the source

Docs on launchui www.launchuicomponents.com launch-ui/launchui on GitHub Raw registry item This item as JSON

More from launchui

All 24 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
BadgebadgelaunchuiComponentsFree2 deps
ButtonbuttonlaunchuiComponentsFree2 deps
CardcardlaunchuiComponentsFree1 dep
GlowglowlaunchuiComponentsFree1 dep
Launch UI BaselaunchuilaunchuiComponentsFreeno deps · 10 files
Pro DependenciesprolaunchuiComponentsFree14 deps
ScreenshotscreenshotlaunchuiComponentsFree1 dep
BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex

BlockDex

Built by

Kynth Studio

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

BlockDex