How to pass Checkbox disabled state directly to the input element? #3289
Unanswered
berkerdemirer
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I am using daisy-ui, tailwind and headless ui for my project.
When I pass disabled prop to the Checkbox, I see the element like this:
<input class="ui-checkbox ui-checkbox-primary ui-checkbox-md" id="headlessui-checkbox-:r0:" role="checkbox" aria-checked="true" tabindex="0" data-headlessui-state="checked disabled" data-checked="" aria-disabled="true" data-disabled="true">
But it seems that for correct style to set from daisy ui, I actually need to pass this disabled as prop to the input itself like <input ... disabled/>. Is this somehow possible?
Beta Was this translation helpful? Give feedback.
All reactions