UNPKG

@ray-js/components

Version:

Ray basic components

21 lines 534 B
import * as React from 'react'; import clsx from 'clsx'; import { inlineStyle } from '@ray-js/framework-shared'; import { Label as RemaxLabel } from '@ray-core/wechat'; 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;