MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / IOSSpinner

Function IOSSpinner

packages/react/src/components/spinner.tsx:18–46  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"svg">)

Source from the content-addressed store, hash-verified

16const IOS_SPINNER_BLADES = 12;
17
18function IOSSpinner({ className, ...props }: React.ComponentProps<"svg">) {
19 return (
20 <svg
21 role="status"
22 aria-label="Loading"
23 viewBox="0 0 24 24"
24 className={cn("size-4 text-muted-foreground", className)}
25 {...props}
26 >
27 {Array.from({ length: IOS_SPINNER_BLADES }).map((_, i) => (
28 <rect
29 key={i}
30 x="11"
31 y="2"
32 width="2"
33 height="6"
34 rx="1"
35 fill="currentColor"
36 transform={`rotate(${(360 / IOS_SPINNER_BLADES) * i} 12 12)`}
37 style={{
38 animation: "ios-spinner-fade 1s linear infinite",
39 animationDelay: `${(i / IOS_SPINNER_BLADES) * 1 - 1}s`,
40 opacity: 0.25,
41 }}
42 />
43 ))}
44 </svg>
45 );
46}
47
48export { Spinner, IOSSpinner };

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected