UNPKG

@smitch/fluid

Version:

A Next/React ui-component libray.

7 lines (6 loc) 726 B
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; var Pulse = function (_a) { var width = _a.width; return (_jsx("div", { className: "spinner", children: _jsx("svg", { viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg', width: width, height: width, children: _jsxs("circle", { cx: '12', cy: '12', r: '0', stroke: 'currentColor', fill: 'currentColor', children: [_jsx("animate", { attributeName: 'r', calcMode: 'spline', dur: '1.2s', values: '0;11', keySplines: '.52,.6,.25,.99', repeatCount: 'indefinite' }), _jsx("animate", { attributeName: 'opacity', calcMode: 'spline', dur: '1.2s', values: '1;0', keySplines: '.52,.6,.25,.99', repeatCount: 'indefinite' })] }) }) })); }; export default Pulse;