Skip to content

pantoken-root / formats/scope/src / CreateScopeOptions

Interfáhta: CreateScopeOptions ​

Behta

Valgáid aggregate buohccehis.

Extendera ​

Properties ​

theme? ​

optional theme?: string

Behta

Téma-gova, d.b. "rebrand". Matchejuvvon dii [data-pantoken-theme="…"].

Eanetge definerejuvvon ​

ScopeConfig.theme


scheme? ​

optional scheme?: Scheme

Behta

Fastuheapme čalbmi-skema. Ávžžon go don leat áiggodit OS preferenssa mielde.

Eanetge definerejuvvon ​

ScopeConfig.scheme


color? ​

optional color?: string

Behta

Ovdas branda čalbmi-gova.

Eanetge definerejuvvon ​

ScopeConfig.color


instanceId? ​

optional instanceId?: string

Behta

Identifier distinguishing this pantoken instance from others on the page. Scopes, storage keys, and frame messages are all keyed by it.

Ovdalášuvvat ​

ScopeConfig.instanceId


boundary? ​

optional boundary?: boolean

Behta

Stop ancestor resolution at this element, so nothing outside can theme what is inside. Use for a preview pane that must not inherit the surrounding app's theme.


persist? ​

optional persist?: boolean

Behta

Persist and restore state. Pass false to keep the scope in-memory only (default true).


storage? ​

optional storage?: Pick<Storage, "getItem" | "setItem"> | null

Behta

Storage backend (default localStorage, silently skipped when unavailable).