import type { MattrixwvSwitchProps } from "$/types/InputTypes"; import { Field, Label, Switch } from "@headlessui/react"; import clsx from "clsx"; import { forwardRef } from "react"; import { Fragment } from "react/jsx-runtime"; const MattrixwvSwitch = forwardRef(({ id, className, knobClassName, size = "sm", wide, name, value, defaultChecked, checked, onChange, disabled, children, offText, onText }, ref ) => { return ( { offText && {offText} } { onText && {onText} } ); }); MattrixwvSwitch.displayName = "MattrixwvSwitch"; export default MattrixwvSwitch;