We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea8c694 commit 41657eaCopy full SHA for 41657ea
components/switch/index.tsx
@@ -31,6 +31,11 @@ const switchProps = {
31
autofocus: PropTypes.looseBool,
32
loading: PropTypes.looseBool,
33
checked: PropTypes.looseBool,
34
+ onChange: PropTypes.func,
35
+ onClick: PropTypes.func,
36
+ onKeydown: PropTypes.func,
37
+ onMouseup: PropTypes.func,
38
+ 'onUpdate:checked': PropTypes.func
39
};
40
41
export type SwitchProps = Partial<ExtractPropTypes<typeof switchProps>>;
0 commit comments