Responsive tabs (tabs on desktop, accordion on mobile) #383
-
Hi All, I'm new in React and I need your help. I'm trying to build a responsive tab component and am almost done except for one thing. When the page loads on the small screen the first accordion panel is required to be expanded. I'm doing that by setting maxHeight to the element's scrolHeight, however, scrollHeight is always 0 at the first load. Please advise how to keep it open by default. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hey! I'm not sure I understand the issue, can you add some screenshots and ideally a live example? |
Beta Was this translation helpful? Give feedback.
-
Please use the following StackBlitz demo for reference. |
Beta Was this translation helpful? Give feedback.
Please use the following StackBlitz demo for reference.
Tabs Panel Demo