import "./index.css"; import React, { InputHTMLAttributes } from "react"; export type ToggleSwitchSize = "md" | "sm"; interface ToggleSwitchBaseProps { "aria-invalid"?: never; "aria-label"?: never; "aria-required"?: never; /** Optional description text that appears below the toggle switch label. */ description?: string; required?: never; /** The size of the toggle switch. */ size?: ToggleSwitchSize; } interface ToggleSwitchWithVisibleLabel extends ToggleSwitchBaseProps { "aria-labelledby"?: never; /** When true, hides the visible label and sets it as aria-label on the input instead. */ hideLabel?: false; /** * The label content for the toggle switch. Required unless * `aria-labelledby` is provided to reference an external label. When * using non-string content (e.g. JSX), it must not contain * interactive elements. This includes native HTML elements such as * `` and `