Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Sidebar collapsed persistent


I didn't find in documentation, there is any change to do Sidebar work like themeMode?
Thanks


Text formatting options
Submit

Replies (1)


Hi, unfortunately, persistent collapsed sidebars are not typically controlled in the same way as themeMode out of the box. However, you can achieve this functionality by saving the sidebar's state (collapsed or expanded) to localStorage or another persistent storage method. Then, on page load, you can check the saved state and adjust the sidebar accordingly. If you're using a framework like React, you could set up a context or useState to manage this state across components.


Text formatting options
Submit
Text formatting options
Submit