import * as React from "react"; import { InputAppearance } from "../../shared/types/inputAppearance"; export interface SlideToggleProps extends React.HTMLProps { /** * Sets the current appearance of the input component. This defaults to InputAppearance.Standard, but supports `InputAppearance.Error` & `InputAppearance.Success` appearances as well. */ appearance?: InputAppearance; /** * Whether or not the input is checked. */ checked?: boolean; /** * Unique identifier used for the input element. */ id?: string; /** * The text or node content that appears next to the input. */ inputLabel: React.ReactNode | string; /** * Defaults to `true`, but can be set to `false` to visibly hide the content passed to `inputLabel`. The `inputLabel` should still be set even when hidden for accessibility support. */ showInputLabel?: boolean; /** * The value being toggled */ value?: string; /** * How the text content vertically aligns with the input. */ vertAlign?: "center" | "top"; /** * hintContent is text or a ReactNode that is displayed directly under the input with additional information about the expected input. */ hintContent?: React.ReactNode; /** * Sets the contents for validation errors. This will be displayed below the input element. Errors are only visible when the `TextInput` appearance is also set to `TextInputAppearance.Error`. */ errors?: React.ReactNode[]; } declare const SlideToggle: (props: React.PropsWithRef) => React.JSX.Element; export default SlideToggle;