Skip to main content
cngx-src documentation

CNGX_DENSITY

Tokenv0.1.0

InjectionToken<WritableSignal<CngxDensityValue>>

Description#

Holds the app-wide density preference as a WritableSignal. Read it (and write it at runtime) through injectDensity; install the root reflector with provideDensity. Defaults to comfortable when no provideDensity() is present so an injected signal is always available.

Type#

InjectionToken<WritableSignal<CngxDensityValue>>

Provided in#

'root'