Skip to content

@maxhealth.tech/prefab / renderer / ThemeToggleOptions

Interface: ThemeToggleOptions

Defined in: renderer/theme.ts:13

Properties

position?

ts
optional position?: "top-right" | "top-left" | "bottom-right" | "bottom-left";

Defined in: renderer/theme.ts:15

Position of the toggle inside the prefab root. Default: 'top-right'.


storageKey?

ts
optional storageKey?: string;

Defined in: renderer/theme.ts:17

localStorage key for persistence. Default: 'prefab-theme'.


syncDocument?

ts
optional syncDocument?: boolean;

Defined in: renderer/theme.ts:19

Whether to sync with document.documentElement[data-theme]. Default: true.

Released under the MIT License.