Dark Mode
Enable Dark Mode on all Components
To enable Dark Mode on all Components, call the client.setDarkMode(true)
let client = useVeltClient();
client.setDarkMode(true);
Enable Dark Mode on individual Components
To enable Dark Mode on individual components, set the darkMode
attribute to true
.
<VeltComments darkMode={true} />
<VeltPresence darkMode={true} />
<VeltCommentsSidebar darkMode={true} />
<VeltHuddle darkMode={true} />
<VeltArrows darkMode={true} />
API Methods:
commentElement.enableDarkMode()
commentElement.disableDarkMode()
Was this page helpful?