magicui
БесплатноБез исполняемых скриптовНе проверенAdds animated React components (marquee, number ticker, shimmer button, confetti, globe, animated beam) to landing pages with Magic UI, a copy-the-source…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Magic UI
Overview
Magic UI is a collection of animated React components for landing pages, built on Tailwind CSS and the motion animation library. It is distributed as a shadcn registry: one command copies a component's source into your project, so you own the code and can edit it freely. There is no runtime package to depend on.
Key traits:
- Installed with the shadcn CLI through the
@magicuiregistry namespace - Components are copied to
components/ui/(the path set by theuialias incomponents.json) - Named exports (
import { Marquee } from "@/components/ui/marquee"), TypeScript first - Animation keyframes live in your global CSS; the CLI adds them for you
The old magicui-cli npm package was last published in July 2024 and is no longer maintained. Do not use it; the commands below replace it.
Instructions
Prerequisites
The project needs shadcn/ui initialised (a components.json file) and Tailwind CSS:
npx shadcn@latest init
The @magicui namespace is known to the shadcn CLI, so no registry entry has to be added to components.json.
Install components
npx shadcn@latest add @magicui/marquee
npx shadcn@latest add @magicui/number-ticker @magicui/shimmer-button # several at once
npx shadcn@latest view @magicui/globe # inspect source and dependencies first
The CLI installs the component's dependencies (for example motion, canvas-confetti, cobe) and writes any @theme inline keyframes into your CSS file. To list what exists, read https://magicui.design/llms.txt or browse https://magicui.design/docs/components.
Component usage
Imports come from @/components/ui/<name> and are named exports. Props below are from the current documentation.
Marquee — infinite ticker (reverse, pauseOnHover, vertical, repeat, default 4). Set speed with the CSS variables --duration and --gap:
import { Marquee } from "@/components/ui/marquee";
<Marquee pauseOnHover className="[--duration:20s]">
{["Vercel", "Stripe", "Linear", "Notion", "Figma"].map((name) => (
<span key={name} className="mx-8 text-xl font-semibold text-muted-foreground">{name}</span>
))}
</Marquee>
NumberTicker — counts when it scrolls into view (value, startValue, direction, delay, decimalPlaces):
import { NumberTicker } from "@/components/ui/number-ticker";
<NumberTicker value={10000} className="text-5xl font-bold" />
<NumberTicker value={99.9} decimalPlaces={1} className="text-5xl font-bold" />
ShimmerButton — props shimmerColor, shimmerSize (default 0.05em), shimmerDuration (default 3s), borderRadius, background:
import { ShimmerButton } from "@/components/ui/shimmer-button";
<ShimmerButton shimmerColor="#ffffff" background="linear-gradient(135deg, #6366f1, #8b5cf6)" className="px-8 py-3">
Start free trial
</ShimmerButton>
SparklesText — the text is passed as children, not a text prop (sparklesCount, colors={{ first, second }}):
import { SparklesText } from "@/components/ui/sparkles-text";
<h1 className="text-6xl font-bold">Build <SparklesText colors={{ first: "#6366f1", second: "#ec4899" }}>faster</SparklesText> with AI</h1>
Ripple (mainCircleSize, mainCircleOpacity, numCircles) and Meteors (number, angle, minDuration, maxDuration) are backgrounds: put them in a relative overflow-hidden parent and raise your content with z-10:
import { Ripple } from "@/components/ui/ripple";
import { Meteors } from "@/components/ui/meteors";
<div className="relative flex h-96 items-center justify-center overflow-hidden rounded-2xl border">
<Ripple mainCircleSize={200} numCircles={8} />
<Meteors number={20} />
<p className="z-10 text-4xl font-bold">Connect everything</p>
</div>
Confetti — a canvas component controlled by a ref, not a hook. Add manualstart so it does not fire on mount, then call fire():
"use client";
import { useRef } from "react";
import { Confetti, type ConfettiRef } from "@/components/ui/confetti";
export function CheckoutDone() {
const confettiRef = useRef<ConfettiRef>(null);
return (
<div className="relative">
<Confetti ref={confettiRef} manualstart className="pointer-events-none absolute inset-0 size-full" />
<button onClick={() => confettiRef.current?.fire({ particleCount: 100, spread: 70 })}>
Complete purchase
</button>
</div>
);
}
AnimatedBeam — draws a moving line between two elements; needs three refs (containerRef, fromRef, toRef) and a relative container, plus optional curvature, duration, reverse, gradientStartColor, gradientStopColor:
"use client";
import { useRef } from "react";
import { AnimatedBeam } from "@/components/ui/animated-beam";
export function BeamDemo() {
const containerRef = useRef<HTMLDivElement>(null);
const fromRef = useRef<HTMLDivElement>(null);
const
Установить magicui в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл magicui?
Adds animated React components (marquee, number ticker, shimmer button, confetti, globe, animated beam) to landing pages with Magic UI, a copy-the-source library built on Tailwind CSS and shadcn/ui. Use when asked to add animated UI components, build an impressive landing page hero, create particle or meteor backgrounds, text animations, number counters, shimmer buttons, or other visual effects in React.
Как установить скилл magicui?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл magicui запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic