UNPKG

@coveord/plasma-mantine

Version:

A Plasma flavoured Mantine theme

26 lines (25 loc) 779 B
import { jsx as _jsx } from "react/jsx-runtime"; import { Group, factory, useProps } from '@mantine/core'; import { useHeaderContext } from '../Header.context'; const defaultProps = { gap: 'sm' }; export const HeaderActions = factory((_props, ref)=>{ const props = useProps('HeaderActions', 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('actions', { className, style, classNames, styles, props }), ...others, children: children }); }); //# sourceMappingURL=HeaderActions.js.map