ARIA wiring delivers WCAG 2.1 AA compliance out of the box.
data-nav lets you dock controllers on any side of the layout.
data-behavior toggles nine animation personalities without custom CSS.
CSS custom properties unlock brand level theming in minutes.
Themes ship as default, minimal, and pills for quick swaps. data-color-accent flips palettes between primary, secondary, success, warning, danger, funky, or dark.
Buttons prefetch remote content with data-url, data-delay, and refresh flags.
data-min-loading guarantees a consistent loading shimmer while fetching.
data-spaceless removes padding when you nest other layouts inside.
Hashchange listeners keep deep links synced during swipe navigation. Hooks setLoading and removeLoading coordinate loading indicators.
setInstance returns the Swype helper so chaining setup calls feels natural.
afterLoad fires once remote content settles, ready for animations.
eventSubmit lets you intercept forms and reroute them before default.
eventInput delivers live search with debounce baked in.
eventFocus is ideal for inline validation hints on activation.
Two listeners replace dozens of scattered inline handlers across apps.
Dynamic content attaches instantly without reinitializing components.
data-yai-ref-path creates deep linking breadcrumbs across nested tabs.
Scope selectors ensure sibling components never leak events.
Selective registration cuts listener counts by roughly fifty two percent.
Automatic cleanup removes listeners the moment a container leaves the DOM.
Each container keeps a single listener no matter how deep the tree grows.
YaiJS sits on the Ypsilon Event Scoping System for deterministic routing.
Works alongside React, Vue, Angular, or plain Vanilla without wrappers.
Pure ES module builds keep bundlers optional for every project.
Keyboard support covers arrow keys, Home, End, Enter, and Space.