UNPKG

phx-react

Version:

PHX REACT

7 lines 510 B
import React from 'react'; import { classNames } from '../types'; export const PHXSpinner = ({ color = 'indigo', className = 'w-5 h-5' }) => { const colorMaker = classNames(color === 'indigo' && 'text-indigo-600', color === 'gray' && 'text-gray-600'); return (React.createElement("div", { className: `animate-spin inline-block ${className} border-[3px] border-current border-t-transparent ${colorMaker} rounded-full`, role: 'status', "aria-label": 'loading1' })); }; //# sourceMappingURL=Spinner.js.map