MCPcopy Create free account
hub / github.com/arctic-cli/interface / Spinner

Function Spinner

packages/ui/src/components/spinner.tsx:13–41  ·  view source on GitHub ↗
(props: { class?: string; classList?: ComponentProps<"div">["classList"] })

Source from the content-addressed store, hash-verified

11}))
12
13export function Spinner(props: { class?: string; classList?: ComponentProps<"div">["classList"] }) {
14 return (
15 <svg
16 viewBox="0 0 15 15"
17 data-component="spinner"
18 classList={{
19 ...(props.classList ?? {}),
20 [props.class ?? ""]: !!props.class,
21 }}
22 fill="currentColor"
23 >
24 <For each={squares}>
25 {(square) => (
26 <rect
27 x={square.x}
28 y={square.y}
29 width="3"
30 height="3"
31 rx="1"
32 style={{
33 animation: `${square.outer ? "pulse-opacity-dim" : "pulse-opacity"} ${square.duration}s ease-in-out infinite`,
34 "animation-delay": `${square.delay}s`,
35 }}
36 />
37 )}
38 </For>
39 </svg>
40 )
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected