UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

13 lines (12 loc) 598 B
import { jsx as _jsx } from "react/jsx-runtime"; import * as React from 'react'; import { useDefaultProps } from "../theme/useDefaultProps.js"; import { block } from "../utils/cn.js"; import "./Spin.css"; const b = block('spin'); export const Spin = React.forwardRef(function Spin(rawProps, ref) { const props = useDefaultProps('Spin', rawProps); const { size = 'm', style, className, qa } = props; return (_jsx("div", { ref: ref, style: style, className: b({ size }, className), "data-qa": qa, children: _jsx("div", { className: b('inner') }) })); }); //# sourceMappingURL=Spin.js.map