import type * as React from 'react'; import type { IPropertyPaneFieldTooltipProps } from '../propertyPaneField/IPropertyPaneField'; /** * PropertyPaneToggle component props. * * @public */ export interface IPropertyPaneToggleProps { /** * A key to uniquely identify the field. */ key?: string | number; /** * A label for the toggle. */ label?: string; /** * A label for the toggle. * * @internal */ _label?: React.ReactElement; /** * Text to display when toggle is ON. */ onText?: string; /** * Test display when toggle is OFF. */ offText?: string; /** * Checked state of the toggle. * If you are maintaining state yourself, set this property accordingly. */ checked?: boolean; /** * Disabled state of the toggle. */ disabled?: boolean; /** * Optional onAriaLabel flag. Text for screen-reader to announce when toggle is ON. */ onAriaLabel?: string; /** * Optional offAriaLabel flag. Text for screen-reader to announce when toggle is OFF. */ offAriaLabel?: string; /** * Optional ariaLabel flag. Text for screen-reader to announce regardless of toggle state. */ ariaLabel?: string; /** * Optional data-automation-id. automation id string for Toggle control. * * @internal */ dataAutomationId?: string; /** * Whether the label (not the onText/offText) should be positioned inline with the toggle control. * Left (right in RTL) side when on/off text provided VS right (left in RTL) side when no on/off text. * Caution: when not providing on/off text user may get confused in differentiating the on/off states of the toggle. */ inlineLabel?: boolean; /** * An optional callback that executes after the onChange method has updated the properties. * This can be useful for telemetry, such as tracking user engagement. * * @internal */ postOnChangeCallback?: () => void; /** * Props for toggle's tooltip button, which appears next to the label. * * @internal */ tooltipProps?: IPropertyPaneToggleTooltipProps; /** * Props for toggle's tooltip, which appears on toggle hover when the control is disabled. * * @internal */ disabledToggleControlTooltipProps?: IPropertyPaneToggleTooltipProps; } /** * Props for tooltip that appears when the info button is clicked. * * @internal */ export interface IPropertyPaneToggleTooltipProps extends IPropertyPaneFieldTooltipProps { } //# sourceMappingURL=IPropertyPaneToggle.d.ts.map