UNPKG

@arolariu/components

Version:

🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡

29 lines (28 loc) • 1.03 kB
"use client"; import { jsx } from "react/jsx-runtime"; import { mergeProps } from "@base-ui/react/merge-props"; import { Switch } from "@base-ui/react/switch"; import { useRender } from "@base-ui/react/use-render"; import { cn } from "../../lib/utilities.js"; import switch_module from "./switch.module.js"; import * as __rspack_external_react from "react"; const switch_Switch = /*#__PURE__*/ __rspack_external_react.forwardRef((props, ref)=>{ const { className, render, ...otherProps } = props; return /*#__PURE__*/ jsx(Switch.Root, { ref: ref, ...otherProps, render: useRender({ defaultTagName: "button", render: render, props: mergeProps({ className: cn(switch_module.root, className) }, {}) }), children: /*#__PURE__*/ jsx(Switch.Thumb, { className: switch_module.thumb }) }); }); switch_Switch.displayName = "Switch"; export { switch_Switch as Switch }; //# sourceMappingURL=switch.js.map