13 lines
400 B
JavaScript
13 lines
400 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
import React from 'react';
|
|
import FormCheck from './FormCheck';
|
|
var Switch = React.forwardRef(function (props, ref) {
|
|
return React.createElement(FormCheck, _extends({}, props, {
|
|
ref: ref,
|
|
type: "switch"
|
|
}));
|
|
});
|
|
Switch.displayName = 'Switch';
|
|
Switch.Input = FormCheck.Input;
|
|
Switch.Label = FormCheck.Label;
|
|
export default Switch; |