UNPKG

@lunalytics/ui

Version:

React based component library created to be used in Lunalytics

15 lines (14 loc) 573 B
import { jsxs as l, jsx as s } from "react/jsx-runtime"; import { c as i } from "../../index-2w0W-O47.js"; import '../../assets/switch.css';const m = ({ children: a, color: t = "primary", ...c }) => { const e = i("luna-switch-slider", t); return /* @__PURE__ */ l("label", { className: "luna-switch", children: [ /* @__PURE__ */ s("input", { type: "checkbox", ...c }), /* @__PURE__ */ s("span", { className: e }), a && /* @__PURE__ */ s("span", { className: "luna-switch-text", children: a }) ] }); }; m.displayName = "Switch"; export { m as default };