BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/tripled/animated-select-shadcnui

Animated Select

tripled/animated-select-shadcnui
FreeComponent

Select dropdown with smooth open/close animation

Live preview

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

Install it

npx shadcn@latest add https://ui.tripled.work/r/animated-select-shadcnui.json

Source

@uitripled/react-shadcn/src/components/forms/animated-select.tsxui.tripled.work/r/animated-select-shadcnui.json
1"use client";
2
3import { AnimatePresence, motion } from "framer-motion";
4import { Check, ChevronDown } from "lucide-react";
5import { useState } from "react";
6
7const options = ["React", "Vue", "Angular", "Svelte", "Next.js"];
8
9export function AnimatedSelect() {
10 const [isOpen, setIsOpen] = useState(false);
11 const [selected, setSelected] = useState(options[0]);
12
13 return (
14 <div className="relative w-full max-w-xs">
15 <motion.button
16 onClick={() => setIsOpen(!isOpen)}
17 className="flex w-full items-center justify-between rounded-lg border bg-[var(--card-bg)] px-4 py-2 text-sm"
18 whileHover={{ scale: 1.01 }}
19 whileTap={{ scale: 0.99 }}
20 >
21 <span>{selected}</span>
22 <motion.div animate={{ rotate: isOpen ? 180 : 0 }}>
23 <ChevronDown className="h-4 w-4" />
24 </motion.div>
25 </motion.button>
26
27 <AnimatePresence>
28 {isOpen && (
29 <motion.div
30 initial={{ opacity: 0, y: -10 }}
31 animate={{ opacity: 1, y: 0 }}
32 exit={{ opacity: 0, y: -10 }}
33 transition={{ duration: 0.2 }}
34 className="absolute top-full z-50 mt-2 w-full rounded-lg border bg-[var(--card-bg)] py-2 shadow-lg"
35 >
36 {options.map((option, index) => (
37 <motion.button
38 key={option}
39 initial={{ opacity: 0, x: -10 }}
40 animate={{ opacity: 1, x: 0 }}
41 transition={{ delay: index * 0.05 }}
42 onClick={() => {
43 setSelected(option);
44 setIsOpen(false);
45 }}
46 className="flex w-full items-center justify-between px-4 py-2 text-left text-sm hover:bg-accent/10"
47 whileHover={{ x: 4 }}
48 >
49 <span>{option}</span>
50 {selected === option && (
51 <Check className="h-4 w-4 text-accent" />
52 )}
53 </motion.button>
54 ))}
55 </motion.div>
56 )}
57 </AnimatePresence>
58 </div>
59 );
60}

What it pulls in

npm packages

  • framer-motion
  • react

Other registry items

  • button

Files it writes

  • @uitripled/react-shadcn/src/components/forms/animated-select.tsx

Facts

Registry
tripled
Type
registry:component
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-01
Last confirmed
yesterday

Go to the source

Docs on tripled ui.tripled.work moumen-soliman/uitripled on GitHub Raw registry item This item as JSON

More from tripled

All 282 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AI Chat Interfaceai-chat-interface-shadcnuitripledComponentsFree2 deps
AI Glow Inputai-glow-input-shadcnuitripledComponentsFree2 deps
AI Loading Skeletonai-loading-skeleton-shadcnuitripledComponentsFree2 deps
AI Response Typing Streamai-response-typing-shadcnuitripledComponentsFree2 deps
AI Unlock Animationai-unlock-animation-shadcnuitripledComponentsFree2 deps
Animated Accordionanimated-accordion-shadcnuitripledComponentsFree2 deps
Animated Card Stackanimated-card-stack-baseuitripledComponentsFree2 deps
Animated Card Stackanimated-card-stack-shadcnuitripledComponentsFree2 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