Installation & details
Field Notes Inspection Lens by Magic UI. A dark field-notes spread presents a coastal survey and a mineral core plate. Desktop visitors move across each specimen to inspect its hidden coordinates and strata marks through the supplied Lens. On touch devices, real specimen controls repositio
React · Tailwind CSS · MIT license · Original registry
Added to PODIE · Catalog updated · Page updated
Installation and usage
The published examples target React 19 and Tailwind CSS 4. See the recorded installation tests and their limits; verify compatibility in your own project.
01 — Set up your project
First component? Initialize shadcn once.
pnpm dlx shadcn@latest init02 — Install the component
pnpm dlx shadcn@latest add https://podie.dev/r/magicui--lens.json03 — Add it to your interface
Import the component from the path created by the installer.
'use client';
import EffectLens from '@/components/podie/magicui--lens/demo';
export default function Example() {
return (
<div style={{ width: '100%', height: '100vh' }}>
<EffectLens />
</div>
);
}
Example styling
These styles belong to the demo wrapper. Add them to your stylesheet to reproduce this example.
.expanded-demo { position:relative; display:flex; align-items:center; justify-content:center; width:360px; max-width:100%; min-height:180px; padding:15px; isolation:isolate }
.demo-stack { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:22px }
.demo-action { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--border, #e5e5e5); border-radius:8px; background:var(--muted, #f5f5f5); color:var(--foreground, #171717); padding:10px 16px; font-size:13px; cursor:pointer }
.demo-action:hover { background:var(--accent, #eee) }
.demo-tile { padding:16px 22px; background:var(--muted, #f5f5f5); border:1px solid var(--border, #e5e5e5); border-radius:12px; color:var(--foreground, #171717); font-size:15px }
.demo-art { display:flex; align-items:center; justify-content:center; min-height:140px; padding:30px; width:280px; max-width:100%; background:var(--muted, #f5f5f5); border:1px solid var(--border, #e5e5e5); border-radius:16px; text-align:center; font-size:25px; letter-spacing:-.7px; color:var(--foreground, #171717) }
.demo-art.h-full { height:100%; min-height:0 }
.demo-gradient { position:relative; background:linear-gradient(145deg,#b6c7d1,#d5bcd6 50%,#e2d5bb); border-radius:16px; padding:20px; color:#222 }
.demo-gradient .demo-tile { background:#ffffff48 }
.demo-scene { position:relative; width:360px; height:260px; max-width:100%; overflow:hidden; border-radius:12px }
.demo-scene-label { position:absolute; left:0; right:0; top:50%; transform:translateY(-50%); text-align:center; font-size:25px; line-height:1.3; font-weight:500; letter-spacing:-.7px; z-index:1; pointer-events:none }
.demo-dot { display:block; width:60px; height:60px; border-radius:50%; background:var(--foreground, #171717) }
.expanded-demo:has(.codrops-preview) { width:100%; max-width:none; height:100%; padding:0 }
.codrops-preview { width:100%; height:100%; border:0; border-radius:inherit }Dependencies and distribution
motion The CLI installs declared dependencies. React is a project prerequisite; scenes may include bundled libraries with their own notices.
By Magic UI · MIT license. Original component source and license included.
Choosing and integrating this component
PODIE source review ·
Where it fits
Inspecting a small area of an image or visual surface. A clipped magnified view follows mouse coordinates; the source also exposes keyboard and position handling.
Integration boundary
Editable React source. Tune the zoom and lens size for the source image resolution. Give the region a useful accessible label.
Checks before shipping
Magnification cannot recover detail from a low-resolution image. Provide a straightforward full-size view for essential information.
Recorded verification
The recorded review on 2026-10-10 passed clean npm and pnpm installation checks and the tested desktop and mobile demo flows for this registry hash. Reviewer: PODIE daily visual editor / openai/gpt-5.6-luna. These are historical results, not a new certification of every device or application state. Read the method and limitations.
No component-specific mobile performance or assistive-technology pass is claimed here. Test the final page, including its content, theme and application logic.
Reviewed source identity
Registry SHA-256: 338c9411be036b1790e03d143c7e4ca7bd55fae5512751454e06706ade33edc9
Entry file: components/podie/magicui--lens/components/ui/lens.tsx. 4 files in the registry payload.