fade-arc
loading-ui/fade-arcFreeComponent
@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/fade-arc.jsonSource
1import { useId } from "react";23import { cn } from "@/lib/utils";45function FadeArc({ className, style, ...props }: React.ComponentProps<"svg">) {6 const baseId = useId().replace(/:/g, "");7 const leadingGradientId = `${baseId}-leading`;8 const trailingGradientId = `${baseId}-trailing`;910 return (11 <>12 <style>{`13 @keyframes loading-ui-fade-arc-spin {14 to {15 transform: rotate(360deg);16 }17 }18 `}</style>19 <svg20 viewBox="0 0 24 24"21 fill="none"22 xmlns="http://www.w3.org/2000/svg"23 role="status"24 className={cn(className)}25 style={{26 animationName: "loading-ui-fade-arc-spin",27 animationDuration: "var(--duration, 1s)",28 animationTimingFunction: "linear",29 animationIterationCount: "infinite",30 ...style,31 }}32 {...props}33 >34 <defs>35 <linearGradient36 id={leadingGradientId}37 x1="50%"38 x2="50%"39 y1="5.271%"40 y2="91.793%"41 >42 <stop offset="0%" stopColor="currentColor" />43 <stop offset="100%" stopColor="currentColor" stopOpacity="0.55" />44 </linearGradient>45 <linearGradient46 id={trailingGradientId}47 x1="50%"48 x2="50%"49 y1="15.24%"50 y2="87.15%"51 >52 <stop offset="0%" stopColor="currentColor" stopOpacity="0" />53 <stop offset="100%" stopColor="currentColor" stopOpacity="0.55" />54 </linearGradient>55 </defs>56 <g fill="none">57 <path58 d="M8.749.021a1.5 1.5 0 0 1 .497 2.958A7.5 7.5 0 0 0 3 10.375a7.5 7.5 0 0 0 7.5 7.5v3c-5.799 0-10.5-4.7-10.5-10.5C0 5.23 3.726.865 8.749.021"59 fill={`url(#${leadingGradientId})`}60 transform="translate(1.5 1.625)"61 />62 <path63 d="M15.392 2.673a1.5 1.5 0 0 1 2.119-.115A10.48 10.48 0 0 1 21 10.375c0 5.8-4.701 10.5-10.5 10.5v-3a7.5 7.5 0 0 0 5.007-13.084a1.5 1.5 0 0 1-.115-2.118"64 fill={`url(#${trailingGradientId})`}65 transform="translate(1.5 1.625)"66 />67 </g>68 </svg>69 </>70 );71}7273export { FadeArc };
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 |
