UNPKG

426 BJavaScriptView Raw
1import _extends from "@babel/runtime/helpers/esm/extends";
2import React from 'react';
3import FormCheck from './FormCheck';
4var Switch = /*#__PURE__*/React.forwardRef(function (props, ref) {
5 return /*#__PURE__*/React.createElement(FormCheck, _extends({}, props, {
6 ref: ref,
7 type: "switch"
8 }));
9});
10Switch.displayName = 'Switch';
11Switch.Input = FormCheck.Input;
12Switch.Label = FormCheck.Label;
13export default Switch;
\No newline at end of file