@ray-js/components
Version:
Ray basic components
21 lines • 533 B
JavaScript
import * as React from 'react';
import clsx from 'clsx';
import { inlineStyle } from '@ray-js/framework-shared';
import { Label as RemaxLabel } from '@ray-js/adapter';
import styles from './index.module.less';
const Label = props => {
const {
id,
style,
className,
htmlFor,
children
} = props;
return /*#__PURE__*/React.createElement(RemaxLabel, {
for: htmlFor,
id: id,
style: inlineStyle(style),
className: clsx('ray-label', styles.label, className)
}, children);
};
export default Label;