@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
36 lines (35 loc) • 1.13 kB
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { factory, Tooltip, useProps, useStyles } from '@mantine/core';
import { InfoToken } from '../InfoToken/InfoToken.js';
import classes from './InputLabelInfo.module.css';
const defaultProps = {};
export const InputLabelInfo = factory((_props, ref)=>{
const props = useProps('InputLabelInfo', defaultProps, _props);
const { classNames, className, style, styles, unstyled, vars, children, attributes, ...others } = props;
const getStyles = useStyles({
name: 'InputLabelInfo',
props,
style,
styles,
unstyled,
attributes,
className,
classes,
classNames,
vars
});
return /*#__PURE__*/ _jsx(Tooltip, {
label: children,
...others,
children: /*#__PURE__*/ _jsx(InfoToken.Information, {
component: "span",
...getStyles('labelInfo', {
className,
style
}),
ref: ref,
onClick: (e)=>e.preventDefault()
})
});
});
//# sourceMappingURL=InputLabelInfo.js.map