Amines UI
  • Components
  • Blocks
  • Illustrations
  • Interactions
  • Pricing
  • Docs

  • Installation
  • Install Next JS
  • Utilities

Buttons

  • Button
  • Reveal Button
  • Lightning Button

Cards

  • Sand Signature Dialog
  • Split Stack Photo
  • Split Stack
  • Split Stack Particles
  • Whiteboard
  • Fan Card
  • Cards Deck
  • Wobble Wallet
  • Hanging Cards
  • Plastic Cards Carousel
  • Infinite Card Stack

Cursors

  • Frame Cursor
  • Liquid Cursor

Loaders

  • Particle Loader

Texts

  • Pixel Text
  • Ink Bloom Text
  • Pixel Roll
  • Emoji Morph Text
  • Inspect Text
  • Reactive Text

ASCII

  • ASCII Murmur
  • ASCII Card

Gooey

  • Gooey Menu
  • Gooey Search Bar
  • Gooey Slider
  • Gooey Dropdown
  • Gooey Text

  • Tear Note
  • Hover Preview List
  • Particle Orbit Chain
  • Wand Card
  • GitHub Contributions 3D
  • Scratch Card
  • Smart Wallet
  • DUO
  • Smart Lock
  • Pixel Cutter
  • Duo Flip
  • Paper Shredder

  • Keyboard Illustration
  • Note Folder
  • Clavis Keyboard
  • Spiral Book
  • Magnifier
  • Card Drawer
  • Iso Controller
  • Card Shelf
  • Signature Text
  • Folder Card
  • Laptop
  • Smart Briefcase

  • Logo Cloud
  • Shatter Stack

Code Blocks

  • Morph Code Block
  • Terminal Steps
  • iMac Terminal
  • Terminal

CTAs

  • Component Orbit CTA
  • Component Library CTA
  • Interface Builder CTA

Backgrounds

  • Glow Bars Background
  • Grid Press Background
  • Particle Shape Background
  • Particle Network
  • Tilted Marquee Background

Navbar

  • IOS Drop Down
  • Fluid Navbar

Pricing Blocks

  • Pricing Block

  • Card Footer
  • Bento Footer

  • Hero SectionsComing soon
  • Login / SignupComing soon
Amines UI Pro

Make every interface feel alive.

Amines UI is a complete set of components, blocks and illustrations to build your next website in minutes.

Upgrade or change anytime.
Amines UI

Animated components, blocks, illustrations and templates for React, Next.js, Tailwind CSS and Motion. An ever-growing universe built for every kind of project.

A product by Yash Vishnoi

Building in public at @yash_vishnoi7

Socials
Components
ButtonReveal ButtonFrame CursorLiquid CursorSand Signature DialogSplit Stack PhotoSplit StackSplit Stack ParticlesWhiteboardFan Card
Visit all components
Illustrations
Keyboard IllustrationNote FolderClavis KeyboardSpiral BookMagnifierCard DrawerIso ControllerCard ShelfSignature TextFolder Card
Visit all illustrations
Blocks
Logo CloudCard FooterBento Footer
Visit all blocks
Code Blocks
Morph Code BlockTerminal StepsiMac Terminal
Visit all code blocks
CTAs
Component Orbit CTAComponent Library CTAInterface Builder CTA
Visit all ctas
Backgrounds
Glow BarsGrid PressParticle Shape
Visit all backgrounds
Navbar
Fluid NavbariOS Drop Down
Visit all navbar
Pricing Blocks
Pricing Block
Visit all pricing blocks
Interactions
Tear NoteHover Preview ListParticle Orbit ChainWand CardGitHub Contributions 3D
Visit all interactions
Docs
InstallationInstall Next.jsUtilitiesCLI
© 2026 Amines UI. All rights reserved.Made with care for the details.
  1. Library
  2. /
  3. Magnifier

MagnifierMagnifier

A draggable magnifying glass that enlarges whatever its parent element renders — text, images, components, even live canvas and video — with real refraction at the lens edge, spring-physics dragging, and fully configurable size, zoom, and colors.

Field notes · 047

Tiny details, magnified.

The lens reads whatever is rendered underneath — drag it across text, imagery, charts, or live components. Refraction at the rim keeps the edge honest while the centre stays optically flat.

Drag to explore2× zoomReal refractionDOM mirror
Sample artwork for the magnifier

Installation

  1. 1

    Install the component:

    npx shadcn@latest add https://ui.amines.fun/registry/magnifier.json
  2. 2

    Usage:

    jsx

    app/page.jsx

    1<Magnifier2  size={160}3  zoom={2}4  refraction={24}5  mode="return"6/>

Props

PropTypeDefaultDescriptionRequired
sizenumber160Lens diameter in pixels.No
zoomnumber2Magnification factor inside the lens.No
refractionnumber24Strength of the lens-edge refraction in pixels. Set to 0 to disable the displacement effect.No
bezelnumber0.4Width of the refractive bezel as a fraction of the lens radius (0-1).No
mode"free" | "return""free"Drag behavior. "free" leaves the lens where dropped; "return" springs it back to home after release.No
home{ x: number; y: number }{ x: 0.5, y: 0.5 }Resting position as fractions (0-1) of the parent width and height.No
spring{ stiffness?: number; damping?: number }{ stiffness: 260, damping: 26 }Spring config used when mode is "return". Passed to Framer Motion's animate.No
handlebooleantrueShow the handle extending from the lens frame.No
ringWidthnumbersize * 0.05Lens ring stroke width in pixels.No
ringColorstring"#1f2937"CSS color of the lens ring and frame.No
handleColorstringringColorCSS color of the handle. Defaults to ringColor.No
pressScalenumber1.04Scale applied to the lens while pressed/dragged.No
constrainbooleantrueKeep the lens inside the parent bounds while dragging.No