Skip to main content
cngx-src documentation

withTagDefaults

Functioncommon/display

projects/common/display/tag/config/features.ts

Description#

Override the default CngxTag input values (variant, color, size, truncate, maxWidth). Per-instance bindings still win over the cascade — this only sets the fallback per directive.

provideTagConfig(
  withTagDefaults({ variant: 'subtle', size: 'sm' }),
);

Signature#

withTagDefaults(payload: NonNullable)

Parameters#

@parampayloadNonNullable

Returns#

CngxTagConfigFeature