NEURALNG

PUBLIC CONTRACT

Tag API

Signal inputs, a controlled semantic event and typed visual slots.

Inputs

InputTypeDefaultPurpose
valuestring | null | undefinednull Text label; absence renders projected content.
severityNeuralTagSeverity'neutral' Semantic visual treatment.
sizeNeuralTagSize'medium' Small, medium or large density preset.
roundedbooleantrue Uses the pill-shaped corner token.
iconClassstring | nullnull Prepends an icon class.
iconAriaLabelstring | nullnull Makes the icon meaningful instead of decorative.
removablebooleanfalse Adds an accessible removal control.
disabledbooleanfalse Disables removal and exposes aria-disabled.
removeLabelstring | nullnull Overrides the generated remove accessible name.
removeIconClassstring'nt nt-x' Removal control icon class.
unstyledbooleanfalse Removes NeuralNg visual classes.
tagClassstring'' Consumer class merged onto the root.
classesNeuralTagClasses{} Typed classes for every visual slot.

Outputs

removedNeuralTagRemove

Emits the value and original pointer event; ownership remains controlled.

Typed class slots

rooticonlabelcontentremoveButtonremoveIcon

Public types

NeuralTagSeverity

'primary' | 'secondary' | 'neutral' | 'info' | 'success' | 'warning' | 'error'

NeuralTagSize

'small' | 'medium' | 'large'

NeuralTagRemove

{ value: string | null; originalEvent: MouseEvent }

NeuralTagClasses

Typed root, icon, label, content and removal slots.

Legacy alias

TagComponent remains exported for compatibility but is deprecated. New application and generated code must import NeuralTag.