Theme selector
Last updated
Last updated
CSPR.click navigation bar has two themes: light and dark. You can use one or the other. And if your application also has light and dark modes, you can add to the navigation bar a theme selector to let the user easily change between both.
In your application, define your default theme and a callback function to handle theme change. For example:
Then, add these two values to the UI initialization object: