Added type definition for disabled prop (#4546)

pull/4570/head
navedqb 2023-10-05 19:03:45 +05:30 committed by GitHub
parent fe3387c89b
commit 544aa37841
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

View File

@ -101,6 +101,11 @@ export interface InputSwitchProps {
* @defaultValue false * @defaultValue false
*/ */
falseValue?: any; falseValue?: any;
/**
* When present, it specifies that the component should be disabled.
* @defaultValue false
*/
disabled?: boolean | undefined;
/** /**
* Identifier of the underlying input element. * Identifier of the underlying input element.
*/ */

View File

@ -29384,6 +29384,14 @@
"default": "false", "default": "false",
"description": "Value in unchecked state." "description": "Value in unchecked state."
}, },
{
"name": "disabled",
"optional": true,
"readonly": false,
"type": "boolean",
"default": "false",
"description": "When present, it specifies that the component should be disabled."
},
{ {
"name": "inputId", "name": "inputId",
"optional": true, "optional": true,