BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/Animated Theme Toggles/inner-moon

Inner Moon Theme Toggle

animated-theme-toggles/inner-moon
FreeBlock

Animated Theme Toggles publishes no description for this item.

Install it

npx shadcn@latest add https://toggles.dev/r/inner-moon.json

Source

src/InnerMoon.tsxtoggles.dev/r/inner-moon.json
1import { type ButtonHTMLAttributes, type CSSProperties } from "react";
2
3export interface InnerMoonProps extends Omit<
4 ButtonHTMLAttributes<HTMLButtonElement>,
5 "children"
6> {
7 duration?: number;
8 [key: `data-${string}`]: string | number | boolean | null | undefined;
9}
10
11export function InnerMoon({
12 duration = 500,
13 className,
14 type = "button",
15 title = "Toggle theme",
16 "aria-label": ariaLabel = "Toggle theme",
17 ...props
18}: InnerMoonProps) {
19 return (
20 <button
21 type={type}
22 title={title}
23 aria-label={ariaLabel}
24 className={className}
25 {...props}
26 >
27 <svg
28 width="1em"
29 height="1em"
30 viewBox="0 0 32 32"
31 aria-hidden="true"
32 fill={"currentColor"}
33 style={
34 { "--toggles-inner-moon--duration": `${duration}ms` } as CSSProperties
35 }
36 >
37 <path
38 d={
39 "M27.5 11.5v-7h-7L16 0l-4.5 4.5h-7v7L0 16l4.5 4.5v7h7L16 32l4.5-4.5h7v-7L32 16l-4.5-4.5zM16 25.4a9.39 9.39 0 1 1 0-18.8 9.39 9.39 0 1 1 0 18.8z"
40 }
41 className="origin-center transition-transform duration-(--toggles-inner-moon--duration) [transition-timing-function:cubic-bezier(0,0,0.15,1.25)] dark:rotate-180"
42 />
43 <circle
44 cx={16}
45 cy={16}
46 r={7.6}
47 className="origin-center transition-transform [transition-timing-function:cubic-bezier(0.4,0,0.2,1)] [transition-duration:calc(var(--toggles-inner-moon--duration)/1.5)] dark:translate-x-[15%]"
48 />
49 </svg>
50 </button>
51 );
52}

Files it writes

  • src/InnerMoon.tsx

Facts

Registry
Animated Theme Toggles
Type
registry:block
Access
Free
Files written
1
Licence
the repository states none
In the index
at or before 2026-08-12
Last confirmed
yesterday

Go to the source

toggles.dev AlfieJones/theme-toggles on GitHub Raw registry item This item as JSON

More from Animated Theme Toggles

All 14 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Around Theme TogglearoundAnimated Theme TogglesBlocksFreeno deps
Classic Theme ToggleclassicAnimated Theme TogglesBlocksFreeno deps
Dark Inner Theme Toggledark-innerAnimated Theme TogglesBlocksFreeno deps
Dark Side Theme Toggledark-sideAnimated Theme TogglesBlocksFreeno deps
Eclipse Theme ToggleeclipseAnimated Theme TogglesBlocksFreeno deps
Expand Theme ToggleexpandAnimated Theme TogglesBlocksFreeno deps
Half Sun Theme Togglehalf-sunAnimated Theme TogglesBlocksFreeno deps
Horizon Theme TogglehorizonAnimated Theme TogglesBlocksFreeno 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