diff --git a/src/types/widgetPropTypes.ts b/src/types/widgetPropTypes.ts index b8b0d8a06..7c16dbe41 100644 --- a/src/types/widgetPropTypes.ts +++ b/src/types/widgetPropTypes.ts @@ -16,3 +16,23 @@ export interface ToggleSwitchProps { ariaLabelledby?: string ariaLabel?: string } + +/** + * Allowed ToggleSwitch props that can be passed through widget options + * (excludes style-related props that are filtered out) + */ +export type AllowedToggleSwitchProps = Pick< + ToggleSwitchProps, + | 'modelValue' + | 'defaultValue' + | 'name' + | 'trueValue' + | 'falseValue' + | 'invalid' + | 'disabled' + | 'readonly' + | 'tabindex' + | 'inputId' + | 'ariaLabelledby' + | 'ariaLabel' +>