BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/cult/ui/cosmic-button

cosmic-button

cult-ui/cosmic-button
UnverifiedComponent

Animated button/link with cosmic gradient border effect, renders as anchor or button

Install it

npx shadcn@latest add https://raw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/cosmic-button.json

Source

registry/default/ui/cosmic-button.tsxraw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/cosmic-button.json
1"use client"
2
3import type { ComponentPropsWithoutRef } from "react"
4
5import { cn } from "@/lib/utils"
6
7/**
8 * Requires these keyframes and utilities in your CSS (e.g. global CSS or Tailwind):
9 *
10 * @keyframes cosmic-spin {
11 * from { transform: rotate(0deg); }
12 * to { transform: rotate(360deg); }
13 * }
14 * @keyframes cosmic-spin-slow {
15 * from { transform: rotate(0deg); }
16 * to { transform: rotate(-360deg); }
17 * }
18 * @utility animate-cosmic-spin {
19 * animation: cosmic-spin 3s linear infinite;
20 * }
21 * @utility animate-cosmic-spin-slow {
22 * animation: cosmic-spin-slow 5s linear infinite;
23 * }
24 */
25
26export type CosmicButtonProps<E extends "a" | "button" = "a"> = {
27 /** The HTML element to render as. @default "a" */
28 as?: E
29} & ComponentPropsWithoutRef<E>
30
31/**
32 * An animated button/link with a cosmic gradient border effect.
33 * Renders as an anchor by default; use `as="button"` for button behavior.
34 *
35 * @example
36 * // As link (default)
37 * <CosmicButton href="/about">About</CosmicButton>
38 *
39 * @example
40 * // As button
41 * <CosmicButton as="button" onClick={handleClick}>Submit</CosmicButton>
42 */
43export function CosmicButton<E extends "a" | "button" = "a">({
44 as,
45 className,
46 children,
47 ...props
48}: CosmicButtonProps<E>) {
49 const Element = as ?? "a"
50 const isAnchor = Element === "a"
51
52 const baseClassName = cn(
53 "group/cosmic relative inline-flex min-h-11 min-w-11 items-center justify-center gap-3 rounded-[15px] p-[3px] transition-transform ",
54 "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#adfa1b] focus-visible:ring-offset-2 focus-visible:ring-offset-white dark:focus-visible:ring-offset-[#0c0912]",
55 className
56 )
57
58 const content = (
59 <>
60 {/* Animated cosmic border - enlarges on hover */}
61 <span className="absolute inset-0 overflow-hidden rounded-[15px] transition-all duration-300 ease-out group-hover/cosmic:inset-[-3px] group-hover/cosmic:rounded-[15px]">
62 <span className="absolute inset-[-200%] animate-cosmic-spin bg-[conic-gradient(from_0deg,#adfa1b,#c9ff63,#efffb7,#8cd413,#6f9f19,#92d61b,#adfa1b)] opacity-95" />
63 </span>
64
65 {/* Noise/texture overlay on the border - enlarges on hover */}
66 <span className="absolute inset-0 overflow-hidden rounded-[15px] opacity-45 mix-blend-soft-light transition-all duration-300 ease-out group-hover/cosmic:inset-[-3px] group-hover/cosmic:rounded-[15px] dark:opacity-60 dark:mix-blend-overlay">
67// … truncated

Files it writes

  • registry/default/ui/cosmic-button.tsx

Facts

Registry
cult/ui
Type
registry:ui
Access
Unverified
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

www.cult-ui.com nolly-studio/cult-ui on GitHub Raw registry item This item as JSON

More from cult/ui

All 157 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
ai-instructionsai-instructionscult/uiComponentsUnverified2 deps
ai-instructions-demoai-instructions-democult/uiComponentsUnverifiedno deps
animated-numberanimated-numbercult/uiComponentsUnverified1 dep
animated-number-demoanimated-number-democult/uiComponentsUnverifiedno deps
bg-animate-buttonbg-animate-buttoncult/uiComponentsUnverifiedno deps
bg-animate-button-demobg-animate-button-democult/uiComponentsUnverifiedno deps
bg-animated-fractal-dot-gridbg-animated-fractal-dot-gridcult/uiComponentsUnverified1 dep
bg-animated-fractal-dot-grid-demobg-animated-fractal-dot-grid-democult/uiComponentsUnverifiedno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex