UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

15 lines (14 loc) 404 B
import { jsx as _jsx } from "react/jsx-runtime"; import { forwardRef } from "react"; import Checkbox from "../Checkbox/Checkbox.js"; /** * Alias for `<Checkbox type="switch">` */ const Switch = /*#__PURE__*/ forwardRef((props, ref)=>{ return /*#__PURE__*/ _jsx(Checkbox, { ...props, ref: ref, type: "switch" }); }); Switch.displayName = "Switch"; export default Switch;