How to implement the "expand all" functionality for an accordion using react? #881
Closed
jlara005
announced in
Announcements
Replies: 1 comment 1 reply
-
That button & functionality is already included in the default accordion, no extra work is needed. You just use the accordion web component in your JSX or HTML like this: <va-accordion>
<va-accordion-item>
<h3 slot="headline">First Item</h3>
Item body text
</va-accordion-item>
<va-accordion-item>
<h3 slot="headline">Second Item</h3>
Body text for different item
</va-accordion-item>
</va-accordion> One thing to be aware of is that this feature was added in version |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Does someone know how to implement the "expand all" functionality for an accordion using react? I don't see this in the examples.
https://design.va.gov/components/accordion
Beta Was this translation helpful? Give feedback.
All reactions