npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@tailng-ui/cdk

v0.42.0

Published

Headless behavior and accessibility primitives for TailNG UI, including focus/navigation, selection/typeahead, and overlay runtime orchestration for Angular 21+.

Readme

@tailng-ui/cdk

Headless behavior and accessibility primitives for TailNG UI, including focus/navigation, selection/typeahead, and overlay runtime orchestration for Angular 21+.

PROD - Release & Deploy (Tailng) NPM Version License: MIT

@tailng-ui/cdk provides headless behavior primitives used by TailNG UI components.
It focuses on accessibility, interaction logic, and runtime orchestration with no visual styling.

Why this package

@tailng-ui/cdk provides reusable building blocks for:

  • Accessible keyboard and focus behavior.
  • Selection and typeahead state management.
  • Overlay stacking, outside interaction, portal, and scroll-lock orchestration.
  • SSR-friendly runtime utilities and platform-safe event handling.

The package is framework-friendly and intentionally style-agnostic.

Installation

pnpm

pnpm add @tailng-ui/cdk tslib

yarn

yarn add @tailng-ui/cdk tslib

npm

npm install @tailng-ui/cdk tslib

tslib is a peer dependency.

If you consume @tailng-ui/primitives or @tailng-ui/components, install @tailng-ui/cdk explicitly as well. The higher layers no longer bundle the CDK transitively.

Package design principles

  • Headless first: no CSS classes, tokens, or visual opinions.
  • Composable APIs: small primitives that can be combined.
  • A11y-oriented: keyboard/focus/selection contracts are first-class.
  • Runtime-safe: browser-dependent behavior is isolated behind explicit runtime hooks.

Public entry points

Root

import { createOverlayRuntime } from '@tailng-ui/cdk';

The root export re-exports:

  • @tailng-ui/cdk/a11y
  • @tailng-ui/cdk/collections
  • @tailng-ui/cdk/core
  • @tailng-ui/cdk/overlay
  • @tailng-ui/cdk/overlay/runtime

Subpath exports

Use subpaths for better bundle boundaries and API clarity:

  • @tailng-ui/cdk/a11y
  • @tailng-ui/cdk/collections
  • @tailng-ui/cdk/core
  • @tailng-ui/cdk/overlay
  • @tailng-ui/cdk/runtime (package export alias)

Module overview

a11y

Behavior primitives for accessible interactions, including:

  • Active descendant
  • Disclosure
  • Focus scope and focusable utilities
  • Grid/list navigation
  • Roving focus
  • Listbox helpers

collections

State and data interaction primitives, including:

  • Selection model
  • Tree model
  • Typeahead

core

Low-level utilities, including:

  • ID generation helpers
  • Keyed timer
  • Platform/browser utilities

overlay

Overlay primitives and contracts, including:

  • Backdrop
  • Focus handoff
  • Layer stack
  • Modal isolation
  • Open/close delay
  • Outside interaction
  • Portal
  • Positioning
  • Scroll lock

overlay/runtime

Runtime composition APIs that wire overlay interaction and stack behavior together.

  • createOverlayRuntime(...)
  • createOverlayScrollLockManager(...)
  • Overlay instance helpers/types

Quick example

import { createOverlayRuntime } from '@tailng-ui/cdk/overlay/runtime';

const runtime = createOverlayRuntime({
  documentRef: typeof document !== 'undefined' ? document : null,
});

runtime.registerLayer({
  id: 'dialog-1',
  dismiss: () => {
    // close dialog
  },
});

Angular CDK adapter notes

The repository includes internal adapter scaffolding for Angular CDK-backed behavior where applicable.
When adapter delegates are not provided, implementations fall back to TailNG defaults.

Primary internal adapter area:

  • libs/tailng-ui/cdk/src/adapters/angular-cdk

Contributing

When contributing to this package:

  • Keep APIs headless and framework-agnostic.
  • Prefer readonly contracts for state and action types.
  • Preserve SSR safety (avoid direct global DOM access in core logic).
  • Add/adjust tests with behavior changes.

License

See the repository license at the root of the monorepo.