Lazy-ui
Lazy-ui
registry components
DocsComponentsBlocksChangelog
GitHub0Install
Navigation11 groups
Get StartedDocs
  • Introduction
  • Installation
  • Changelog
  • All Components
Background13 items
  • Wave CipherNew
  • Horizon CipherNew
  • Orbit CipherNew
  • Orbit BloomNew
  • Orbit MeshNew
  • Aurora MeshNew
  • Chroma FlowNew
  • Prism DriftNew
  • Shadow MeshNew
  • Slime BackgroundNew
  • NeumorphismNew
  • Ripple SurfaceNew
  • Liquid ChromeNew
Text Animate7 items
  • Shiny Text
  • Text WarpNew
  • Text RiseNew
  • Text SpinNew
  • Text ScrambleNew
  • Spinning TextNew
  • Text FlipNew
Animate6 items
  • Counter
  • Liquid RevealNew
  • Liquid TransitionNew
  • Matrix GridNew
  • Particle HaloNew
  • Bling TransitionNew
Effects2 items
  • Reveal Animate
  • Circle CipherNew
Forms2 items
  • Switch
  • Checkbox
Buttons3 items
  • Copy Button
  • GitHub Stars Button
  • Glass ButtonNew
Feedback1 item
  • Progress
Navigation1 item
  • Animated Tabs
Overlay1 item
  • Animate Tooltip
Device Mocks1 item
  • iPhoneNew

iPhone

An iPhone bezel mock with status bar, Dynamic Island, lock-screen shortcuts, and home indicator. Drop in an image, video, or custom children.

iphone
0px

Customize

Edit props; preview updates instantly.

Customize
Battery
82%
Signal
4 / 4
Frame

Props

Props accepted by Iphone.

PropTypeDefaultDescription
srcstring—Image src painted into the screen area. Cropped with `object-cover object-top`.
videoSrcstring—Video src for the screen — autoplays muted, loops, plays inline. Wins over `src`.
childrenReactNode—Custom screen content. Wins over `src` / `videoSrc` — drop in a div, gradient, or full lock-screen mock.
statusBarbooleantrueShow the status bar row (time + signal + wifi + battery).
timestring"9:41"Time label rendered on the left of the status bar.
signal0 | 1 | 2 | 3 | 44Filled signal bars. Empty bars dim to 30% opacity.
wifibooleantrueShow the wifi glyph.
batterynumber100Battery percentage (0–100). Drives the inner fill width.
batteryTextbooleanfalseRender the percentage number inside the battery glyph.
lockButtonsbooleantrueShow the bottom flashlight + camera lock-screen shortcuts.
homeIndicatorbooleantrueShow the bottom home-indicator pill.
bezelColorstring"#de7343"CSS color for the thin outer phone frame and the four side buttons. The inner screen bezel stays black regardless.
screenClassNamestring—Extra class merged onto the screen wrapper (the rounded layer that clips media).
classNamestring—Extra class merged onto the outer element. Width is governed here — the SVG fills it and the aspect-ratio is locked.

Installation

Choose CLI for the one-line shadcn install, or copy the file manually.

npx shadcn@latest add https://2lazyui.com/r/iphone.json

Usage

Import the component and drop it into a render.

demo.tsx14 lines
import { Iphone } from "@/components/lazy-ui/device-mocks/iphone";

export function Demo() {
  return (
    <Iphone
      src="/lock-screen.jpg"
      time="9:41"
      signal={4}
      wifi
      battery={82}
      className="max-w-[280px]"
    />
  );
}
Registryv0.1
Animated TabsNavigationCopy ButtonButtonsGitHub Stars ButtonButtonsReveal AnimateEffectsCounterAnimateShiny TextText AnimateText WarpText AnimateText RiseText AnimateText SpinText AnimateText ScrambleText AnimateSpinning TextText AnimateText FlipText AnimateProgressFeedbackSwitchFormsGlass ButtonButtonsCheckboxFormsiPhoneDevice MocksCircle CipherEffectsLiquid RevealAnimateLiquid TransitionAnimateWave CipherBackgroundHorizon CipherBackgroundOrbit CipherBackgroundOrbit BloomBackgroundOrbit MeshBackgroundMatrix GridAnimateParticle HaloAnimateAurora MeshBackgroundChroma FlowBackgroundPrism DriftBackgroundShadow MeshBackgroundSlime BackgroundBackgroundNeumorphismBackgroundRipple SurfaceBackgroundLiquid ChromeBackgroundBling TransitionAnimateAnimate TooltipOverlayPricing · ClassicBlocks · PricingPricing · BentoBlocks · PricingPricing · EditorialBlocks · PricingPricing · MatrixBlocks · PricingPricing · UsageBlocks · Pricing
Browse all 42 components
Up nextRoadmap
DialogPlanned
TabsPlanned
TooltipPlanned
CommandPlanned
Help the project
Star on GitHubSuggest a componentRead the DESIGN.md