Getting StartedInstall and bootstrap headless foundations 4
LayoutHeadless structural primitives for expandable and container patterns 6
OverlayHeadless modal and floating layer behavior 3
FeedbackHeadless notification and status communication patterns 5
FormHeadless input and selection contracts 17
UtilityReusable action, identity, and clipboard behavior 6
NavigationHeadless trails, trees, menus, and command surfaces 7

API reference

Headless input is primitive-first. Attach directives to native controls, use tngInputGroup for grouped composition, and style through slot/state attributes while the primitive owns the base structural layout.

tngInput (directive)

Attach to a native input[tngInput]. Textarea usage is documented on the dedicated Textarea page.

Directive attachment

html
<input tngInput type="text" />
PropertyTypeDetails
ariaLabel, ariaLabelledby, ariaDescribedBystring | nullReflected to native ARIA attributes with whitespace-normalization.
ariaInvalid, ariaRequiredboolean-likeARIA/state hooks layered on top of the native control.
disabled, readonly, requiredboolean-likeReflects the native state and emits matching data attributes.
data-slot="input"output attributeStable styling hook for the control itself.

tngInputGroup (primitive shell)

Wraps a single projected tngInput control with optional tngPrefix/tngSuffix slots and provides the base structural layout for leading, control, and trailing regions.

Grouped search input

A headless search field with a search-icon prefix and a clear-action suffix.

Grouped search input (Plain-CSS)

FeatureTypeDetails
Projected control contracttngInput projection ruleExpects exactly one projected tngInput control.
Structural layoutBuilt-in group behavior Provides the base horizontal layout for optional leading, flexible control, and optional trailing regions.
Conditional wrappersRender behavior Leading/control/trailing wrappers are generated by the primitive. Leading and trailing regions render only when matching slot content exists; the control region always renders.
data-focusedState attributeApplied on group host while any projected element is focused.
data-disabled, data-invalid, data-readonlyMirrored state attributes Reflected from the projected control onto the group host for container-level styling.
data-slot="input-group"Output attributeStable styling hook for the group host.
data-slot="input-group-leading", data-slot="input-group-control", data-slot="input-group-trailing"Output attributes Stable structural hooks for the generated group regions. These regions are laid out by the primitive and may be styled optionally by consumers.

Consumers should style the visual appearance of the group surface and projected content. The primitive owns the internal leading/control/trailing layout, so deep selectors are not required for standard grouped composition.

Slot directives

DirectiveApplies toAddsDetails
tngPrefixProjected leading elementdata-slot="input-leading"Marks prefix/adornment content projected into the group’s leading region.
tngSuffixProjected trailing elementdata-slot="input-trailing"Marks suffix/action content projected into the group’s trailing region.