import React, { InputHTMLAttributes, forwardRef } from "react";
import classNames from "classnames";
import { Field, FieldProps } from ":/components/Forms/Field";
export type SwitchOnlyProps = {
label?: string;
labelSide?: "left" | "right";
};
export type SwitchProps = InputHTMLAttributes &
FieldProps &
SwitchOnlyProps;
export const Switch = forwardRef(
({ label, labelSide = "left", ...props }: SwitchProps, ref) => {
const {
compact,
fullWidth,
rightText,
state,
text,
textItems,
...inputProps
} = props;
return (
);
},
);