mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-20 14:54:12 +00:00
add interface for ToggleSwitchProps
This commit is contained in:
18
src/types/widgetPropTypes.ts
Normal file
18
src/types/widgetPropTypes.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Type definitions for widget component props
|
||||
*/
|
||||
|
||||
export interface ToggleSwitchProps {
|
||||
modelValue: string | boolean
|
||||
defaultValue?: string | boolean
|
||||
name?: string
|
||||
trueValue?: any
|
||||
falseValue?: any
|
||||
invalid?: boolean
|
||||
disabled?: boolean
|
||||
readonly?: boolean
|
||||
tabindex?: number
|
||||
inputId?: string
|
||||
ariaLabelledby?: string
|
||||
ariaLabel?: string
|
||||
}
|
||||
Reference in New Issue
Block a user