Density Lens
Density Lens: An interactive floating lens that tracks pointer movement to reveal high-density data, magnified details, or alternative views. Free MIT React & Next.js source with Motion and Tailwind CSS, live preview, CLI install and docs.
Install Density Lens
npx motion-ui-skill add density-lensComponents install as source into your project. The interactive page also includes preview, code, documentation and install tabs.
Dependencies
clsxmotionreacttailwind-merge
Source files
Density Lens
An interactive floating lens that tracks pointer movement to reveal high-density data, magnified details, or alternative views.
Install
npx motion-ui-skill add density-lens
Dependencies
clsxmotionreacttailwind-merge
Usage
"use client";
import { DensityLens as DensityLens } from "@/components/craft/density-lens";
export function Example() {
return (
<div className="p-6">
<DensityLens />
</div>
);
}