# Dash dbc.Accordion

**URL:** <https://community.plotly.com/t/dash-dbc-accordion/58170>\
**Category:** Dash Python\
**Created:** [November 5, 2021, 11:35am UTC](https://community.plotly.com/t/dash-dbc-accordion/58170 "2021-11-05T11:35:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Varlor](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@Varlor](https://community.plotly.com/u/Varlor)\
**Post date:** [November 5, 2021, 11:35am UTC](https://community.plotly.com/t/dash-dbc-accordion/58170/1 "2021-11-05T11:35:06Z")

</div>

Hey there, im testing the new accordion component. Previously i did it with Buttons and Collapse. But i wonder if there is any possibility to keep one accordion item open if clicking to another? Are AccordionItems compatible with paternmatch ids? I want to trigger a function and route the output directly to the items children. It also seems like i can only put strings inside the items content. Is this true? Because i got this exception if i put anything else than strings to the items children, like the Button and html.P mentioned the documentary: [Accordion - dbc docs](https://dash-bootstrap-components.opensource.faculty.ai/docs/components/accordion/:)

`Objects are not valid as a React child (found: object with keys {namespace, props, type}). If you meant to render a collection of children, use an array instead.`

@tcbegley

Best regards

---

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [November 5, 2021, 1:28pm UTC](https://community.plotly.com/t/dash-dbc-accordion/58170/2 "2021-11-05T13:28:33Z")

</div>

Hi @Varlor

This was fixed recently, please try upgrading to `dash-bootstrap-components` v1.0.1rc1

---

<div class="post-metadata">

**Author:** ![Varlor](https://avatars.discourse-cdn.com/v4/letter/v/d2c977/32.png) [@Varlor](https://community.plotly.com/u/Varlor)\
**Post date:** [November 5, 2021, 1:39pm UTC](https://community.plotly.com/t/dash-dbc-accordion/58170/3 "2021-11-05T13:39:45Z")

</div>

Perfect. Thank you very much!! Upgraded it and the other compoents are now possible. Any ideas to my other question? Best regards!
