@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
36 lines (35 loc) • 1.06 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Group, factory, useProps, useStyles } from '@mantine/core';
import clsx from 'clsx';
import classes from './StickyFooter.module.css';
const defaultProps = {
gap: 'xs',
justify: 'flex-end'
};
export const StickyFooter = factory((props, ref)=>{
const { borderTop, justify, gap, children, className, classNames, style, styles, unstyled, vars, ...others } = useProps('StickyFooter', defaultProps, props);
const getStyles = useStyles({
name: 'StickyFooter',
classes,
props,
className,
style,
classNames,
styles,
unstyled
});
const css = getStyles('root');
return /*#__PURE__*/ _jsx(Group, {
justify: justify,
gap: gap,
className: clsx(css.className, {
[classes.border]: !!borderTop
}),
style: css.style,
ref: ref,
...others,
children: children
});
});
StickyFooter.displayName = 'StickyFooter';
//# sourceMappingURL=StickyFooter.js.map