bg-animate-button-demo
cult-ui/bg-animate-button-demoUnverifiedComponent
cult/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/nolly-studio/cult-ui/HEAD/apps/www/bg-animate-button-demo.jsonSource
1import { BgAnimateButton } from "../ui/bg-animate-button"23type Gradients =4 | "sunrise"5 | "ocean"6 | "candy"7 | "default"8 | "forest"9 | "sunset"10 | "nebula"1112type Radius = "full" | "xl" | "2xl" | "3xl" | "sm"13type Animations = "spin" | "pulse" | "spin-slow" | "spin-fast"1415const gradients: Gradients[] = [16 "sunrise",17 "ocean",18 "candy",19 "forest",20 "sunset",21 "default",22 "nebula",23]24const roundings: Radius[] = ["full", "xl", "2xl", "3xl", "sm"]25const animations: Animations[] = ["spin", "pulse", "spin-slow", "spin-fast"]2627export const BgAnimateButtonsDemo = () => {28 return (29 <div className="w-full max-w-4xl">30 <div className=" sm:px-12 md:px-24 flex flex-col justify-center rounded-lg space-y-4">31 {/* Roundings Grid */}3233 <div className="grid grid-cols-3 gap-4">34 {roundings.slice(0, 2).map((rounding, i) => (35 <BgAnimateButton36 gradient={gradients[i + 1]}37 key={rounding}38 rounded={rounding}39 >40 {rounding}41 </BgAnimateButton>42 ))}43 </div>44 <div className="grid grid-cols-3 gap-4">45 {roundings.slice(2, 5).map((rounding, i) => (46 <BgAnimateButton47 gradient={gradients[i + 1]}48 key={rounding}49 rounded={rounding}50 >51 {rounding}52 </BgAnimateButton>53 ))}54 </div>5556 {/* animations Grid */}57 <div className="grid grid-cols-2 gap-4">58 {animations.map((animations, i) => (59 <BgAnimateButton60 key={animations}61 gradient={gradients[i + 2]}62 variant="ghost"63 animation={animations}64 >65 {animations}66 </BgAnimateButton>67 ))}68 </div>69 </div>70 </div>71 )72}7374export default BgAnimateButtonsDemo
What it pulls in
Other registry items
Files it writes
More from cult/ui
All 157 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| ai-instructionsai-instructions | cult/ui | Components | Unverified | 2 deps | |
| ai-instructions-demoai-instructions-demo | cult/ui | Components | Unverified | no deps | |
| animated-numberanimated-number | cult/ui | Components | Unverified | 1 dep | |
| animated-number-demoanimated-number-demo | cult/ui | Components | Unverified | no deps | |
| bg-animate-buttonbg-animate-button | cult/ui | Components | Unverified | no deps | |
| bg-animated-fractal-dot-gridbg-animated-fractal-dot-grid | cult/ui | Components | Unverified | 1 dep | |
| bg-animated-fractal-dot-grid-demobg-animated-fractal-dot-grid-demo | cult/ui | Components | Unverified | no deps | |
| bg-animated-gradientbg-animated-gradient | cult/ui | Components | Unverified | 1 dep |
