We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.1.12
Property isRequired does not exist on Switch component
No response
add isRequired property to Switch component
Switch have isRequired property
MacOS Ventura
Chrome
The text was updated successfully, but these errors were encountered:
I don't see this attribute in the source code
Sorry, something went wrong.
Hey @st1ng7ay the Switch component is not meant to be required by concept, however, you can apply your own validations using the controlled way https://nextui.org/docs/components/switch#controlled
controlled
We adhere to react-aria implementation which doesn't have "isRequired" support, therefore I'm going to close this issue
there are isRequired prop in switch props docs :
https://nextui.org/docs/components/switch#switch-props
A couple members on my team ran into this bug as well. Docs are still not up-to-date.
No branches or pull requests
NextUI Version
2.1.12
Describe the bug
Property isRequired does not exist on Switch component
Your Example Website or App
No response
Steps to Reproduce the Bug or Issue
add isRequired property to Switch component
Expected behavior
Switch have isRequired property
Screenshots or Videos
Operating System Version
MacOS Ventura
Browser
Chrome
The text was updated successfully, but these errors were encountered: