Logo

Voxlet UI

Magic Wand

An interactive Magic Wand effect that follows the cursor, animating a floating wand and revealing images within tiles as the cursor moves.

Installation

Install this component and its dependencies with a single command.

npx shadcn@latest add https://ui.voxletstudio.com//r/magic-wand.json

Once your project registers the @voxlet namespace, this also works: npx shadcn@latest add @voxlet/magic-wand

Props

MagicWandContainerProps

PropTypeDefaultDescription
childrenReact.ReactNode-Elements that will be wrapped by the magic wand effect.
classNamestringundefinedCustom class names for additional styling of the container.
wandClassNamestringundefinedCustom class names for additional styling of the floating wand.

MagicWandTileProps

PropTypeDefaultDescription
imagestring-The source URL of the image to be revealed.
iconLucideIcon | IconConfigundefinedLucide icon or an object with an icon and optional className.
classNamestringundefinedOptional class names for styling the tile.

IconConfig

PropTypeDefaultDescription
iconLucideIconundefinedLucide icon component.
classNamestringundefinedOptional class names for styling the icon.
Brought to you by Voxlet Studio