twin-orbit
loading-ui/twin-orbitFreeComponent
@loading-ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by @loading-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://loading-ui.com/r/twin-orbit.jsonSource
1import { cn } from "@/lib/utils";23function TwinOrbit({ className, ...props }: React.ComponentProps<"span">) {4 return (5 <>6 <style>{`7 @keyframes loading-ui-twin-orbit-rotate {8 100% {9 transform: rotate(360deg) translate(155%);10 }11 }12 `}</style>13 <span14 role="status"15 className={cn(16 "relative inline-block aspect-square rounded-full bg-current",17 className,18 )}19 {...props}20 >21 <span22 aria-hidden="true"23 className="absolute inset-0 rounded-full bg-current"24 style={{25 transform: "rotate(0deg) translate(155%)",26 animation:27 "loading-ui-twin-orbit-rotate var(--duration, 1s) ease infinite",28 }}29 />30 <span31 aria-hidden="true"32 className="absolute inset-0 rounded-full bg-current"33 style={{34 transform: "rotate(0deg) translate(155%)",35 animation:36 "loading-ui-twin-orbit-rotate var(--duration, 1s) ease infinite",37 animationDelay: "calc(var(--duration, 1s) / 2)",38 }}39 />40 <span className="sr-only">Loading</span>41 </span>42 </>43 );44}4546export { TwinOrbit };
Files it writes
More from @loading-ui
All 50 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordion-loaderaccordion-loader | @loading-ui | Components | Free | no deps | |
| analyzing-imageanalyzing-image | @loading-ui | Components | Free | 1 dep | |
| arcarc | @loading-ui | Components | Free | no deps | |
| barsbars | @loading-ui | Components | Free | no deps | |
| bobbing-dotsbobbing-dots | @loading-ui | Components | Free | 1 dep | |
| bouncing-dotsbouncing-dots | @loading-ui | Components | Free | no deps | |
| classicclassic | @loading-ui | Components | Free | no deps | |
| clock-ringclock-ring | @loading-ui | Components | Free | no deps |
