mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 15:40:10 +00:00
add AllowedToggleSwitchProps
This commit is contained in:
@@ -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'
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user