Skip to main content
cngx-src documentation

CNGX_TEXT_SCALE

Tokenv0.1.0

InjectionToken<WritableSignal<CngxTextScaleValue>>

Description#

Holds the app-wide text-scale preference as a WritableSignal. Read it (and write it at runtime) through injectTextScale; install the root reflector with provideTextScale. Defaults to md (the identity rung) when no provideTextScale() is present so an injected signal is always available and unset markup is unchanged.

Type#

InjectionToken<WritableSignal<CngxTextScaleValue>>

Provided in#

'root'