BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/pixel-perfect/blur-toggle-button

blur-toggle-button

pixel-perfect/blur-toggle-button
UnverifiedBlock

A button with blur transition effect on toggle using Framer Motion.

Install it

npx shadcn@latest add https://raw.githubusercontent.com/DhruvitNavadiya/portfolio-new/main/blur-toggle-button.json

Source

registry/new-york/buttons/blur-toggle-button.tsxraw.githubusercontent.com/DhruvitNavadiya/portfolio-new/main/blur-toggle-button.json
1"use client";
2import React, { useState } from "react";
3import { AnimatePresence, motion } from "framer-motion";
4import { Check, Copy } from "lucide-react";
5
6const BlurToggleButton = () => {
7 const [checked, setChecked] = useState(false);
8
9 return (
10 <motion.button
11 whileTap={{
12 scale: 0.95,
13 }}
14 className="border p-3 rounded-md bg-background cursor-pointer"
15 onClick={() => {
16 setChecked(!checked);
17 }}
18 >
19 <AnimatePresence mode="wait">
20 {checked ? (
21 <motion.div
22 key="copy"
23 initial={{ filter: "blur(1px)", scale: 1 }}
24 animate={{ filter: "blur(0px)", scale: 1.2 }}
25 exit={{ filter: "blur(1px)", scale: 0.8 }}
26 transition={{ duration: 0.05 }}
27 >
28 <Copy size={16} />
29 </motion.div>
30 ) : (
31 <motion.div
32 key="check"
33 initial={{ filter: "blur(1px)", scale: 1 }}
34 animate={{ filter: "blur(0px)", scale: 1.2 }}
35 exit={{ filter: "blur(1px)", scale: 0.8 }}
36 transition={{ duration: 0.05 }}
37 >
38 <Check size={16} />
39 </motion.div>
40 )}
41 </AnimatePresence>
42 </motion.button>
43 );
44};
45
46export default BlurToggleButton;

What it pulls in

npm packages

  • framer-motion
  • lucide-react

Files it writes

  • registry/new-york/buttons/blur-toggle-button.tsx

Facts

Registry
pixel-perfect
Type
registry:block
Access
Unverified
Files written
1
Licence
the repository states none
First indexed
2026-08-04
Last confirmed
today

Go to the source

www.pixel-perfect.space DhruvitNavadiya/portfolio-new on GitHub Raw registry item This item as JSON

More from pixel-perfect

All 60 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
3d-button3d-buttonpixel-perfectBlocksUnverified2 deps
abhinav-bento-buttonabhinav-bento-buttonpixel-perfectBlocksUnverifiedno deps
accordion-carouselaccordion-carouselpixel-perfectBlocksFree1 dep
accordion-foldaccordion-foldpixel-perfectBlocksFree1 dep
activity-wheel-motionactivity-wheel-motionpixel-perfectBlocksFree2 deps
animated-textureanimated-texturepixel-perfectBlocksFree1 dep
aperture-mask-revealaperture-mask-revealpixel-perfectBlocksFree1 dep
aurora-curtainaurora-curtainpixel-perfectBlocksFreeno 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