Getting StartedInstallation and setup guides 5
LayoutWorkflow and structural layout components 7
OverlayModal and floating layer surfaces 3
FeedbackStatus, empty, progress, and loading placeholder patterns 5
FormInput and selection components 17
UtilityGeneral-purpose interface utilities 7
NavigationMenu surfaces and hierarchical actions 7

API reference

The components package re-exports tngBadge with the same generated badge-node behavior, so the API surface is the same directive contract available from @tailng-ui/components.

Component package export

Import TngBadge from @tailng-ui/components when you want to stay on the components surface. It keeps the same [tngBadge] selector and does not add extra wrapper DOM around your host.

Directive inputs

InputTypeDefaultNotes
tngBadgenumber | string | null | undefinednullPrimary badge content value.
tngBadgeDotbooleanfalseWhen true, renders dot-only mode and hides text content.
tngBadgeMaxnumber99Numeric cap. Values above max render as {max}+.
tngBadgeHiddenbooleanfalseTemporarily disables rendering without changing the value.
tngBadgePosition'top-end' | 'top-start' | 'bottom-end' | 'bottom-start''top-end'Anchor corner used for badge placement.
tngBadgeSize'sm' | 'md' | 'lg''md'Size data hook for badge spacing/typography contracts.
tngBadgeTone'danger' | 'info' | 'neutral' | 'success' | 'warning''danger'Semantic tone hook and default color pair.
tngBadgeVariant'solid' | 'soft' | 'outline''solid'Variant hook for contract-level styling.
tngBadgeOffsetXnumber | string | null | undefinednullHorizontal offset, for example 4 or '0.25rem'.
tngBadgeOffsetYnumber | string | null | undefinednullVertical offset.
tngBadgeClassstring | null | undefinednullAppends class names to generated badge node.
tngBadgeStyleRecord<string, string | number> | null | undefinednullInline style map merged onto the badge node.
tngBadgeDisabledbooleanfalseAdds data-disabled hook on the badge node.

Primitive foundation

The components export extends the headless Badge primitive. There are no extra outputs or imperative methods, and rendering still updates reactively from the bound inputs.

Use the dedicated headless Badge page when you want the primitive-only import surface or when you are documenting lower-level host ownership patterns.