InitColorSchemeScriptProps

Properties

Link copied to clipboard
abstract var attribute: Union?

DOM attribute for applying color scheme.

Link copied to clipboard
abstract var colorSchemeNode: String?

The node (provided as string) used to attach the color-scheme attribute.

Link copied to clipboard

localStorage key used to store colorScheme.

Link copied to clipboard

The default color scheme to be used on the dark mode.

Link copied to clipboard

The default color scheme to be used on the light mode.

Link copied to clipboard
abstract var defaultMode: Union?

The default mode when the storage is empty (user's first visit).

Link copied to clipboard
abstract var key: Key?
Link copied to clipboard
abstract var modeStorageKey: String?

localStorage key used to store mode.

Link copied to clipboard
abstract var nonce: String?

Nonce string to pass to the inline script for CSP headers.

Functions

Link copied to clipboard
open inline operator fun Props?.unaryPlus()