UNPKG

@cap3/capitano-components

Version:
20 lines (19 loc) 536 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const react_emotion_1 = require("react-emotion"); const React = require("react"); const spin = react_emotion_1.keyframes ` from { transform: rotate(360deg); } to { transform: rotate(0deg); } `; const Wrapper = react_emotion_1.default("div")({ width: 40, height: 40, animation: `${spin} 1s linear infinite`, }); exports.Spinner = ({ children }) => (React.createElement(Wrapper, null, children)); //# sourceMappingURL=Spinner.js.map