Pointer
Pointer follows pointer movement with a custom visual child or default treatment.
Practical React example
Add a decorative pointer treatment inside an explicitly bounded showcase.
Before you copy and paste
Match the imported component’s client or server rendering boundary before using the example. Copy components/magicui/pointer.tsx and its returned support files from the Code tab; preserve the project-relative paths.
Listed package dependencies: motion.
Use the Code tab for the component files and installation instructions, then adapt the imports in this example to your project.
Add a decorative pointer treatment inside an explicitly bounded showcase
// Usage adapted from Magic UI's pinned MIT source.
// Copyright (c) Magic UI. See ./LICENSES.md.
'use client';
import { Pointer } from "@/components/magicui/pointer"
export function ComponentExample() {
return (
<Pointer />
);
}
Usage example adapted from Magic UI's pinned MIT source. Retain the source licence notices when copying.
Keep the interactive region and its ordinary controls intact. Use the effect only where the browser’s native cursor still communicates the action clearly.
Customization
- children / className / style
- The pinned component accepts Motion div props. Use children for a custom pointer visual and keep the pointer separate from the target control’s accessible label.
Integration notes
- Do not use the custom pointer as the only focus or hover indication.
- Check coarse-pointer devices and reduced motion, and ensure the decoration does not intercept clicks.
Component source: Magic UI documentation . These examples describe the version imported into Rendyn. Upstream APIs may have changed; retain the source licence notices when adapting the code.
Give your agent taste.
The best way to use Rendyn is through MCP. Let your agent find the right component, compare previews and bring the source into your project.
All components are free. Sign up only to connect MCP.