import { BaseSelectOption, Nullable, SelectOptionValue } from '../../types/index.js'; import { SharedFormElementProps } from '../OnyxFormElement/types.js'; import { OnyxFormElementV2Props } from '../OnyxFormElementV2/types.js'; export type OnyxSwitchProps = Omit, "value" | "label"> & Pick & Pick & { /** * Whether the switch should be checked or not. */ modelValue?: Nullable; /** * The text label displayed directly next to the switch. * Displays different texts based on the checked state of the switch. */ valueLabel?: { truthy: string; falsy: string; }; };