ring
loading-ui/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/ring.jsonSource
1import { cn } from "@/lib/utils";23function Ring({ className, style, ...props }: React.ComponentProps<"svg">) {4 return (5 <>6 <style>{`7 @keyframes loading-ui-ring-spin {8 to {9 transform: rotate(360deg);10 }11 }12 `}</style>13 <svg14 viewBox="0 0 24 24"15 fill="none"16 xmlns="http://www.w3.org/2000/svg"17 className={cn(className)}18 style={{19 animationName: "loading-ui-ring-spin",20 animationDuration: "var(--duration, 1s)",21 animationTimingFunction: "linear",22 animationIterationCount: "infinite",23 ...style,24 }}25 {...props}26 >27 <path28 d="M21 12.0004C20.9999 13.901 20.3981 15.7528 19.2809 17.2904C18.1637 18.8279 16.5885 19.9723 14.7809 20.5596C12.9733 21.1469 11.0262 21.1468 9.21864 20.5594C7.41109 19.9721 5.83588 18.8276 4.71876 17.29C3.60165 15.7523 2.99999 13.9005 3 11.9999C3.00001 10.0993 3.60171 8.24755 4.71884 6.70994C5.83598 5.17233 7.4112 4.02785 9.21877 3.44052C11.0263 2.85319 12.9734 2.85316 14.781 3.44044"29 stroke="currentColor"30 strokeWidth="2"31 strokeLinecap="round"32 strokeLinejoin="round"33 />34 </svg>35 </>36 );37}3839export { Ring };
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 |
