From 9056a2e89cdccc15ebd3b0ab491472b6ef5f5be6 Mon Sep 17 00:00:00 2001 From: Benjamin Lu Date: Tue, 1 Jul 2025 14:09:07 -0400 Subject: [PATCH] add AllowedToggleSwitchProps --- src/types/widgetPropTypes.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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' +>