-
|
I want to make radio buttons visible in Accordion for things like "Payment method" selection in a form with additonal fields expanded for each selected method, but placing radio input inside https://play.tailwindcss.com/MQPpTlUL1J Please advice. <div class="join join-vertical w-full border border-base-300">
<div class="collapse join-item border-b border-base-300">
<div class="collapse-title flex items-center gap-4 font-semibold">
<input type="radio" name="my-accordion-1" checked="checked" />
How do I create an account?
</div>
<div class="collapse-content ml-8 text-sm">
<p>Click the "Sign Up" button in the top right corner and follow the registration process.</p>
</div>
</div>
<div class="collapse join-item border-b border-base-300">
<div class="collapse-title flex items-center gap-4 font-semibold">
<input type="radio" name="my-accordion-1" />
I forgot my password. What should I do?
</div>
<div class="collapse-content ml-8 text-sm">
<p>Click on "Forgot Password" on the login page and follow the instructions sent to your email.</p>
</div>
</div>
</div> |
Beta Was this translation helpful? Give feedback.
Answered by
pdanpdan
Jan 12, 2026
Replies: 1 comment 1 reply
-
|
Please update the play.tailwind to match your code and update the url here |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://play.tailwindcss.com/HYm851FUW3?file=css
For the first version
tabindexon.collapse- it does not matter the valueYou get much better results with some fake radio buttons that match the normal ones used as in the default example for collapse (version 2)