make Accordion component reusable #1124
Unanswered
angeloilardi
asked this question in
Q&A
Replies: 1 comment
-
I'm facing similar problem and I realize it works when you use server components instead. However, I need to use client components and I realize it works when you leave Panel out.
Not sure why. Anyone knows? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to set the content of the accordion panels via props to make the component reusable like so:
and then passing them as children
However, only the headings are showing up on the page. The content stays hidden instead of being collapsable. The toggle icon is also missing. What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions