# -axxy-

> W3C Standards as API. Zero-dependency WAI-ARIA behavioral kernel for standard HTML: standard elements, W3C roles, and ARIA attributes go in; standard ARIA states and keyboard/focus behavior come out—scoped inside `<axxy-scope>` without proprietary widget tags, vendor class names, or framework lock-in.

## Single-Fetch Agent Resources

- [Full documentation & all 67 W3C APG examples (Markdown)](https://axxy.bg7.net/llms-full.txt): Complete docs, triggers, managed attributes, keyboard contracts, events, and HTML snippets in one file.
- [Machine-readable pattern manifest (JSON)](https://axxy.bg7.net/patterns.json): Structured metadata for all 28 APG pattern groups (67 examples), 40 registered plugins, selectors, and events.

## Core Model & Quick Start

- **Wrapper:** `<axxy-scope>` is a Light DOM custom element. Wrap specific widgets or subtrees rather than the whole app.
- **Lifecycle:** Deterministic by default (no background `MutationObserver`). Call `scope.rescan()` after dynamic DOM updates, or opt into observation with `<axxy-scope observe>`.
- **Minimal ARIA:** Author only the unavoidable semantic role/state (e.g. `aria-pressed`, `role="tablist"`, `aria-expanded`); `-axxy-` auto-generates missing `id`s and wires `aria-controls`, `aria-labelledby`, `aria-describedby`, `hidden`, and `tabindex`.
- **Events:** Custom `axxy-*` events bubble (`axxy-tab-change`, `axxy-dialog-open`, `axxy-menu-select`, etc.) alongside native `click`/`input`/`change` events.
- **Installation (source tree, pre-1.0):** Copy `axxy/` to your served files (e.g. `/vendor/axxy/`) and load `<script type="module" src="/vendor/axxy/index.js"></script>`, or import individual component modules before `axxy/axxy.js`.

## Documentation

- [Introduction to -axxy-](https://axxy.bg7.net/): Overview of -axxy- ("W3C Standards as API"), <axxy-scope>, minimal ARIA philosophy, and before/after example.
- [Installation](https://axxy.bg7.net/docs/installation/): Source-tree setup, Node.js requirements, full vs. selective ES module imports, and build commands.
- [How to use -axxy-](https://axxy.bg7.net/docs/usage/): Core usage guide covering <axxy-scope>, rescan(), opt-in observe, dynamic DOM updates, and nested scopes.
- [Events and integration](https://axxy.bg7.net/docs/events/): Custom axxy-* bubbling events, cancelable hooks, event delegation, and framework integration patterns.
- [Theming](https://axxy.bg7.net/docs/theming/): Styling contract, ARIA-attribute selectors, and opt-in axxy-theming token package.
- [Contributing](https://axxy.bg7.net/docs/contributing/): Repository structure, testing workflow, and W3C APG alignment guidelines.
- [Links and references](https://axxy.bg7.net/docs/references/): W3C WAI-ARIA, APG, WCAG, and assistive-technology verification references.

## W3C APG Patterns (28 pattern groups, 67 examples + Tooltip plugin)

### Buttons and state

- [Button](https://axxy.bg7.net/examples/button/) (2 examples): <button>, [role="button"], or toggle with [aria-pressed] (plus IDL ariaPressed).
- [Checkbox](https://axxy.bg7.net/examples/checkbox/) (2 examples): <input type="checkbox">:not([role="switch"]), [role="checkbox"], or fieldset/[role="group"] with a mixed-state parent checkbox.
- [Switch](https://axxy.bg7.net/examples/switch/) (3 examples): [role="switch"] on a <button>, <input type="checkbox">, or custom element.

### Content and layout

- [Accordion](https://axxy.bg7.net/examples/accordion/): Container ([aria-roledescription="accordion"] or section/div) with heading-wrapped <button> triggers and adjacent or aria-controls-linked panels.
- [Carousel](https://axxy.bg7.net/examples/carousel/) (2 examples): [aria-roledescription="carousel"] container with slides and prev/next, rotation, or tablist controls.
- [Tabs](https://axxy.bg7.net/examples/tabs/) (2 examples): [role="tablist"] containing [role="tab"] / <button> tabs paired with [role="tabpanel"] panels.
- [Toolbar](https://axxy.bg7.net/examples/toolbar/): [role="toolbar"] containing buttons, toggles, radios, or menus with roving tabindex.

### Landmarks

- [Landmark Regions](https://axxy.bg7.net/examples/landmarks/) (8 examples) [Native HTML, no JS]: Native HTML5 landmarks: <header>, <nav>, <main>, <aside>, <footer>, <form>, <section>, <search> (no JS or <axxy-scope> required).

### Messages and dialogs

- [Alert](https://axxy.bg7.net/examples/alert/): [role="alert"] live region.
- [Alert Dialog](https://axxy.bg7.net/examples/alertdialog/): <dialog role="alertdialog"> paired with an invoker button (aria-controls or aria-haspopup="dialog").
- [Dialog](https://axxy.bg7.net/examples/dialog-modal/) (2 examples): <dialog> paired with an invoker button (aria-controls or aria-haspopup="dialog").
- [Tooltip](https://axxy.bg7.net/docs/usage/#tooltip-heading): Trigger with [aria-describedby] pointing to [role="tooltip"] (or adjacent [role="tooltip"]).

### Navigation

- [Breadcrumb](https://axxy.bg7.net/examples/breadcrumb/) [Native HTML, no JS]: Native HTML: <nav aria-label="Breadcrumb"> with ordered list and aria-current="page" (no JS or <axxy-scope> required).
- [Disclosure](https://axxy.bg7.net/examples/disclosure/) (5 examples): <button> / [role="button"] with [aria-expanded] or [aria-controls] targeting a collapsible panel (also nav and disclosure cards).
- [Link](https://axxy.bg7.net/examples/link/): <a href>, <area href>, or [role="link"].
- [Menu Button](https://axxy.bg7.net/examples/menu-button/) (3 examples): Button with [aria-haspopup="menu"|"true"] paired with [role="menu"] containing [role="menuitem*"].
- [Menubar](https://axxy.bg7.net/examples/menubar/) (2 examples): [role="menubar"] with [role="menuitem"] items and nested [role="menu"] popups.
- [Treeview](https://axxy.bg7.net/examples/treeview/) (3 examples): [role="tree"] containing [role="treeitem"] nodes and nested [role="group"] / <ul> branches.

### Selection and input

- [Combobox](https://axxy.bg7.net/examples/combobox/) (6 examples): [role="combobox"] paired with a popup [role="listbox"], [role="grid"], or calendar dialog.
- [Listbox](https://axxy.bg7.net/examples/listbox/) (4 examples): [role="listbox"] containing [role="option"] items (plus optional [aria-haspopup="listbox"] toggle or action buttons).
- [Meter](https://axxy.bg7.net/examples/meter/): Native <meter> or custom [role="meter"] with aria-valuenow, aria-valuemin, aria-valuemax.
- [Radio Group](https://axxy.bg7.net/examples/radio/) (3 examples): [role="radiogroup"] containing [role="radio"] items.
- [Slider](https://axxy.bg7.net/examples/slider/) (4 examples): <input type="range"> (supports vertical orientation, formatted aria-valuetext, and keyboard steps).
- [Slider (Multi-Thumb)](https://axxy.bg7.net/examples/slider-multithumb/): fieldset / [role="group"] / [aria-roledescription="range slider"] containing two <input type="range"> thumbs.
- [Spin Button](https://axxy.bg7.net/examples/spinbutton/) (2 examples): <input type="number"> or [role="spinbutton"] (with optional increment/decrement step buttons).

### Tables and data

- [Feed](https://axxy.bg7.net/examples/feed/): [role="feed"] containing focusable <article> / [role="article"] items.
- [Grid](https://axxy.bg7.net/examples/grid/) (2 examples): [role="grid"] with rows and [role="gridcell"] / td cells.
- [Table](https://axxy.bg7.net/examples/table/) (2 examples): [role="table"] (ARIA table) or <table> with sortable <th aria-sort> column header buttons.
- [Treegrid (Email Inbox)](https://axxy.bg7.net/examples/treegrid/): [role="treegrid"] with hierarchical rows ([aria-level] / [aria-expanded]) and cells.
