@cerberus-design/react
Version:
The Cerberus Design React component library.
22 lines (20 loc) • 680 B
JavaScript
import {
SwitchParts
} from "./chunk-RS6DS6RS.js";
import {
SwitchIndicator
} from "./chunk-CAZ3EICD.js";
// src/components/switch/switch.tsx
import { jsx, jsxs } from "react/jsx-runtime";
function Switch(props) {
const { children, ...rootProps } = props;
return /* @__PURE__ */ jsxs(SwitchParts.Root, { ...rootProps, children: [
/* @__PURE__ */ jsx(SwitchParts.Control, { children: /* @__PURE__ */ jsx(SwitchParts.Thumb, { children: /* @__PURE__ */ jsx(SwitchIndicator, {}) }) }),
/* @__PURE__ */ jsx(SwitchParts.Label, { children }),
/* @__PURE__ */ jsx(SwitchParts.HiddenInput, {})
] });
}
export {
Switch
};
//# sourceMappingURL=chunk-PZELEMIY.js.map