add AllowedToggleSwitchProps

This commit is contained in:
Benjamin Lu
2025-07-01 14:09:07 -04:00
parent 79b5c75b85
commit 9056a2e89c

View File

@@ -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'
>