concentric-ring
loading-ui/concentric-ringFreeComponent
@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/concentric-ring.jsonSource
1import { cn } from "@/lib/utils";23function ConcentricRing({ className, ...props }: React.ComponentProps<"span">) {4 return (5 <>6 <style>{`7 @keyframes loading-ui-concentric-ring-rotation {8 0% {9 transform: rotate(0deg);10 }1112 100% {13 transform: rotate(360deg);14 }15 }16 `}</style>17 <span18 role="status"19 className={cn("relative inline-block", className)}20 style={{21 animation:22 "loading-ui-concentric-ring-rotation var(--duration, 1s) linear infinite",23 }}24 {...props}25 >26 <span27 aria-hidden="true"28 className="absolute inset-0 rounded-full border-2 border-current"29 style={{ opacity: 0.25 }}30 />31 <span32 aria-hidden="true"33 className="absolute top-1/2 left-1/2 rounded-full border-2 border-transparent border-b-current"34 style={{35 width: "83.333%",36 height: "83.333%",37 transform: "translate(-50%, -50%)",38 }}39 />40 <span className="sr-only">Loading</span>41 </span>42 </>43 );44}4546export { ConcentricRing };
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 |
