Framework Agnostic
forgeui/framework-agnosticFreeComponent
Visually demonstrates cross-framework adaptability using animated stack icons and a glowing pipeline effect.
Live preview
live · rendered by the registry
Rendered by ForgeUI on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://forgeui.in/r/framework-agnostic.jsonSource
1"use client";23import { cn } from "@/lib/utils";4import { useState, useEffect } from "react";5import type { SVGProps } from "react";67type FrameworkAgnosticProps = {8 cardTitle?: string;9 cardDescription?: string;10};1112const FrameworkAgnostic = ({13 cardTitle = "Framework Agnostic",14 cardDescription = "Seamlessly integrate with any tech stack, whether it's Next.js,React, HTML, or anything else. Statsio works everywhere.",15}: FrameworkAgnosticProps) => {16 return (17 <div18 className={cn(19 "relative",20 "flex flex-col justify-between",21 "h-80 space-y-4",22 "rounded-md border border-neutral-800/80 bg-neutral-950",23 )}24 >25 <FrameworkCard />26 <div className="px-4 pb-4">27 <div className="text-sm font-semibold text-white">{cardTitle}</div>28 <div className="mt-2 text-xs text-neutral-400">{cardDescription}</div>29 </div>30 </div>31 );32};3334export default FrameworkAgnostic;3536const FrameworkCard = () => {37 const [nextJsTransform, setNextJsTransform] = useState("none");38 const [reactTransform, setReactTransform] = useState("none");39 const [htmlTransform, setHtmlTransform] = useState("none");4041 useEffect(() => {42 const cycleAnimations = async () => {43 const upStyle = "translateY(-3.71px) rotateX(10.71deg) translateZ(20px)";44 const downStyle = "none";4546 const transitionDuration = 1100;4748 const durationOfUpState = 1200;49 const delayBetweenCards = 600;5051 while (true) {52 setReactTransform(upStyle);53 await new Promise((resolve) => setTimeout(resolve, durationOfUpState));54 setReactTransform(downStyle);55 await new Promise((resolve) =>56 setTimeout(resolve, transitionDuration + delayBetweenCards),57 );5859 setNextJsTransform(upStyle);60 await new Promise((resolve) => setTimeout(resolve, durationOfUpState));61 setNextJsTransform(downStyle);62 await new Promise((resolve) =>63 setTimeout(resolve, transitionDuration + delayBetweenCards),64 );6566 setHtmlTransform(upStyle);67 await new Promise((resolve) => setTimeout(resolve, durationOfUpState));68 setHtmlTransform(downStyle);69 await new Promise((resolve) =>70 setTimeout(resolve, transitionDuration + delayBetweenCards),71 );72 }73 };7475 cycleAnimations();76 }, []);7778 const cardClasses =79// … truncated
Files it writes
More from ForgeUI
All 28 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Animated Formanimated-form | ForgeUI | Components | Free | no deps | |
| Animated OTPanimated-otp | ForgeUI | Components | Free | no deps | |
| Animated Tabsanimated-tabs | ForgeUI | Components | Free | no deps | |
| Auralisauralis | ForgeUI | Components | Free | no deps | |
| Bot Detectionbot-detection | ForgeUI | Components | Free | no deps | |
| Chromatic Fluidchromatic-fluid | ForgeUI | Components | Free | no deps | |
| Cloudscapecloudscape | ForgeUI | Components | Free | no deps | |
| Cosmicriftcosmicrift | ForgeUI | Components | Free | no deps |
