(props: { class?: string; classList?: ComponentProps<"div">["classList"] })
| 11 | })) |
| 12 | |
| 13 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected