mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 07:21:20 +00:00
44 lines
927 B
TypeScript
44 lines
927 B
TypeScript
import React, { SVGProps } from "react";
|
|
|
|
export function Loading({
|
|
width = 24,
|
|
height = 24,
|
|
dur = "0.75s",
|
|
}: SVGProps<SVGElement>): JSX.Element {
|
|
return (
|
|
<svg
|
|
className="fill-current"
|
|
width={width}
|
|
height={height}
|
|
viewBox="0 0 24 24"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<circle cx="4" cy="12" r="3">
|
|
<animate
|
|
id="a"
|
|
begin="0;b.end-0.25s"
|
|
attributeName="r"
|
|
dur={dur}
|
|
values="3;.2;3"
|
|
/>
|
|
</circle>
|
|
<circle cx="12" cy="12" r="3">
|
|
<animate
|
|
begin="a.end-0.6s"
|
|
attributeName="r"
|
|
dur={dur}
|
|
values="3;.2;3"
|
|
/>
|
|
</circle>
|
|
<circle cx="20" cy="12" r="3">
|
|
<animate
|
|
id="b"
|
|
begin="a.end-0.45s"
|
|
attributeName="r"
|
|
dur={dur}
|
|
values="3;.2;3"
|
|
/>
|
|
</circle>
|
|
</svg>
|
|
);
|
|
}
|