Show different logo/icon component depending on theme selected?

default discord avatar
plainnn
3 months ago
3

Is it possible to show a different logo/icon depending on whether the user has the light/dark theme selected?


  admin: {
    components: {
      graphics: {
        Logo, 
        Icon: Logo,
      },
  }
}


Something like

Icon: isDark ? Logo : LightLogo
Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.