UNPKG

@intility/bifrost-react

Version:

React library for Intility's design system, Bifrost.

28 lines 659 B
import { c as _c } from "react-compiler-runtime"; import { forwardRef } from "react"; import Checkbox from "../Checkbox/Checkbox.js"; import { jsx as _jsx } from "react/jsx-runtime"; /** * Alias for `<Checkbox type="switch">` * * @see https://bifrost.intility.com/react/switch */ const Switch = /*#__PURE__*/forwardRef((props, ref) => { const $ = _c(3); let t0; if ($[0] !== props || $[1] !== ref) { t0 = /*#__PURE__*/_jsx(Checkbox, { ...props, ref: ref, type: "switch" }); $[0] = props; $[1] = ref; $[2] = t0; } else { t0 = $[2]; } return t0; }); Switch.displayName = "Switch"; export default Switch;