Replies: 1 comment 1 reply
-
|
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have an accordion with accordionTrigger which acts as a button. I want to add inside a button which removes the same accordion. but I get an error
the code:
How can I work around it? I do want to have a remove button, i tried to move it outside the accordiontrigger but the UI doesn't look good. only things that works is making the button of remove a span and adding onClick, but isn't it bad for accessibility and screen readers? I tried adding asChild for the accordionTrigger and it threw an error that react must have only one child.
Beta Was this translation helpful? Give feedback.
All reactions