svg-loaders-react
Version:
React implementation of the SVG Loaders library by Sam Herbert
30 lines (27 loc) • 709 B
JavaScript
import React from 'react';
const Oval = ({
className = undefined, // String
...props
}) => (
<svg width={38} height={38} stroke="#fff" viewBox="0 0 38 38" className={`svg-loaders-svg${className ? ` ${className}` : ''}`} {...props}>
<g
transform="translate(1 1)"
strokeWidth={2}
fill="none"
fillRule="evenodd"
>
<circle strokeOpacity={0.5} cx={18} cy={18} r={18} />
<path d="M36 18c0-9.94-8.06-18-18-18">
<animateTransform
attributeName="transform"
type="rotate"
from="0 18 18"
to="360 18 18"
dur="1s"
repeatCount="indefinite"
/>
</path>
</g>
</svg>
);
export { Oval };