UNPKG

@dr.pogodin/react-utils

Version:

Collection of generic ReactJS components and utils

10 lines 1 kB
import themed from"@dr.pogodin/react-themes";const defaultTheme={"context":"eVCJf-","ad":"CU2B6H","hoc":"_1V5iVx","bouncing":"h6ZYmQ","container":"VDVI-X","circle":"Y2rzbL"};import{jsx as _jsx,jsxs as _jsxs}from"react/jsx-runtime";/** * Throbber is an "action in progress" indicator, which renders * three bouncing circles as a simple pending activity indicator, * and can be further themed to a certain degree. * @param {object} [props] Component properties. * @param {ThrobberTheme} [props.theme] _Ad hoc_ theme. * @param {...any} [props....] * [Other theming properties](https://www.npmjs.com/package/@dr.pogodin/react-themes#themed-component-properties) */const Throbber=({theme})=>/*#__PURE__*/_jsxs("span",{className:theme.container,children:[/*#__PURE__*/_jsx("span",{className:theme.circle}),/*#__PURE__*/_jsx("span",{className:theme.circle}),/*#__PURE__*/_jsx("span",{className:theme.circle})]});export default themed(Throbber,"Throbber",defaultTheme); //# sourceMappingURL=index.js.map