BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/harshkanjiya/shutter-cta

Shutter CTA

harshkanjiya/shutter-cta
FreeComponent

A slide-to-action button with animated dot pulses.

Live preview

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

Install it

npx shadcn@latest add https://harshkanjiya.com/r/shutter-cta.json

Source

components/shutter-cta/shutter-cta.tsxharshkanjiya.com/r/shutter-cta.json
1"use client"
2
3import Link from "next/link"
4import { useRef, useState } from "react"
5import { useRouter } from "next/navigation"
6
7type Props = {
8 baseDelay?: number; // starting time offset
9};
10
11export function ArrowBlock({ baseDelay = 0 }: Props) {
12 const pattern = [
13 [1, 1, 0, 0],
14 [0, 1, 1, 0],
15 [0, 0, 1, 1],
16 [0, 1, 1, 0],
17 [1, 1, 0, 0],
18 ];
19
20 return (
21 <div className="grid gap-px grid-cols-4">
22 {pattern.flatMap((row, r) =>
23 row.map((cell, c) => {
24 if (!cell) {
25 return (
26 <div
27 key={`${r}-${c}`}
28 className="h-[4px] w-[4px]"
29 />
30 );
31 }
32 const delay = baseDelay + (c * 120 + r * 60);
33 return (
34 <div
35 key={`${r}-${c}`}
36 className="h-[4px] w-[4px] bg-white rounded-full"
37 style={{
38 animation: `dotPulse 1.5s ease-in-out infinite`,
39 animationDelay: `${delay}ms`,
40 }}
41 />
42 );
43 })
44 )}
45 <style jsx>{`
46 @keyframes dotPulse {
47 0%, 100% { opacity: 0.2; }
48 50% { opacity: 1; }
49 }
50 `}</style>
51 </div>
52 );
53}
54
55const arrows = [
56 { delay: 0 },
57 { delay: 200 },
58 { delay: 400 },
59 { delay: 600 },
60 { delay: 800 },
61];
62
63const INITIAL_W = 42
64const SLIDE_THRESHOLD = 0.6 // 60% of max drag triggers navigation
65
66export function ShutterCta() {
67 const router = useRouter()
68 const buttonRef = useRef<HTMLButtonElement>(null)
69 const touchStartX = useRef(0)
70 const [dragWidth, setDragWidth] = useState<number | null>(null)
71 const isDragging = useRef(false)
72
73 const handleTouchStart = (e: React.TouchEvent) => {
74 touchStartX.current = e.touches[0].clientX
75 isDragging.current = true
76 setDragWidth(INITIAL_W)
77 }
78
79 const handleTouchMove = (e: React.TouchEvent) => {
80 if (!isDragging.current || !buttonRef.current) return
81 const btnW = buttonRef.current.offsetWidth
82// … truncated

Files it writes

  • components/shutter-cta/shutter-cta.tsx
  • components/shutter-cta/index.ts

Facts

Registry
harshkanjiya
Type
registry:component
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-12
Last confirmed
today

Go to the source

Docs on harshkanjiya harshkanjiya.com HarshKanjiya/harshkanjiya.com on GitHub Raw registry item This item as JSON

More from harshkanjiya

All 6 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Hello Worldhello-worldharshkanjiyaComponentsFreeno deps · 2 files
Pintch Switchpintch-switchharshkanjiyaComponentsFreeno deps · 4 files
Realistic Buttonrealistic-buttonharshkanjiyaComponentsFreeno deps · 4 files
ToggletoggleharshkanjiyaComponentsFreeno deps · 4 files

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