ForgeComponents
en

Components

j-AutoDarkMode

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20
  • singleton
  • readonly

The component automatically applies dark mode according to the operation system.

Configuration:

  • exec {String} optional, a link to the function(is_darkmode)

Use it with <ui-component name="autodarkmode">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

example.html
<ui-component name="autodarkmode"></ui-component>