Magic UI Grid Notes
Over 150 animated landing-page components — marquees, Bento grids, shimmer buttons, globes and device mocks — built with React, Tailwind CSS and Motion.
Install and prerequisites
npx shadcn@latest add @magicui/marquee@magicuimotionRequires shadcn/ui initialized (npx shadcn@latest init), Tailwind CSS and motion.
Framework setup
Accessible marquee with pause-on-hover and reduced-motion gate
Pair @magicui/marquee with pauseOnHover, a visible pause toggle for WCAG 2.2.2, and motion-reduce:[animation-play-state:paused].
"use client";
import { useState } from "react";
import { Marquee } from "@/components/ui/marquee";
export function LogoMarquee({ items }: { items: { id: string; name: string }[] }) {
const [paused, setPaused] = useState(false);
return (
<section aria-label="Supported tools">
<div className="flex justify-end pb-2">
<button type="button" onClick={() => setPaused((p) => !p)} className="text-xs underline">
{paused ? "Play marquee" : "Pause marquee"}
</button>
</div>
<Marquee pauseOnHover className={paused ? "[&_div]:[animation-play-state:paused]" : ""}>
{items.map((item) => (
<span key={item.id} className="px-4 py-2 text-sm">
{item.name}
</span>
))}
</Marquee>
</section>
);
}Gotchas for agents
Tailwind v4 keyframe definitions
Several Magic UI components (
marquee,shimmer-button,border-beam,shine-border) expect custom--animate-*and@keyframesrules. In Tailwind v4, declare those inside@theme inline { ... }inglobals.cssrather thantailwind.config.js.Duplicate children in Marquee clones
Marqueerenders multiple copies ofchildrento fill the track. Mark cloned copiesaria-hidden="true"and take interactive links inside clones out of the Tab order (tabIndex={-1}) so keyboard users don't tab through the same list four times.Check motion imports after install
Older registry items may still import from
framer-motion; update those imports tomotion/reactso your project bundles a single copy of Motion.
Accessibility and reduced motion
Reduced motion
Add motion-reduce:[animation-play-state:paused] to continuous animations (marquee, orbiting-circles, border-beam) and provide a visible pause control for any marquee on the page.
Keyboard and screen readers
Ensure only the first repetition in a marquee or ticker is exposed to screen readers and keyboard Tab navigation.
More Grid Notes
- shadcn/uiCopy-in React components built on Base UI or Radix UI and Tailwind CSS v4, plus an official MCP server that searches and installs from any namespaced registry.
- React BitsAnimated text effects, shaders, cursors and interactive backgrounds installed as source code in four variants (`-JS-CSS`, `-JS-TW`, `-TS-CSS`, `-TS-TW`).
- Aceternity UIDramatic landing-page hero sections, 3D card perspectives, spotlights, beams and macbook scroll effects built with React 19, Tailwind CSS v4 and Motion.
- Motion PrimitivesComposable, minimal React motion building blocks — animated groups, text effects, morphing dialogs, docks and carousels — built on Motion and Tailwind CSS.
- coss uiOpen-source React components built on Base UI (`@base-ui/react`) and Tailwind CSS v4 (formerly Origin UI; `originui.com` redirects here).
- Fancy ComponentsExperimental, playful React components — letter swaps, variable-font hover effects, physics gravity, gooey SVG filters and image trails — built with Tailwind CSS and Motion.



