UNPKG

@pagamio/frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

8 lines (7 loc) 574 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Loader as MantineLoader } from '@mantine/core'; import { cn } from '../../helpers'; const LoaderComponent = ({ size = 'xl', colorClassName = 'text-primary-500', variant = 'bars', className = '', }) => { return (_jsx("div", { className: cn('inline-block', className), children: _jsx("div", { className: colorClassName.startsWith('text-') ? colorClassName : 'text-' + colorClassName, children: _jsx(MantineLoader, { color: "currentColor", variant: variant, size: size }) }) })); }; export default LoaderComponent;