Tag is a non-interactive label. value renders text or a number, including 0 and an intentional empty string. Only null or undefined enables projected content. tone and variant are independent. The icon input resolves a registered application icon; neuTagIcon supplies your own template and takes precedence when value is supplied. If value is absent, project the icon and label together.
The application supplies the Inputs and owns any surrounding interaction. This component has no model bindings or Outputs. Content projection and icon templates are documented separately where supported.
Keep a visible label and do not communicate category or status by color alone. Mark decorative SVG icons aria-hidden. Tag does not add button semantics, dismissal or keyboard focus; compose a separate accessible button if the surrounding interface needs an action.
Key
Action
โ
No component-level keyboard interaction; projected buttons and links keep their own keyboard behavior.
All public Inputs are extracted from the pinned Core package. Named types link to their definitions. Only the actual public projection areas and templates are listed below.
Inputs
Configure the component with [property]="value". Your application supplies these values; the component does not replace the state you pass in.
ng-content projects content into the component. TemplateRef inputs receive a template; ng-template directives identify templates with a typed context. A directive shared by an entrypoint is not necessarily a slot of this component.
Use tone for semantic intent, variant for the surface treatment and rounded for pill corners. Core semantic text/surface tokens define the palette. The custom icon template inherits currentColor; its dimensions are supplied by the application.
Specific tokens
This component uses shared theme tokens rather than dedicated component hooks.
Shared tokens used
Override these on a local wrapper to affect this example. An override on :root affects other components that use the same token.
Token
Purpose here
Other impact
Default / fallback
--neu-border
Normal control and cell borders
Shared by other Core consumers; scope the override.
rgba(15, 23, 42, 0.08)
--neu-error-bg
Background of invalid or danger states
Shared by other Core consumers; scope the override.
#fee2e2
--neu-error-text
Error text and danger outline/ghost Button text in both themes
Shared by other Core consumers; scope the override.
#991b1b
--neu-surface
Main field, header or control surface
Shared by other Core consumers; scope the override.
#ffffff
--neu-surface-2
Secondary surfaces and alternating rows
Shared by other Core consumers; scope the override.
#f1f5f9
--neu-text
Main text and inherited icon color
Shared by other Core consumers; scope the override.
#0f172a
--neu-text-muted
Secondary labels and supporting content
Shared by other Core consumers; scope the override.
#475569
--neu-font-sans
Text typography
Shared by other Core consumers; scope the override.