Component props docs update (#1176)

This commit is contained in:
Elijah Ahianyo 2023-06-09 19:10:25 +00:00 committed by GitHub
parent 36abc3dbe5
commit 76a64bce1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -11,13 +11,13 @@ class Switch(ChakraComponent):
tag = "Switch"
# If true, the switch will be checked. You'll need to pass onChange to update its value (since it is now controlled)
# If true, the switch will be checked. You'll need to set an on_change event handler to update its value (since it is now controlled)
is_checked: Var[bool]
# If true, the switch will be disabled
is_disabled: Var[bool]
# If true and isDisabled is passed, the switch will remain tabbable but not interactive
# If true and is_disabled prop is set, the switch will remain tabbable but not interactive.
is_focusable: Var[bool]
# If true, the switch is marked as invalid. Changes style of unchecked state.

View File

@ -33,7 +33,7 @@ class TextArea(ChakraComponent):
# If true, the form control will be invalid.
is_invalid: Var[bool]
# If true, the form control will be readonly.
# If true, the form control will be read-only.
is_read_only: Var[bool]
# If true, the form control will be required.

View File

@ -10,7 +10,7 @@ class Box(ChakraComponent):
tag = "Box"
# The type element to render. You can specify as an image, video, or any other HTML element such as iframe.
# The type element to render. You can specify an image, video, or any other HTML element such as iframe.
element: Var[str]
# The source of the content.