UNPKG

@ray-js/components

Version:

Ray basic components

21 lines 709 B
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; const _excluded = ["className", "style", "id"]; import clsx from 'clsx'; import * as React from 'react'; import { inlineStyle } from '@ray-js/framework-shared'; import { Radio as RemaxRadio } from '@ray-js/adapter'; const Radio = props => { const { className, style, id } = props, restProps = _objectWithoutProperties(props, _excluded); return /*#__PURE__*/React.createElement(RemaxRadio, _extends({ id: id, style: inlineStyle(style), className: clsx('ray-radio', className) }, restProps)); }; export default Radio;