InitColorSchemeScriptProps

Properties

Link copied to clipboard
abstract external var attribute: Union?

DOM attribute for applying color scheme.

Link copied to clipboard
abstract external var colorSchemeNode: String?

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

Link copied to clipboard
abstract external var colorSchemeStorageKey: String?

localStorage key used to store colorScheme.

Link copied to clipboard
abstract external var defaultDarkColorScheme: String?

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

Link copied to clipboard
abstract external var defaultLightColorScheme: String?

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

Link copied to clipboard
abstract external var defaultMode: Union?

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

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

localStorage key used to store mode.

Link copied to clipboard
abstract external var nonce: String?

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

Functions

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