@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
27 lines (26 loc) • 816 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Group, factory, useProps } from '@mantine/core';
import { useHeaderContext } from '../Header.context.js';
const defaultProps = {
gap: 'xs'
};
export const HeaderRight = factory((_props, ref)=>{
const props = useProps('HeaderRight', defaultProps, _props);
const { gap, className, classNames, styles, style, children, vars, ...others } = props;
const ctx = useHeaderContext();
return /*#__PURE__*/ _jsx(Group, {
ref: ref,
gap: gap,
...ctx.getStyles('right', {
className,
style,
classNames,
styles,
props
}),
...others,
children: children
});
});
HeaderRight.displayName = 'Header.Right';
//# sourceMappingURL=HeaderRight.js.map