UNPKG

phx-react

Version:

PHX REACT

8 lines 616 B
import React from 'react'; import { classNames } from '../types'; export var PHXSpinner = function (_a) { var _b = _a.color, color = _b === void 0 ? 'indigo' : _b, _c = _a.className, className = _c === void 0 ? 'w-5 h-5' : _c; var colorMaker = classNames(color === 'indigo' && 'text-indigo-600', color === 'gray' && 'text-gray-600'); return (React.createElement("div", { className: "animate-spin inline-block ".concat(className, " border-[3px] border-current border-t-transparent ").concat(colorMaker, " rounded-full"), role: 'status', "aria-label": 'loading1' })); }; //# sourceMappingURL=Spinner.js.map