BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/atlas-ui/shiny-button

Shiny Button

atlas-ui/shiny-button
FreeComponent

A shiny button with a sleek animation effect.

Live preview

live · rendered by the registry
Rendered by atlas-ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://atlasui.dev/r/shiny-button.json

Source

registry/react/atlasui/shiny-button.tsxatlasui.dev/r/shiny-button.json
1"use client";
2
3import { ButtonHTMLAttributes } from "react";
4
5import { MotionProps, motion } from "motion/react";
6
7import { cn } from "@/lib/utils";
8
9type MergedProps = Omit<
10 ButtonHTMLAttributes<HTMLButtonElement>,
11 keyof MotionProps
12> &
13 MotionProps;
14
15interface ShinyButtonProps extends MergedProps {
16 children: React.ReactNode;
17 className?: string;
18}
19
20export const ShinyButton = ({
21 children,
22 className,
23 ...props
24}: ShinyButtonProps) => {
25 return (
26 <motion.button
27 className={cn("radial-gradient relative rounded-md px-6 py-2", className)}
28 initial={{ "--x": "100%", scale: 1 }}
29 animate={{ "--x": "-100%" }}
30 whileTap={{ scale: 0.97 }}
31 transition={{
32 repeat: Infinity,
33 repeatType: "loop",
34 repeatDelay: 1,
35 type: "spring",
36 stiffness: 20,
37 damping: 15,
38 mass: 2,
39 scale: {
40 type: "spring",
41 stiffness: 10,
42 damping: 5,
43 mass: 0.1,
44 },
45 }}
46 {...props}
47 >
48 <span className="linear-mask relative block h-full w-full font-light tracking-wide text-neutral-100">
49 {children}
50 </span>
51 <span className="linear-overlay absolute inset-0 block rounded-md p-px" />
52 </motion.button>
53 );
54};

What it pulls in

npm packages

  • motion

Other registry items

  • utils

Files it writes

  • registry/react/atlasui/shiny-button.tsx

Facts

Registry
atlas-ui
Type
registry:ui
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-03
Last confirmed
yesterday

Go to the source

Docs on atlas-ui atlasui.dev SnehdeepDupare/atlas-ui on GitHub Raw registry item This item as JSON

More from atlas-ui

All 99 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Animated Mobile Navbaranimated-mobile-navbaratlas-uiComponentsFree2 deps
Blend Mouse Trailerblend-mouse-traileratlas-uiComponentsFree1 dep
Blob Mouse Trailerblob-mouse-traileratlas-uiComponentsFree1 dep
Box Revealbox-revealatlas-uiComponentsFree1 dep
Cascade Textcascade-textatlas-uiComponentsFree1 dep
Dot And Circle Mouse Trailerdot-and-circle-mouse-traileratlas-uiComponentsFree1 dep
Fancy Theme Togglefancy-theme-toggleatlas-uiComponentsFree1 dep
Hacker Texthacker-textatlas-uiComponentsFreeno deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex