-
-
Couldn't load subscription status.
- Fork 2.5k
-
I've been working on a way to have two buttons; [Expand All] and [Collapse All], for the Accordion. Each button does exactly what it's labeled. I'm "kinda" working with manipulated the classList via a useRef hook and adding the show class to each accordion-collapse, but that approach seemed hacky and has it's problems.
Is there a something out of the box that does this and I'm just missing it? If not, any ideas on how I can achieve this?
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment