{
  "version": 1,
  "components": {
    "accordion": {
      "name": "Accordion",
      "react": {
        "Accordion": {
          "extends": [],
          "props": [
            {
              "name": "type",
              "type": "\"single\" | \"multiple\"",
              "optional": true,
              "default": "\"single\"",
              "description": "`\"single\"` gives every item the same `name`, so opening one closes\nthe others, natively. `\"multiple\"` leaves items independent."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "AccordionItem": {
          "description": "Built on `<details>`/`<summary>`: expand/collapse, keyboard support,\nfind-in-page, and print-friendliness all come from the browser. The\nopen/close transition uses measured-height WAAPI on the content panel\n(see `DetailsPanelAnimator`) so Chromium, Safari, and Firefox share\none smooth path; `prefers-reduced-motion` snaps instantly.",
          "extends": [],
          "props": [
            {
              "name": "title",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "defaultOpen",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean, details: ChangeDetails<AccordionOpenChangeReason>) => void",
              "optional": true,
              "description": "Called before the item opens or closes from its summary, with the\nreason; `details.cancel()` keeps it as it is. In a `type=\"single\"`\naccordion, the item the browser closes because another one opened isn't\nreported."
            },
            {
              "name": "className",
              "type": "ClassNameValue<AccordionItemState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-accordion": {
          "description": "`<kernel-accordion>` — groups `<kernel-accordion-item>` children.\nAttributes: `type` (`single` default | `multiple`). `single` gives\nevery item the same generated `name`, so the browser enforces\n\"only one open at a time\" natively — no JS coordination needed.",
          "attributes": [],
          "events": []
        },
        "kernel-accordion-item": {
          "description": "`<kernel-accordion-item>` — a real `<details>`/`<summary>`; expand/\ncollapse, keyboard support, find-in-page, and print all come from the\nbrowser. The open/close transition uses measured-height WAAPI on the\ncontent panel (see `DetailsPanelAnimator`).\n\nAttributes: `title` (the summary text — for richer markup, use a\nchild tagged `slot=\"title\"` instead), `default-open` (boolean, read\nonce at connect).\n\nEvents: a bubbling, cancelable `beforetoggle` `CustomEvent` before the\nsummary opens or closes the item, `detail: { open, reason }` with\n`reason` `\"trigger-press\"` or `\"keyboard\"`; `preventDefault()` keeps it\nas it is. (An item the browser closes because another in the same\nsingle-open accordion opened isn't reported.)",
          "attributes": [
            "title"
          ],
          "events": [],
          "eventDetails": {
            "beforetoggle": "{ open: boolean; reason: \"keyboard\" | \"trigger-press\"; event?: Event }"
          }
        }
      }
    },
    "agent-activity": {
      "name": "Agent Activity",
      "react": {
        "AgentActivity": {
          "description": "One chronological stream of what an agent did: reasoning, searches, tool\ncalls, structured traces, mixed freely.\n\nA real `<ol>`, because an activity trace is the one thing where order\n*is* the content — \"it searched, then read the file, then edited it\"\nstops being true if the list reorders.\n\nThere's deliberately no connector rail down the stream: reasoning and tool\nsteps render their own bordered surfaces, so a spine could only ever be\ndrawn beside some of the steps, and one that appears next to one row and\nnot the next reads as a rendering bug rather than a timeline.",
          "extends": [
            "Omit<OlHTMLAttributes<HTMLOListElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "label",
              "type": "string",
              "optional": true,
              "default": "\"Activity\"",
              "description": "Accessible name for the stream."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "AgentActivityItem": {
          "description": "One step in the stream.\n\n`reasoning` and `tool` steps delegate their body to the existing\n`Reasoning` and `ToolCall` components rather than reimplementing their\ndisclosure, streaming, and status behaviour — one source of truth for\nthose states, and both components stay exactly as they are for anyone\nusing them standalone. `search` and `trace` steps get this component's\nown `<details>`, height-animated by the same `DetailsPanelAnimator`.",
          "extends": [
            "Omit<LiHTMLAttributes<HTMLLIElement>, \"className\">"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false,
              "description": "Visible one-line description of the step."
            },
            {
              "name": "kind",
              "type": "\"reasoning\" | \"search\" | \"tool\" | \"trace\"",
              "optional": true,
              "default": "\"trace\""
            },
            {
              "name": "status",
              "type": "AgentActivityStatus",
              "optional": true,
              "default": "\"complete\""
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true,
              "description": "Detail for the step: a reasoning trace, search results, a tool's\noutput. Omit it and the row is a plain status line."
            },
            {
              "name": "defaultOpen",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "open",
              "type": "boolean",
              "optional": true
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean) => void",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<AgentActivityItemState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-agent-activity": {
          "description": "`<kernel-agent-activity>` — one chronological stream of what an agent did:\nreasoning, searches, tool calls, traces, mixed freely. A real `<ol>`,\nbecause order *is* the content in a trace; see `@kernelui-lib/react`'s\n`<AgentActivity>`, including why there's no connector rail.\n\nAttributes: `label` (accessible name, default \"Activity\").",
          "attributes": [
            "label"
          ],
          "events": []
        },
        "kernel-agent-activity-item": {
          "description": "`<kernel-agent-activity-item>` — one step in the stream. Host is\n`display: contents` so its `<li>` sits directly in the parent `<ol>`.\n\n`kind=\"reasoning\"` and `kind=\"tool\"` delegate their body to\n`<kernel-reasoning>` and `<kernel-tool-call>` rather than reimplementing\ndisclosure, streaming, and status behaviour — one source of truth, and\nboth elements stay usable standalone. `search` and `trace` get this\nelement's own `<details>`, height-animated by `DetailsPanelAnimator`.\n\nAttributes: `label` (required, the visible one-line description), `kind`\n(\"reasoning\" | \"search\" | \"tool\" | \"trace\", default \"trace\"), `status`\n(\"pending\" | \"running\" | \"complete\" | \"error\", default \"complete\"),\n`default-open`. A step with no children renders as a plain status line.",
          "attributes": [
            "label",
            "kind",
            "status"
          ],
          "events": []
        }
      }
    },
    "artifact-panel": {
      "name": "Artifact Panel",
      "react": {
        "ArtifactPanel": {
          "description": "The side panel an AI app opens beside the chat to show what it made —\na page preview, a document, the code behind it.\n\nIt's two native elements, chosen by `presentation`. Docked, it's an\n`<aside>` named by its title heading (a complementary landmark): it sits\nin the page flow, so it drops straight into a `Resizable` pane, and\nfocus moves in and out of it like any other region. As an overlay it's\na `<dialog>` opened with `showModal()`, the same way `Dialog` and `Sheet`\ndo it, so the focus trap, Escape, `::backdrop`, inert page and focus\nrestoration are the browser's. `\"auto\"` picks overlay below\n`overlayBelow` (a viewport media query, because the choice changes the\nelement and its focus model, which no container query can). Crossing the\nbreakpoint swaps the element, which remounts the body: an iframe preview\nreloads once on a resize across it, never during normal use.\n\nViews are Kernel's `Tabs` (the ARIA tablist pattern, inactive panels\ntruly `hidden`). The status line is a polite live region that's mounted\nfrom the start, so \"Generating…\" and \"Generation failed\" are announced\nwhen they change rather than when they appear.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"title\" | \"className\" | \"children\">"
          ],
          "props": [
            {
              "name": "title",
              "type": "ReactNode",
              "optional": false,
              "description": "The artifact's name. Rendered as a real heading and used as the\npanel's accessible name in both presentations."
            },
            {
              "name": "headingLevel",
              "type": "2 | 3 | 4",
              "optional": true,
              "default": "2",
              "description": "Level of the title heading in docked mode. Defaults to `2`. A modal\noverlay is its own document context, so it always uses `h2`."
            },
            {
              "name": "open",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Whether the panel is showing. Defaults to `true`, the usual case for a\ndocked panel the host mounts and unmounts itself."
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean) => void",
              "optional": true,
              "description": "Close button, Escape and backdrop clicks (overlay) ask for `false`."
            },
            {
              "name": "presentation",
              "type": "\"auto\" | \"docked\" | \"overlay\"",
              "optional": true,
              "default": "\"auto\"",
              "description": "`\"docked\"`: an `<aside>` in the page flow — put it in a `Resizable`\npane or a grid column. `\"overlay\"`: a modal `<dialog>` sliding in from\nthe inline end. `\"auto\"` (default) is docked, and overlay when the\nviewport is narrower than `overlayBelow`."
            },
            {
              "name": "overlayBelow",
              "type": "number",
              "optional": true,
              "default": "768",
              "description": "Viewport width in px below which `\"auto\"` becomes an overlay.\nDefaults to `768`."
            },
            {
              "name": "status",
              "type": "\"ready\" | \"streaming\" | \"error\"",
              "optional": true,
              "default": "\"ready\"",
              "description": "`\"streaming\"` while the model is still writing the artifact,\n`\"error\"` when it failed. Shown as a small dot and a short line of\ntext by the title, announced politely."
            },
            {
              "name": "version",
              "type": "number",
              "optional": true,
              "description": "The version on show, 1-based. With `versionCount` above 1 the\nheader gets previous/next buttons and a \"v3 of 5\" readout."
            },
            {
              "name": "versionCount",
              "type": "number",
              "optional": true
            },
            {
              "name": "onVersionChange",
              "type": "(version: number) => void",
              "optional": true
            },
            {
              "name": "actions",
              "type": "ReactNode",
              "optional": true,
              "description": "Your own header controls — copy, download, open in a new window.\nRendered before the built-in close button."
            },
            {
              "name": "views",
              "type": "ArtifactPanelView[]",
              "optional": true,
              "description": "Views of the artifact (\"Preview\", \"Code\"), switched with Kernel's\n`Tabs`. Without `views`, `children` is the body."
            },
            {
              "name": "view",
              "type": "string",
              "optional": true
            },
            {
              "name": "defaultView",
              "type": "string",
              "optional": true
            },
            {
              "name": "onViewChange",
              "type": "(view: string) => void",
              "optional": true
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "showCloseButton",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Hide the built-in close button. Escape still closes an overlay."
            },
            {
              "name": "labels",
              "type": "Partial<ArtifactPanelLabels>",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<ArtifactPanelState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-artifact-panel": {
          "description": "`<kernel-artifact-panel>` — the side panel an AI app opens beside the\nchat to show what it made: a page preview, a document, the code behind\nit. Mirrors `@kernelui-lib/react`'s `<ArtifactPanel>`.\n\nTwo native elements, chosen by `presentation`. Docked, it's an\n`<aside>` named by its title heading (a complementary landmark) that\nsits in the page flow — put it in a `<kernel-resizable>` pane. As an\noverlay it's a `<dialog>` opened with `showModal()`, like\n`<kernel-dialog>`, so the focus trap, Escape, `::backdrop`, inert page\nand focus restoration are the browser's. `auto` (the default) is\noverlay below `overlay-below` px of viewport — a media query, because\nthe switch changes the element and its focus model, which a container\nquery can't. Crossing it moves the panel's content into the other\nelement, so an iframe preview reloads once.\n\nAttributes: `title` (required), `heading-level` (2–4, docked only;\ndefault 2), `open` (boolean — add it to show the panel), `presentation`\n(auto/docked/overlay), `overlay-below` (default 768), `status`\n(ready/streaming/error), `version` + `version-count` (the switcher\nappears above one version), `view` (the selected view's value),\n`show-close-button` (`\"false\"` to omit).\n\nChildren: `<kernel-artifact-view value=\"preview\" label=\"Preview\">`\nelements become tabs (Kernel's `<kernel-tabs>`); a child with\n`slot=\"actions\"` goes in the header before the close button; anything\nelse is the body. Read once at connect.\n\nBuilt-in strings (`label-*` attributes or the `labels` property, same\nkeys and defaults as React's `ArtifactPanelLabels`): `close`,\n`previous-version`, `next-version`, `version` (`\"v{current} of\n{total}\"`), `versions`, `views`, `streaming`, `error`.\n\nEvents (bubbling): `close` once the panel has closed by any path;\n`versionchange` (`detail.version`, cancelable — the element updates its\nown `version` unless prevented); `viewchange` (`detail.value`).",
          "attributes": [
            "title",
            "heading-level",
            "open",
            "presentation",
            "overlay-below",
            "status",
            "version",
            "version-count",
            "view",
            "label-close",
            "label-previous-version",
            "label-next-version",
            "label-version",
            "label-versions",
            "label-views",
            "label-streaming",
            "label-error"
          ],
          "events": [
            "viewchange",
            "versionchange"
          ],
          "eventDetails": {
            "viewchange": "{ value: string }",
            "close": null,
            "versionchange": "{ version: number }"
          }
        },
        "kernel-artifact-view": {
          "description": "`<kernel-artifact-view value label>` — one view of an\n`<kernel-artifact-panel>`. A marker: its children become the view's tab\npanel when the panel connects.",
          "attributes": [],
          "events": []
        }
      }
    },
    "attachment": {
      "name": "Attachment",
      "react": {
        "Attachment": {
          "description": "A file chip for composers and messages: type icon (or image\nthumbnail), name, size, an optional remove button and optional upload\nprogress. Inside an `AttachmentList` it renders as that list's `<li>`;\non its own it's a `<div>`.\n\nThe name truncates in the middle, not at the end: the start ellipsises\nwhile the last few characters and the extension stay put, because\n`quarterly-report-final-v3.pdf` and `quarterly-report-final-v4.pdf` are\nonly told apart by their tail. The full name is still one run of text\nfor assistive tech and in the `title` tooltip.\n\nUpload progress is a real `<progress>` (implicit `progressbar` role and\nvalue, no ARIA bookkeeping), labelled \"Uploading {name}\". The remove\nbutton follows `TagInput`'s chip: a real `<button>` named\n\"Remove {name}\", but it stays in the tab order here, since an\nattachment has no Backspace-to-remove path.\n\nThe chip has a fixed height so its radius can stop at a true\nhalf-height pill (`min(--kernel-radius-lg, height / 2)`), and the\nthumbnail tile inside is concentric with it: its radius is the outer\nradius minus the inset.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\" | \"onRemove\">"
          ],
          "props": [
            {
              "name": "name",
              "type": "string",
              "optional": false,
              "description": "The file name. The start truncates first, so the extension (and the\nlast few characters before it) stay visible."
            },
            {
              "name": "size",
              "type": "number",
              "optional": true,
              "description": "Size in bytes, shown formatted (`2.4 MB`) in the reader's locale."
            },
            {
              "name": "type",
              "type": "string",
              "optional": true,
              "description": "MIME type, e.g. `\"application/pdf\"`. Used for the type label when\nthe name has no extension."
            },
            {
              "name": "previewSrc",
              "type": "string",
              "optional": true,
              "description": "An image URL (often an object URL for a just-picked file) shown as a\nthumbnail in place of the generic file icon."
            },
            {
              "name": "progress",
              "type": "number",
              "optional": true,
              "description": "Upload progress from 0 to 1. While below 1, a thin native\n`<progress>` runs along the bottom edge and the percentage replaces\nthe type label. Omit once the upload is done."
            },
            {
              "name": "onRemove",
              "type": "() => void",
              "optional": true,
              "description": "Shows a remove button. Called when it's pressed."
            },
            {
              "name": "removeLabel",
              "type": "string",
              "optional": true,
              "description": "Accessible name of the remove button. Defaults to `Remove {name}`."
            },
            {
              "name": "locale",
              "type": "string",
              "optional": true,
              "description": "BCP 47 locale for the size and percentage. Defaults to the reader's."
            },
            {
              "name": "className",
              "type": "ClassNameValue<AttachmentState>",
              "optional": true
            }
          ]
        },
        "AttachmentList": {
          "description": "A row of attachments: a real `<ul>`, with `role=\"list\"` restated because\nSafari drops list semantics from a list whose markers are removed with\n`list-style: none`. Each `Attachment` inside renders as its `<li>`, so a\nscreen reader announces \"list, 3 items\" before the files.",
          "extends": [
            "Omit<HTMLAttributes<HTMLUListElement>, \"className\">"
          ],
          "props": [
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-attachment": {
          "description": "`<kernel-attachment>` — a file chip for composers and messages: type\nicon (or image thumbnail), name, size, optional remove button and\nupload progress. Inside `<kernel-attachment-list>` it owns a real\n`<li>` (the host is `display: contents`, since custom elements can't be\nlist items); elsewhere a `<div>`. Mirrors `@kernelui-lib/react`'s\n`<Attachment>`: the name truncates in the middle so the extension stays\nvisible, upload progress is a real `<progress>` labelled\n\"Uploading {name}\", and the remove button is a real `<button>` named\n\"Remove {name}\".\n\nAttributes: `name`, `size` (bytes), `type` (MIME), `preview-src` (image\nthumbnail URL), `progress` (0–1; the bar shows while below 1),\n`removable` (boolean: show the remove button), `remove-label`,\n`locale`.\n\nEvents: `remove` (bubbling CustomEvent, `detail.name`) when the remove\nbutton is pressed. The element doesn't remove itself — the same as\nReact's `onRemove`, the owner of the file list decides.",
          "attributes": [
            "name",
            "size",
            "type",
            "preview-src",
            "progress",
            "removable",
            "remove-label",
            "locale"
          ],
          "events": [
            "remove"
          ],
          "eventDetails": {
            "remove": "{ name: string }"
          }
        },
        "kernel-attachment-list": {
          "description": "`<kernel-attachment-list>` — a row of attachments on a real `<ul>`, with\n`role=\"list\"` restated because Safari drops list semantics once markers\nare removed. Each `<kernel-attachment>` inside renders as its `<li>`.\nMirrors `@kernelui-lib/react`'s `<AttachmentList>`.",
          "attributes": [],
          "events": []
        }
      }
    },
    "avatar": {
      "name": "Avatar",
      "react": {
        "Avatar": {
          "description": "A real `<img>` when there's a picture to show. Broken and missing\nimages can't be detected in CSS alone, so the fallback swap is the one\npiece of unavoidable JavaScript here (an `onError` handler), everything\nelse, alt text and all, is the browser's native image handling.",
          "extends": [
            "Omit<ImgHTMLAttributes<HTMLImageElement>, \"className\">"
          ],
          "props": [
            {
              "name": "fallback",
              "type": "string",
              "optional": false,
              "description": "Shown while there's no `src`, or if the image fails to load.\nUsually initials."
            },
            {
              "name": "className",
              "type": "ClassNameValue<AvatarState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-avatar": {
          "description": "`<kernel-avatar>` — a real `<img>` when there's a picture to show.\nBroken and missing images can't be detected in CSS alone, so the\nfallback swap is the one piece of unavoidable JavaScript here (an\n`error` listener), everything else, alt text included, is the\nbrowser's native image handling. Mirrors `@kernelui-lib/react`'s\n`<Avatar>`.\n\nAttributes: `src`, `alt`, `fallback` (shown while there's no `src`, or\nif the image fails to load — usually initials).",
          "attributes": [
            "src",
            "alt",
            "fallback"
          ],
          "events": []
        }
      }
    },
    "badge": {
      "name": "Badge",
      "react": {
        "Badge": {
          "description": "A small status chip. There's no HTML element for \"badge\", `<span>` is\nthe correct choice for an inline, semantically neutral run of text\nthat only needs presentational styling.\n\nShaped as an optical pill: its radius follows `--kernel-radius-control`\nbut stops at a true half-height pill, its inline padding grows by the\nwidth the end caps cut away, and an icon at either end (an `svg`,\n`img`, an icon component that renders one, or a `data-icon` element)\nbecomes a `1lh` box\nthat sits concentric with the cap. Put icons and text straight inside;\nno wrapper needed. See `Badge.module.css` for the maths.",
          "extends": [
            "Omit<HTMLAttributes<HTMLSpanElement>, \"className\">"
          ],
          "props": [
            {
              "name": "variant",
              "type": "\"neutral\" | \"accent\" | \"success\" | \"warning\" | \"danger\"",
              "optional": true,
              "default": "\"neutral\""
            },
            {
              "name": "className",
              "type": "ClassNameValue<BadgeState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-badge": {
          "description": "`<kernel-badge>` — a small status chip. There's no HTML element for\n\"badge\"; `<span>` is correct for an inline, semantically neutral run\nof text that only needs presentational styling.\n\nShaped as an optical pill, the same as React's `<Badge>`: the radius\nstops at a true half-height pill, inline padding grows by the width the\nend caps cut away, and an icon at either end (an `svg` or `img`, or any\n`data-icon` element) becomes a `1lh` box concentric with the cap.\n\nAttributes: `variant` (neutral/accent/success/warning/danger,\ndefault neutral).",
          "attributes": [
            "variant"
          ],
          "events": []
        }
      }
    },
    "breadcrumbs": {
      "name": "Breadcrumbs",
      "react": {
        "Breadcrumbs": {
          "description": "A real `<nav aria-label=\"Breadcrumb\">` wrapping a real `<ol>`, it's an\nordered trail, list semantics are correct here.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<BreadcrumbsLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        },
        "BreadcrumbItem": {
          "extends": [
            "Omit<AnchorHTMLAttributes<HTMLAnchorElement>, \"className\">"
          ],
          "props": [
            {
              "name": "current",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "The current page isn't a link, it's marked `aria-current=\"page\"` on\nplain text instead, that's the correct pattern, you don't link to\nwhere you already are."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "BreadcrumbsTrail": {
          "extends": [],
          "props": [
            {
              "name": "items",
              "type": "Array<{ label: ReactNode; href?: string }>",
              "optional": false
            }
          ]
        }
      },
      "elements": {
        "kernel-breadcrumbs": {
          "description": "`<kernel-breadcrumbs>` — a real `<nav aria-label=\"Breadcrumb\">`\nwrapping a real `<ol>`; it's an ordered trail, so list semantics are\ncorrect. Compose with `<kernel-breadcrumb-item>`.\n\nBuilt-in string: `label-navigation` (the `<nav>`'s name, default\n\"Breadcrumb\"), or the `labels` property.",
          "attributes": [
            "label-navigation"
          ],
          "events": []
        },
        "kernel-breadcrumb-item": {
          "description": "`<kernel-breadcrumb-item>` — the current page isn't a link; it's\nmarked `aria-current=\"page\"` on plain text instead (you don't link\nto where you already are), and doesn't get a trailing separator.\n\nAttributes: `href`, `current` (boolean).",
          "attributes": [
            "href",
            "current"
          ],
          "events": []
        }
      }
    },
    "button": {
      "name": "Button",
      "react": {
        "Button": {
          "description": "A real `<button>`. Renders as one by default because that's the only\nelement that gets click, keyboard (Space/Enter), focus, and form\nassociation for free from the browser. Use `render` when the action\nnavigates, so it should be an `<a>` instead.\n\nOptically padded like `Badge`: the radius stops at half the control\nheight (a true pill at Round), inline padding grows by the width the\ncorners cut away, icons sit concentric with the corner, and the\ncapitals are centred by cap height rather than by the font's line box.",
          "extends": [
            "Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"className\">"
          ],
          "props": [
            {
              "name": "variant",
              "type": "\"primary\" | \"secondary\" | \"ghost\" | \"danger\"",
              "optional": true,
              "default": "\"secondary\"",
              "description": "Visual role of the button. Defaults to `secondary`."
            },
            {
              "name": "size",
              "type": "\"sm\" | \"md\" | \"lg\"",
              "optional": true,
              "default": "\"md\"",
              "description": "Defaults to `md`."
            },
            {
              "name": "loading",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Shows a spinner and marks the button `aria-disabled` and `aria-busy`\nwithout changing its layout width."
            },
            {
              "name": "iconStart",
              "type": "ReactNode",
              "optional": true,
              "description": "Icon placed before the label: any `svg`, `img` or icon component.\nIt's drawn at `--kernel-icon-size` in a slot concentric with the\nbutton's corner. With no label (or a lone icon as `children`) the\nbutton is icon-only: square, or a circle at Round. Pass icon components\nhere rather than as children: a lone `svg`/`img` child is also treated\nas icon-only, but a component child is always treated as the label."
            },
            {
              "name": "iconEnd",
              "type": "ReactNode",
              "optional": true,
              "description": "Icon placed after the label. Same sizing as `iconStart`."
            },
            {
              "name": "className",
              "type": "ClassNameValue<ButtonState>",
              "optional": true
            },
            {
              "name": "render",
              "type": "RenderProp<ButtonState>",
              "optional": true,
              "description": "Render as a different element, e.g. an anchor styled as a button.\nThe default is a real `<button type=\"button\">`."
            },
            {
              "name": "data-slot",
              "type": "string",
              "optional": true,
              "default": "\"button\"",
              "description": "Overrides the default `data-slot=\"button\"` composition hook. A component\nthat renders a Button as one of its own named parts sets this so its slot\nname is the one consumers can select (`Dialog`'s close control is\n`dialog-close`, not `button`) — matching what the same component's Custom\nElement already emits. Declared explicitly because it can't just ride in\nwith the rest of the props: the default below is applied after the spread,\nso it would otherwise win."
            }
          ]
        }
      },
      "elements": {
        "kernel-button": {
          "description": "`<kernel-button>` — a real `<button>`. Renders as one by default\nbecause that's the only element that gets click, keyboard\n(Space/Enter), focus, and form association for free from the\nbrowser. Mirrors `@kernelui-lib/react`'s `<Button>`.\n\nAttributes: `variant` (primary/secondary/ghost/danger, default\nsecondary), `size` (sm/md/lg, default md), `disabled`, `loading`\n(boolean attributes), `type` (button/submit/reset, default button).\n\nIcons: put an `svg` or `img` (or any `data-icon` element) first or\nlast among the children and it moves into an icon slot, the same as\nReact's `iconStart`/`iconEnd`. A lone icon makes an icon-only button,\nsquare or (at Round) circular, with the icon concentric. Label an\nicon-only button with `aria-label` on `<kernel-button>`; it's\nforwarded to the real `<button>`, as are `aria-labelledby` and\n`aria-describedby`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "variant",
            "size",
            "disabled",
            "loading",
            "type"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        }
      }
    },
    "callout": {
      "name": "Callout",
      "react": {
        "Callout": {
          "description": "There's no `<callout>` element, ARIA live-region roles are the correct\ntool for exactly this gap: content that should be announced to\nassistive tech as soon as it appears. `danger`/`warning` interrupt\n(`role=\"alert\"`, assertive); `info`/`success` wait their turn\n(`role=\"status\"`, polite), matching how urgently each should interrupt\nsomeone using a screen reader.",
          "extends": [
            "Omit<HTMLAttributes<HTMLDivElement>, \"className\" | \"title\">"
          ],
          "props": [
            {
              "name": "variant",
              "type": "\"info\" | \"success\" | \"warning\" | \"danger\"",
              "optional": true,
              "default": "\"info\""
            },
            {
              "name": "title",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<CalloutState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-callout": {
          "description": "`<kernel-callout>` — there's no `<callout>` element; ARIA live-region\nroles are the correct tool for exactly this gap: content that should\nbe announced to assistive tech as soon as it appears. `danger`/\n`warning` interrupt (`role=\"alert\"`, assertive); `info`/`success`\nwait their turn (`role=\"status\"`, polite).\n\nAttributes: `variant` (info/success/warning/danger, default info).\nA child marked `slot=\"title\"` becomes the bold title line; everything\nelse becomes the body.",
          "attributes": [
            "variant"
          ],
          "events": []
        }
      }
    },
    "card": {
      "name": "Card",
      "react": {
        "Card": {
          "description": "A visual grouping of related content. Renders a `<div>` by default —\nthe honest choice for presentational grouping with no stronger native\nmeaning — and is the one Kernel component without a single obvious\nnative anchor. Set `as=\"article\"` when the content is genuinely\nself-contained and could be syndicated on its own (a post preview, a\nproduct card), or `as=\"section\"` for a thematic region with its own\nheading. Compose with `CardHeader`, `CardContent`, `CardFooter`,\n`CardTitle`, and `CardDescription`.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\">"
          ],
          "props": [
            {
              "name": "as",
              "type": "\"div\" | \"article\" | \"section\"",
              "optional": true,
              "default": "\"div\"",
              "description": "A card is usually just a visual grouping (`<div>`), but set this to\n`\"article\"` when its content is genuinely self-contained and could\nbe syndicated or distributed on its own (a blog post preview, a\nproduct card), that's what `<article>` actually means. This is the\none component in Kernel without a single obvious native anchor."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "CardTitle": {
          "extends": [
            "Omit<HTMLAttributes<HTMLHeadingElement>, \"className\">"
          ],
          "props": [
            {
              "name": "level",
              "type": "2 | 3 | 4 | 5 | 6",
              "optional": true,
              "default": "3",
              "description": "Defaults to `h3`: a card usually sits below a page or section\nheading, pick whatever level is correct for your actual heading\noutline."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-card": {
          "description": "`<kernel-card>` — a visual grouping. Set `as=\"article\"` when its\ncontent is genuinely self-contained and could be syndicated or\ndistributed on its own (a blog post preview, a product card); that's\nwhat `<article>` actually means.\n\nAttributes: `as` (div/article/section, default div) — read once at\nconnect, not live-updated (changing the underlying tag after mount\nis rare enough not to be worth the complexity in this first pass).\nCompose with `<kernel-card-header>`, `<kernel-card-content>`,\n`<kernel-card-footer>`, `<kernel-card-title>`,\n`<kernel-card-description>`.",
          "attributes": [],
          "events": []
        },
        "kernel-card-header": {
          "attributes": [],
          "events": []
        },
        "kernel-card-title": {
          "description": "`<kernel-card-title>` — defaults to `<h3>`: a card usually sits\nbelow a page or section heading, so pick whatever level is correct\nfor the actual heading outline via `level` (2-6). Read once at\nconnect, same reasoning as `<kernel-card>`'s `as`.",
          "attributes": [],
          "events": []
        },
        "kernel-card-description": {
          "attributes": [],
          "events": []
        },
        "kernel-card-content": {
          "attributes": [],
          "events": []
        },
        "kernel-card-footer": {
          "attributes": [],
          "events": []
        }
      }
    },
    "carousel": {
      "name": "Carousel",
      "react": {
        "Carousel": {
          "description": "A real scroll container: `scroll-snap-type` + native overflow scrolling\ndo the actual carousel work (touch, trackpad, momentum, arrow keys once\nfocused), not a JS drag/animation engine. The only JS here is wiring\nPrev/Next and the dots to `scrollIntoView`, and an `IntersectionObserver`\nthat watches each slide against the scroll container to know which one\nis currently in view.",
          "extends": [
            "Omit<HTMLAttributes<HTMLDivElement>, \"className\" | \"children\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false,
              "description": "The slides: each direct child is one slide (wrap each in `CarouselSlide`)."
            },
            {
              "name": "aria-label",
              "type": "string",
              "optional": false,
              "description": "Accessible name for the carousel region. Required: there's no visible heading to name it."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<CarouselLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        },
        "CarouselSlide": {
          "description": "Full-width-per-slide by default (`flex: 0 0 100%`), so the carousel\nreads as one slide at a time. A \"peek the next slide\" layout (e.g.\n`flex-basis: 85%`) is a reasonable variant but needs a width prop to do\nwell, so it's left for a future revision rather than guessed at here.",
          "extends": [],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            }
          ]
        }
      },
      "elements": {
        "kernel-carousel": {
          "description": "`<kernel-carousel>` — a real scroll container: `scroll-snap-type` +\nnative overflow scrolling do the actual carousel work (touch,\ntrackpad, momentum, arrow keys once focused), not a JS drag engine.\nThe only JS here is wiring Prev/Next/dots to `scrollIntoView` and an\n`IntersectionObserver` that watches which slide is actually visible.\n\nUnlike `@kernelui-lib/react`'s version (which supports slides mounting\nand unmounting dynamically via a register/unregister callback), this\nreads its `<kernel-carousel-slide>` children once at connect — the\ncommon case for a declarative-markup custom element. A future pass\ncould add a `MutationObserver` if dynamic slide lists turn out to be\nneeded.\n\nAttributes: `aria-label` (required). Built-in strings:\n`label-previous-slide` (\"Previous slide\"), `label-next-slide`\n(\"Next slide\"), `label-go-to-slide` (template, default\n`\"Go to slide {slide}\"`), or the `labels` property.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the carousel's `role=\"region\"`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label-previous-slide",
            "label-next-slide",
            "label-go-to-slide"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        },
        "kernel-carousel-slide": {
          "description": "`<kernel-carousel-slide>` — full-width-per-slide (`flex: 0 0 100%`),\nso the carousel reads as one slide at a time.",
          "attributes": [],
          "events": []
        }
      }
    },
    "checkbox": {
      "name": "Checkbox",
      "react": {
        "Checkbox": {
          "extends": [
            "Omit< InputHTMLAttributes<HTMLInputElement>, \"className\" | \"checked\" | \"defaultChecked\" | \"onChange\" | \"type\" >"
          ],
          "props": [
            {
              "name": "checked",
              "type": "boolean",
              "optional": true
            },
            {
              "name": "defaultChecked",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "indeterminate",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "A checkbox can be neither on nor off, e.g. a \"select all\" checkbox\nwhen only some children are selected. This sets the `indeterminate`\nDOM property (there is no HTML attribute for it) so `:indeterminate`\nin CSS works without any data-attribute bookkeeping."
            },
            {
              "name": "onCheckedChange",
              "type": "(checked: boolean, details: ChangeDetails<CheckboxChangeReason>) => void",
              "optional": true,
              "description": "Called before the box changes, with the reason (`\"press\"` or\n`\"keyboard\"`); `details.cancel()` leaves it as it was."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true,
              "description": "Label text. Wrapping the real input in a real `<label>` means\nclicking the text toggles the box, for free."
            },
            {
              "name": "className",
              "type": "ClassNameValue<CheckboxState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-checkbox": {
          "description": "`<kernel-checkbox>` — a real `<input type=\"checkbox\">` inside a real\n`<label>`, so clicking the text toggles the box for free. Mirrors\n`@kernelui-lib/react`'s `<Checkbox>`.\n\nAttributes: `checked`, `disabled`, `required` (all boolean), `name`,\n`value`. `indeterminate` has no HTML attribute on the platform's own\ncheckbox either — set it as a live property (`el.indeterminate =\ntrue`) same as any native one. The real inner `<input>` fires real,\nbubbling `change` events; listen on it directly or on this element,\nno synthetic event needed.\n\nChange reasons: a native `change` can't be cancelled, so a bubbling,\ncancelable `beforevaluechange` is dispatched from this element first,\nwith `detail: { checked, reason }` (`reason` is `\"press\"` or\n`\"keyboard\"`). `preventDefault()` on it puts the box back and stops the\nnative `change` at this element (a listener on the inner `<input>`\nitself has already seen it). Otherwise a `valuechange` with the same\ndetail follows, then the native `change`.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<input type=\"checkbox\">`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "checked",
            "disabled",
            "required",
            "name",
            "value"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ checked: boolean; reason: \"keyboard\" | \"press\"; event?: Event }",
            "valuechange": "{ checked: boolean; reason: \"keyboard\" | \"press\"; event?: Event }"
          }
        }
      }
    },
    "code-block": {
      "name": "Code Block",
      "react": {
        "CodeBlock": {
          "description": "A code surface: a real `<pre><code>` inside a `<figure>`, with optional\nline numbers, emphasised lines, copy, and stable streaming.\n\nIt highlights nothing itself — it takes pre-tokenised `lines` (see\n`utils/codeTokens.ts`) — which is what keeps this package dependency-free\nand lets the same component serve Shiki, Prism, a server-side highlighter,\nor plain text. `code` is the un-highlighted path.\n\n\"Stable streaming\" is the interesting part. Lines are keyed by index, so\nappending output re-renders only the last line: earlier lines aren't\nunmounted and re-created, which is what causes the flicker and lost text\nselection you get from re-rendering a growing block as one string. Following\nthe last line reuses `StickToBottomController` — the same behaviour\n`MessageScroller` is built on — rather than a second scroll implementation.\n\nLine numbers are rendered as real text but marked `aria-hidden` and made\nunselectable: a screen reader reading \"one const two import three…\" is\nnoise, and a copy that interleaves line numbers with code is worse than no\ncopy button at all.\n\nEach line is one row of a single grid (a CSS subgrid), so the number column\nis as wide as the widest number and every line's code starts at the same x.\nThat is also what makes `wrap` safe: a wrapped line just grows taller in its\nown row, and its number stays baseline-aligned with the first visual line\ninstead of drifting to the middle or needing a second column kept in sync\nby script. Wrapping is off by default because scrolling keeps the author's\nown line breaks, which is what code is usually read by.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\" | \"children\">"
          ],
          "props": [
            {
              "name": "lines",
              "type": "CodeLine[]",
              "optional": true,
              "description": "Pre-tokenised lines from your highlighter of choice. Takes precedence\nover `code`."
            },
            {
              "name": "code",
              "type": "string",
              "optional": true,
              "default": "\"\"",
              "description": "Un-highlighted source. Rendered as one plain token per line."
            },
            {
              "name": "language",
              "type": "string",
              "optional": true,
              "description": "Shown in the header, and set as the `<code>`'s `data-language`."
            },
            {
              "name": "label",
              "type": "ReactNode",
              "optional": true,
              "description": "Header title — a file path, usually. Falls back to `language`."
            },
            {
              "name": "showLineNumbers",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "highlightLines",
              "type": "number[]",
              "optional": true,
              "description": "1-based line numbers to emphasise."
            },
            {
              "name": "streaming",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Output is still arriving: the block follows its own last line."
            },
            {
              "name": "copyable",
              "type": "boolean",
              "optional": true,
              "default": "true"
            },
            {
              "name": "maxBlockSize",
              "type": "string",
              "optional": true,
              "description": "Height at which the block starts scrolling."
            },
            {
              "name": "wrap",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Wrap long lines instead of scrolling sideways. Off by default: code\nreads best with its own line breaks, but a narrow column (a chat\nmessage, a phone) is often better wrapped. Line numbers stay on the\nfirst visual line of each wrapped line."
            },
            {
              "name": "className",
              "type": "ClassNameValue<CodeBlockState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<CodeBlockLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-code-block": {
          "description": "`<kernel-code-block>` — a real `<pre><code>` in a `<figure>`, with optional\nline numbers, emphasised lines, copy, and stable streaming. See\n`@kernelui-lib/react`'s `<CodeBlock>` for why it highlights nothing itself\nand why line numbers are unselectable and `aria-hidden`.\n\nContent comes in three ways, in precedence order:\n\n  1. `el.lines = [{ tokens: [{ text, className?, color? }] }]` — a DOM\n     property, because structured data can't travel through an attribute\n     and shouldn't pretend to.\n  2. `el.code = \"...\"` — un-highlighted source.\n  3. Light-DOM `<pre><code>…</code></pre>` written into the tag, read once\n     at connect. That's the progressive-enhancement path: the code is real\n     page content before any script sets a property.\n\nAttributes: `language`, `label`, `show-line-numbers`, `highlight-lines`\n(comma-separated 1-based numbers), `streaming`, `no-copy`,\n`max-block-size`, `wrap` (wrap long lines instead of scrolling sideways;\nline numbers stay on each wrapped line's first visual line, because every\nline is a row of one subgrid), and built-in strings `label-copy` (\"Copy\"),\n`label-copied` (\"Copied\"), `label-copied-announcement` (\"Copied to\nclipboard\") — or the `labels` property.",
          "attributes": [
            "language",
            "label",
            "show-line-numbers",
            "highlight-lines",
            "streaming",
            "wrap",
            "no-copy",
            "max-block-size",
            "label-copy",
            "label-copied",
            "label-copied-announcement"
          ],
          "events": []
        }
      }
    },
    "color-picker": {
      "name": "Color Picker",
      "react": {
        "ColorPicker": {
          "description": "A real `<input type=\"color\">`. Its native swatch can't be restyled\nconsistently across browsers (Chrome allows a little, Safari almost\nnone), so a purely decorative `<span>` painted from a JS-computed\n`--swatch-color` custom property sits visually on top — the same\ncompute-in-JS-hand-off-via-custom-property pattern `Slider` uses for\n`--percent` — while the real, focusable, clickable input sits\nunderneath at `opacity: 0` (never `display: none`, which would drop it\nfrom the tab order and break its clickability). Both live inside one\nreal `<label>`, so clicking anywhere on the swatch opens the OS picker\nwith no manual click-forwarding JS. The optional hex field is a second,\nindependently-labelled view onto the same value, not a second source\nof truth: it only ever commits back through the same `value`.",
          "extends": [
            "Omit< InputHTMLAttributes<HTMLInputElement>, \"className\" | \"type\" | \"value\" | \"defaultValue\" | \"onChange\" | \"size\" >"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label without removing it from the accessibility\ntree — see `TextField`'s `hideLabel` for the full rationale."
            },
            {
              "name": "value",
              "type": "string",
              "optional": true,
              "description": "Always a normalized 7-character lowercase hex string, e.g. `\"#3b82f6\"`\n— matches what `<input type=\"color\">` itself always reports, so the\nvalue flowing through here is never anything the native element\nwouldn't already produce on its own."
            },
            {
              "name": "defaultValue",
              "type": "string",
              "optional": true,
              "default": "\"#000000\""
            },
            {
              "name": "onValueChange",
              "type": "(value: string, details: ChangeDetails<ColorPickerChangeReason>) => void",
              "optional": true,
              "description": "Called before the colour changes, with the reason (`\"picker\"` or `\"hex-input\"`); `details.cancel()`\nkeeps the current colour."
            },
            {
              "name": "showHexInput",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Renders an editable hex text field beside the swatch. Default `true`:\nthe native swatch is the only way to open the OS picker, but it\ncommunicates nothing textually and can't be typed into, and typing an\nexact hex (brand colours, design handoffs) is common enough that it\nshouldn't require an extra prop most consumers need to discover."
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "errorMessage",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "labelOffset",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Set to `false` to hard-align the description and error text flush\nwith the field's left edge, undoing the default inset that lines them\nup with the swatch/label edge (`--kernel-label-inset`). Doesn't affect\n`label` itself — it sits above the swatch, not read as text-field\ncontent, so it never carries the inset in the first place."
            },
            {
              "name": "invalid",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "size",
              "type": "\"sm\" | \"md\" | \"lg\"",
              "optional": true,
              "default": "\"md\""
            },
            {
              "name": "className",
              "type": "ClassNameValue<ColorPickerState>",
              "optional": true
            },
            {
              "name": "wrapperClassName",
              "type": "ClassNameValue<ColorPickerState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<ColorPickerLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-color-picker": {
          "description": "`<kernel-color-picker>` — a real `<input type=\"color\">`, same\ninvisible-real-input-under-a-decorative-swatch approach as\n`@kernelui-lib/react`'s `<ColorPicker>` (see that file for the full\nrationale). A real `<label>` wraps both the swatch and the input, so\nclicking anywhere opens the OS picker natively.\n\nAttributes: `label` (required, still the accessible name even when\n`hide-label` is set), `hide-label` (boolean), `value` (default\n`#000000`), `no-hex-input` (boolean — hides the editable hex field;\npresent by default the hex field shows, matching the React version's\n`showHexInput` defaulting to `true`), `size` (sm/md/lg, default md),\n`description`, `error-message`, `no-label-offset` (boolean — hard-\naligns the description and error text flush left instead of the\ndefault inset; doesn't affect `label`, which never carries the inset\nin the first place), `invalid`, `disabled`, `name`. Built-in string:\n`label-hex-value` (default \"Hex color value\"), or the `labels` property.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<input type=\"color\">`; an authored\n`aria-describedby` is added after its own hint and error ids.\n\nEvents: a bubbling, cancelable `beforevaluechange` before the colour commits,\n`detail: { value, reason }` (`\"picker\"` or `\"hex-input\"`);\n`preventDefault()` keeps the current colour. Then a bubbling\n`valuechange` and `change` with the same detail once `value` is\ncommitted.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "hide-label",
            "value",
            "no-hex-input",
            "size",
            "description",
            "error-message",
            "no-label-offset",
            "invalid",
            "disabled",
            "name",
            "label-hex-value"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ value: string; reason: \"hex-input\" | \"picker\"; event?: Event }",
            "valuechange": "{ value: string; reason: \"hex-input\" | \"picker\"; event?: Event }",
            "change": "{ value: string; reason: \"hex-input\" | \"picker\"; event?: Event }"
          }
        }
      }
    },
    "combobox": {
      "name": "Combobox",
      "react": {
        "Combobox": {
          "description": "The WAI-ARIA 1.2 combobox pattern: a real `<input role=\"combobox\">`\nthat keeps DOM focus the whole time, an `aria-activedescendant`\npointing at whichever option is highlighted (the highlight moves,\nfocus doesn't), and a `role=\"listbox\"` popup. `popover=\"manual\"` is\nused deliberately, this needs its own open/close rules (open on\nfocus or typing, not just a single click), so light-dismiss is\nhandled by hand: Escape in the keydown handler, outside-click via\nthe effect below.",
          "extends": [],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label without removing it from the accessibility\ntree — see `TextField`'s `hideLabel` for the full rationale."
            },
            {
              "name": "labelOffset",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Set to `false` to hard-align the label flush with the field's left\nedge, undoing the default inset that lines it up with the input's own\ntext padding (`--kernel-label-inset`)."
            },
            {
              "name": "options",
              "type": "ComboboxOption[]",
              "optional": true,
              "default": "[]"
            },
            {
              "name": "groups",
              "type": "ComboboxGroup[]",
              "optional": true
            },
            {
              "name": "value",
              "type": "string",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "string",
              "optional": true,
              "default": "\"\""
            },
            {
              "name": "onValueChange",
              "type": "(value: string, details: ChangeDetails<ComboboxChangeReason>) => void",
              "optional": true,
              "description": "Called before the selection changes, with the reason (`\"item-press\"`, `\"keyboard\"` or `\"clear\"`); `details.cancel()`\nkeeps the current selection (and the listbox open)."
            },
            {
              "name": "placeholder",
              "type": "string",
              "optional": true
            },
            {
              "name": "emptyMessage",
              "type": "ReactNode",
              "optional": true,
              "default": "\"No results\""
            },
            {
              "name": "shouldFilter",
              "type": "boolean",
              "optional": true,
              "default": "true"
            },
            {
              "name": "filter",
              "type": "ComboboxFilter",
              "optional": true,
              "description": "Replace the built-in ranked fuzzy match (see `fuzzyScore`). Return a\nscore above 0 to keep an option, higher first; 0 hides it."
            },
            {
              "name": "placement",
              "type": "FloatingPlacement",
              "optional": true,
              "default": "\"bottom\"",
              "description": "Which side of the field the listbox opens on."
            },
            {
              "name": "align",
              "type": "FloatingAlign",
              "optional": true,
              "default": "\"center\"",
              "description": "Cross-axis alignment relative to the field."
            },
            {
              "name": "offset",
              "type": "number",
              "optional": true,
              "default": "8",
              "description": "Gap between the field and the listbox, in pixels."
            },
            {
              "name": "renderOption",
              "type": "( option: ComboboxOption, state: { active: boolean; selected: boolean; group?: ComboboxGroup; index: number; /** Matched `[start, end)` spans of `option.label` for the current * query, for drawing your own highlight. Empty with a custom `filter`. */ matches: Array<[number, number]>; }, ) => ReactNode",
              "optional": true
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-combobox": {
          "description": "`<kernel-combobox>` — the WAI-ARIA 1.2 combobox pattern: a real\n`<input role=\"combobox\">` that keeps DOM focus the whole time, an\n`aria-activedescendant` pointing at whichever option is highlighted\n(the highlight moves, focus doesn't), and a `role=\"listbox\"` popup.\n`popover=\"manual\"` is used deliberately — this needs its own\nopen/close rules (open on focus or typing, not just a click), so\nlight-dismiss is handled by hand: Escape in the keydown handler,\noutside-click via a `pointerdown` listener.\n\nOptions are declared as real `<option>` children (same convention\nas `<kernel-select>`), moved out of the light DOM at connect and\nrendered as the listbox's own `role=\"option\"` divs.\n\nAttributes: `label` (required, still the accessible name even when\n`hide-label` is set), `hide-label` (boolean), `no-label-offset`\n(boolean — hard-aligns the label flush left instead of the default\ninset that lines it up with the input's own text padding),\n`placeholder`, `value`, `empty-message` (default \"No results\"),\n`placement` (default bottom), `align` (start/center/end, default\ncenter), `offset` (px, default 8).\nEvents: `beforevaluechange` (`event.detail.value`), dispatched before\nthe selection changes with `detail.reason` — `\"item-press\"`,\n`\"keyboard\"` (Enter on the highlighted option) or `\"clear\"` (the text\nfield emptied). It's cancelable: `preventDefault()` keeps the current\nselection. Then `valuechange`, with the same detail, once it has changed.\n\nFiltering is a ranked fuzzy match (`fuzzyScore`): best matches first\nwithin each group, matched characters wrapped in `<mark>`. Set the\n`filter` property to `(text, query) => number` to replace it (a score\nabove 0 keeps an option, higher first).\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<input role=\"combobox\">`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "hide-label",
            "no-label-offset",
            "placeholder",
            "value"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ value: string; reason: \"clear\" | \"item-press\" | \"keyboard\"; event?: Event }",
            "valuechange": "{ value: string; reason: \"clear\" | \"item-press\" | \"keyboard\"; event?: Event }"
          }
        }
      }
    },
    "command-palette": {
      "name": "Command Palette",
      "react": {
        "CommandPalette": {
          "extends": [],
          "props": [
            {
              "name": "open",
              "type": "boolean",
              "optional": false
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean, details: ChangeDetails<CommandPaletteOpenChangeReason>) => void",
              "optional": false,
              "description": "Called with the reason the palette wants to close — `\"escape-key\"`,\n`\"outside-press\"`, `\"item-press\"`, `\"item-keyboard\"` or\n`\"programmatic\"`. The palette is\ncontrolled, so not updating `open` keeps it open; `details.cancel()`\nsays so explicitly (an item's `onSelect` still runs either way)."
            },
            {
              "name": "items",
              "type": "CommandPaletteItem[]",
              "optional": true
            },
            {
              "name": "groups",
              "type": "CommandPaletteGroup[]",
              "optional": true
            },
            {
              "name": "placeholder",
              "type": "string",
              "optional": true,
              "description": "Filter field placeholder, also its accessible name. Defaults to `\"Filter commands\"`."
            },
            {
              "name": "emptyMessage",
              "type": "ReactNode",
              "optional": true,
              "description": "Shown when nothing matches. Defaults to `\"No results\"`."
            },
            {
              "name": "blur",
              "type": "boolean",
              "optional": true,
              "description": "Light frost on the `::backdrop` (`backdrop-filter: blur(8px)`). Defaults to `false`."
            },
            {
              "name": "shouldFilter",
              "type": "boolean",
              "optional": true,
              "description": "Set to false when results are filtered by the consumer."
            },
            {
              "name": "filter",
              "type": "CommandPaletteFilter",
              "optional": true,
              "description": "Replace the built-in ranked fuzzy match (see `fuzzyScore`). Return a\nscore above 0 to keep an item, higher first; 0 hides it."
            },
            {
              "name": "renderItem",
              "type": "( item: CommandPaletteItem, state: { active: boolean; group?: CommandPaletteGroup; index: number }, ) => ReactNode",
              "optional": true
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<CommandPaletteLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-command-palette": {
          "description": "`<kernel-command-palette>` — a real `<dialog>`, opened with\n`showModal()`, same reasoning as `<kernel-dialog>`: native top-layer\nstacking, a native focus trap, native Escape-to-close. The filter\ninput follows the same WAI-ARIA combobox pattern as\n`<kernel-combobox>`: a `role=\"listbox\"` of `role=\"option\"` items, an\n`aria-activedescendant` pointing at whichever is highlighted, focus\nstaying on the input throughout. Opening the palette and every change\nto the query highlight the first match, so typing and pressing Enter\nruns the top result.\n\nOpening and closing are immediate because this keyboard-driven surface\nshould respond in the same frame as its shortcut.\n\nItems carry an `onSelect` callback, which isn't expressible as an\nHTML attribute — set them via the `items` property (not attribute):\n`paletteEl.items = [{ id, label, description?, onSelect }]`.\n\nAttributes: `open` (toggle to show/hide), `placeholder` (default\n\"Filter commands\"), `empty-message` (default \"No results\"), `blur`\n(boolean — light frost on the `::backdrop`), and the built-in string\n`label-dialog` (default \"Command palette\") — or the `labels` property.\n\nClosing dispatches a bubbling, cancelable `cancel` event first (the\nnative `<dialog>`'s name for \"about to close\", as on `kernel-dialog`), with\n`detail.reason` — `\"escape-key\"`, `\"outside-press\"`, `\"item-press\"`,\n`\"item-keyboard\"` or `\"programmatic\"` (the native dialog closing some\nother way). `preventDefault()` keeps the palette open; an item's\n`onSelect` still runs.\n\nFiltering is a ranked fuzzy match over each item's label and\ndescription (`fuzzyFilter`): best matches first within each group, the\nmatched characters wrapped in `<mark>`. Set the `filter` property to\n`(text, query) => number` to replace it (above 0 keeps an item).",
          "attributes": [
            "open",
            "placeholder",
            "empty-message",
            "blur",
            "label-dialog"
          ],
          "events": [],
          "eventDetails": {
            "cancel": "{ reason: \"escape-key\" | \"item-keyboard\" | \"item-press\" | \"outside-press\" | \"programmatic\"; event?: Event }"
          }
        }
      }
    },
    "composer": {
      "name": "Composer",
      "react": {
        "Composer": {
          "description": "A chat message input: no `<form>` (a composer submits via keyboard or a\nbutton, never page navigation), a real `<textarea>` growing with\n`field-sizing: content` exactly like `Textarea`, and leading/trailing\naction slots for attachments, model pickers, a send button, etc.",
          "extends": [],
          "props": [
            {
              "name": "value",
              "type": "string",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "string",
              "optional": true
            },
            {
              "name": "onValueChange",
              "type": "(value: string) => void",
              "optional": true
            },
            {
              "name": "onSubmit",
              "type": "(value: string) => void",
              "optional": true
            },
            {
              "name": "submitOn",
              "type": "\"mod+enter\" | \"enter\"",
              "optional": true,
              "default": "\"mod+enter\"",
              "description": "`\"mod+enter\"` (default): Enter alone inserts a newline, Cmd/Ctrl+Enter\nsubmits — the right default for a multi-line message. `\"enter\"`: plain\nEnter submits, Shift+Enter inserts a newline — closer to a single-line\nchat box."
            },
            {
              "name": "placeholder",
              "type": "string",
              "optional": true
            },
            {
              "name": "disabled",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "thinking",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Shows the animated border sweep and blocks submission — the same\nvisual language most AI products already use for \"actively working\",\napplied here instead of as a standalone decorative component."
            },
            {
              "name": "actionsLeading",
              "type": "ReactNode | ((context: { submit: () => void }) => ReactNode)",
              "optional": true,
              "description": "A plain node, or a function receiving `submit` — so a trailing send\nbutton can trigger the same Enter-key submit path (trim/empty/disabled\nguards, uncontrolled-value clearing) instead of re-implementing it."
            },
            {
              "name": "actionsTrailing",
              "type": "ReactNode | ((context: { submit: () => void }) => ReactNode)",
              "optional": true
            },
            {
              "name": "id",
              "type": "string",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<ComposerState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<ComposerLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-composer": {
          "description": "`<kernel-composer>` — a chat message input: a real `<textarea>`\ngrowing with `field-sizing: content` (same mechanism as\n`<kernel-textarea>`), plus leading/trailing action rows for\nattachments, model pickers, a send button, etc.\n\nAttributes: `value`, `placeholder`, `disabled`, `thinking` (shows the\nanimated border sweep and blocks submission — the same \"actively\nworking\" language most AI products use), `submit-on`\n(`mod+enter` default | `enter`), and the built-in string\n`label-message` (the textarea's accessible name when there's no\n`placeholder`, default \"Message\") — or the `labels` property.\n\nLight-DOM children tagged `slot=\"leading\"` / `slot=\"trailing\"` (no\nreal shadow DOM here, so this is a plain attribute convention, not\nthe native `<slot>` mechanism) are moved into the matching action\nrow once, at connect.\n\nEvents: native `input` bubbles from the textarea as usual. A\n`submit` `CustomEvent` (`event.detail.value`) fires when Enter (per\n`submit-on`) is pressed with a non-empty, non-disabled, non-thinking\nvalue — the textarea is cleared automatically afterward. A trailing\nsend button can trigger the same path by calling the element's own\npublic `submit()` method from its click handler.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<textarea>`; a host `aria-label` wins over the\nplaceholder and the built-in \"Message\".",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "value",
            "placeholder",
            "disabled",
            "thinking",
            "id",
            "label-message"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [
            "submit"
          ],
          "eventDetails": {
            "submit": "{ value: string }"
          }
        }
      }
    },
    "context-menu": {
      "name": "Context Menu",
      "react": {
        "ContextMenu": {
          "description": "Same `role=\"menu\"` primitives as DropdownMenu, MenuItem and\nMenuSeparator are imported straight from there, only the trigger and\npositioning differ: this opens on the native `contextmenu` event\ninstead of a `popoverTarget` button, and is placed at the cursor\ninstead of anchored to an element, so `popover=\"manual\"` plus a\nmanually-managed `showPopover()`/`hidePopover()` replaces the\ndeclarative `popoverTarget` wiring, and outside-click/scroll dismissal\nhas to be wired up by hand the same way Combobox does for its own\n`popover=\"manual\"` listbox.\n\nA right-click focuses the menu itself, not its first item, so nothing is\nhighlighted until the pointer reaches an item or an arrow key is pressed\n(ArrowDown lands on the first item, ArrowUp on the last). The keyboard's\nown context-menu key opens straight onto the first item. Focus and\nhighlight are shared with DropdownMenu through `utils/menuFocus.ts`.\nEscape, a selection or a scroll returns focus to whatever had it before\nthe menu opened (else the right-clicked element, else the trigger region);\nan outside press leaves focus where that press put it.\n\nThe menu is named by `label` (falling back to `labels.menu`) rather\nthan `aria-labelledby`: the right-click area is arbitrary content,\noften a whole row or canvas, so its text would make a poor name.",
          "extends": [],
          "props": [
            {
              "name": "render",
              "type": "ReactNode",
              "optional": false,
              "description": "The area that opens the menu on right-click (or long-press)."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false,
              "description": "The menu's content: `MenuItem`s and `MenuSeparator`s."
            },
            {
              "name": "label",
              "type": "string",
              "optional": true,
              "description": "The menu's accessible name, e.g. `\"File actions\"`. A `role=\"menu\"`\nneeds one, and unlike DropdownMenu there's no trigger button to take\nit from. Falls back to `labels.menu` (\"Context menu\")."
            },
            {
              "name": "labels",
              "type": "Partial<ContextMenuLabels>",
              "optional": true,
              "description": "Overrides for built-in strings."
            }
          ]
        }
      },
      "elements": {
        "kernel-context-menu": {
          "description": "`<kernel-context-menu>` — the same `role=\"menu\"` primitives as\n`<kernel-dropdown-menu>` (`<kernel-menu-item>`/\n`<kernel-menu-separator>` are the same tags, reused directly), only\nthe trigger and positioning differ: this opens on the native\n`contextmenu` event and is placed at the cursor instead of anchored\nto an element, so `popover=\"manual\"` plus manually-managed\n`showPopover()`/`hidePopover()` replaces `popovertarget`, and\noutside-click/scroll/Escape dismissal are wired up by hand (the\nthings `popover=\"auto\"` would otherwise give for free).\n\nChildren: one element tagged `slot=\"trigger\"` — the area that opens\nthe menu on right-click — everything else becomes the menu content.\n\nA right-click focuses the menu itself, not its first item, so nothing is\nhighlighted until the pointer reaches an item or an arrow key is pressed\n(ArrowDown lands on the first item, ArrowUp on the last). The keyboard's\nown context-menu key opens straight onto the first item. Focus and\nhighlight are shared with `<kernel-dropdown-menu>` through\n`utils/menuFocus.ts`. Escape, a selection or a scroll returns focus to\nwhatever had it before the menu opened (else the right-clicked element,\nelse the trigger region); an outside press leaves focus where it put it.\n\nAttributes: `label` (the menu's accessible name, e.g. \"File actions\";\nfalls back to the built-in `label-menu`, \"Context menu\"). A\n`role=\"menu\"` needs a name, and the right-click area is arbitrary\ncontent that would make a poor one, so it isn't `aria-labelledby` it.",
          "attributes": [
            "label",
            "label-menu"
          ],
          "events": []
        }
      }
    },
    "data-table": {
      "name": "Data Table",
      "react": {
        "DataTable": {
          "description": "`Table` + `TextField` + `Pagination` composed together, with filter,\nsort, and page state managed internally, this is the \"behaviour\nlayered on top\" the catalog promises, not a lower-level primitive of\nits own. Reach for the parts directly instead if you need the state\nto live outside this component.",
          "extends": [],
          "props": [
            {
              "name": "columns",
              "type": "DataTableColumn<T>[]",
              "optional": false
            },
            {
              "name": "data",
              "type": "T[]",
              "optional": false
            },
            {
              "name": "rowKey",
              "type": "(row: T) => string",
              "optional": false
            },
            {
              "name": "filterLabel",
              "type": "string",
              "optional": true,
              "description": "The filter field's visible label. Falls back to `filterPlaceholder`\nwhen omitted, which is how that prop used to be used."
            },
            {
              "name": "filterPlaceholder",
              "type": "string",
              "optional": true,
              "default": "\"Filter\"",
              "description": "Placeholder text inside the filter field."
            },
            {
              "name": "pageSize",
              "type": "number",
              "optional": true,
              "default": "10"
            },
            {
              "name": "caption",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<DataTableLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-data-table": {
          "description": "`<kernel-data-table>` — `<kernel-table>` + a filter input +\n`<kernel-pagination>`, composed together (reusing their exact CSS\nclasses directly rather than nesting the custom elements themselves,\nsince this rebuilds its content on every filter/sort/page change and\nplain DOM sidesteps any custom-element upgrade-timing concerns for\ncontent that's this dynamic). Filter, sort, and page state live\ninside the component.\n\nColumns and data carry render callbacks, which aren't expressible as\nHTML attributes — set them via properties:\n`tableEl.columns = [...]`, `tableEl.data = [...]`,\n`tableEl.rowKey = (row) => row.id`.\n\nAttributes: `filter-label` (the field's visible label, falling back to\n`filter-placeholder`), `filter-placeholder` (default \"Filter\"),\n`page-size` (default 10), `caption`. Built-in strings (React's\n`DataTableLabels`): `label-results` (template applied to every count,\ne.g. `\"{count} rows\"`; the default is \"1 result\" / \"{count} results\" —\nset `labels.results` to a function for real plural rules),\n`label-navigation`, `label-previous-page`, `label-next-page`,\n`label-previous`, `label-next` — or the `labels` property.",
          "attributes": [
            "filter-label",
            "filter-placeholder",
            "page-size",
            "caption",
            "label-results",
            "label-navigation",
            "label-previous-page",
            "label-next-page",
            "label-previous",
            "label-next"
          ],
          "events": []
        }
      }
    },
    "date-picker": {
      "name": "Date Picker",
      "react": {
        "DatePicker": {
          "description": "The real WAI-ARIA \"grid\" pattern applied to an actual `<table>`: rows\nare weeks, columns are days of the week, exactly what a calendar month\nalready is, so no `role` overrides are needed on the table itself.\nDays outside the displayed month render as dimmed, non-interactive\ntext rather than disabled buttons, since they're not really \"this\nmonth's grid, minus some options\" the way a disabled `minDate`/\n`maxDate` day is, they're a different month's day shown for layout.\n\nKeyboard support moves focus within the days currently rendered in\nthe grid (arrow keys clamp at the first/last visible cell rather than\npaging to the adjacent month automatically); crossing a month\nboundary requires the Previous/Next month buttons. Extending arrow\nnavigation to auto-page months is a reasonable follow-up, not done\nhere to keep focus management simple and predictable.",
          "extends": [],
          "props": [
            {
              "name": "value",
              "type": "Date",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "Date",
              "optional": true
            },
            {
              "name": "onValueChange",
              "type": "(date: Date, details: ChangeDetails<DatePickerChangeReason>) => void",
              "optional": true,
              "description": "Called before the selection moves, with the reason (`\"day-press\"` or `\"keyboard\"`); `details.cancel()`\nkeeps the current day selected."
            },
            {
              "name": "minDate",
              "type": "Date",
              "optional": true
            },
            {
              "name": "maxDate",
              "type": "Date",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<DatePickerLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-date-picker": {
          "description": "`<kernel-date-picker>` — the real WAI-ARIA \"grid\" pattern applied to\nan actual `<table>`: rows are weeks, columns are days of the week.\nDays outside the displayed month render as dimmed, non-interactive\ntext, not disabled buttons — they're a different month's day shown\nfor layout, not \"this month's grid, minus some options\".\n\nKeyboard support moves focus within the days currently rendered in\nthe grid (arrow keys clamp at the grid's edges rather than\nauto-paging to the adjacent month); crossing a month boundary\nrequires the Previous/Next month buttons.\n\nBuilt-in strings: `label-previous-month` (\"Previous month\"),\n`label-next-month` (\"Next month\"), `label-weekdays` (comma-separated,\nSunday first; default \"Su,Mo,Tu,We,Th,Fr,Sa\"), or the `labels` property.\n\nAttributes: `value`, `min-date`, `max-date` — all `YYYY-MM-DD`.\nEvents: `beforevaluechange` (`event.detail.value`, a `YYYY-MM-DD`\nstring, with `detail.reason`: `\"day-press\"` or `\"keyboard\"`), dispatched\nbefore the selection moves; it's cancelable, and `preventDefault()`\nkeeps the current day. Then `valuechange`, with the same detail, once\nthe selection has moved.",
          "attributes": [
            "value",
            "min-date",
            "max-date",
            "label-previous-month",
            "label-next-month",
            "label-weekdays"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ value: string; reason: \"day-press\" | \"keyboard\"; event?: Event }",
            "valuechange": "{ value: string; reason: \"day-press\" | \"keyboard\"; event?: Event }"
          }
        }
      }
    },
    "date-range-picker": {
      "name": "Date Range Picker",
      "react": {
        "DateRangePicker": {
          "description": "Same table-grid markup and month navigation as DatePicker, but tracking\ntwo endpoints instead of one. A click either starts a fresh range or\ncompletes the open one: once both ends are set, the next click starts\nover, matching how most range pickers treat a third click.\n\nThe in-progress second half of a range (before it's actually clicked)\nis a hover preview only, `hoverDate` never reaches `onValueChange`.",
          "extends": [],
          "props": [
            {
              "name": "value",
              "type": "DateRange",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "DateRange",
              "optional": true,
              "description": "Defaults to `{}` (no range selected)."
            },
            {
              "name": "onValueChange",
              "type": "(range: DateRange, details: ChangeDetails<DateRangePickerChangeReason>) => void",
              "optional": true,
              "description": "Called before the range changes, with the reason (`\"day-press\"` or `\"keyboard\"`); `details.cancel()`\nkeeps the current range."
            },
            {
              "name": "minDate",
              "type": "Date",
              "optional": true
            },
            {
              "name": "maxDate",
              "type": "Date",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<DateRangePickerLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-date-range-picker": {
          "description": "`<kernel-date-range-picker>` — same table-grid markup and month\nnavigation as `<kernel-date-picker>`, but tracking two endpoints\ninstead of one. A click either starts a fresh range or completes the\nopen one; once both ends are set, the next click starts over. The\nin-progress second half of a range (before it's clicked) is a hover\npreview only — it never reaches the change events.\n\nBuilt-in strings: `label-previous-month` (\"Previous month\"),\n`label-next-month` (\"Next month\"), `label-weekdays` (comma-separated,\nSunday first; default \"Su,Mo,Tu,We,Th,Fr,Sa\"), or the `labels` property.\n\nAttributes: `value-from`, `value-to`, `min-date`, `max-date` — all\n`YYYY-MM-DD`. Events: `beforevaluechange`\n(`event.detail` = `{ from?, to?, reason }`, each date a `YYYY-MM-DD`\nstring), dispatched before the range changes; `reason` is `\"day-press\"`\nor `\"keyboard\"`, and `preventDefault()` keeps the current range. Then\n`valuechange`, with the same detail, once the range has changed.",
          "attributes": [
            "value-from",
            "value-to",
            "min-date",
            "max-date",
            "label-previous-month",
            "label-next-month",
            "label-weekdays"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ from: string; to: string; reason: \"day-press\" | \"keyboard\"; event?: Event }",
            "valuechange": "{ from: string; to: string; reason: \"day-press\" | \"keyboard\"; event?: Event }"
          }
        }
      }
    },
    "dialog": {
      "name": "Dialog",
      "react": {
        "Dialog": {
          "description": "A real `<dialog>`, opened with `showModal()`. That single call gets you\na native top-layer stacking context, a native focus trap, native\nEscape-to-close, and a native `::backdrop`, none of which have to be\nreimplemented in JavaScript. React keeps `open` in sync, exposes slot\nclass hooks for composition, and delays the final native `close()`\nuntil exit transitions finish so consumer-owned animations can run.\nFocus is restored by the browser when that final `close()` fires.",
          "extends": [],
          "props": [
            {
              "name": "open",
              "type": "boolean",
              "optional": false
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean, details: ChangeDetails<DialogOpenChangeReason>) => void",
              "optional": false,
              "description": "Called with `false` and the reason when the dialog asks to close:\n`\"close-button\"`, `\"escape-key\"`, `\"outside-press\"` or `\"programmatic\"`.\nThe dialog is controlled, so leaving `open` as it is keeps it open;\n`details.cancel()` says so explicitly, e.g. to ignore backdrop clicks\nwhile a form is dirty."
            },
            {
              "name": "title",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "closeOnBackdropClick",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Clicking the ::backdrop closes the dialog. On for a modal that's\ndismissable; turn off for one that must be explicitly confirmed."
            },
            {
              "name": "showCloseButton",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Hide the built-in close control entirely."
            },
            {
              "name": "renderClose",
              "type": "RenderProp<DialogState>",
              "optional": true,
              "description": "Replace the built-in close control."
            },
            {
              "name": "backdrop",
              "type": "\"default\" | \"blur\" | \"opaque\" | \"transparent\"",
              "optional": true,
              "default": "\"default\"",
              "description": "Per-dialog `::backdrop` treatment. Style further via\n`--kernel-dialog-backdrop-bg` / `--kernel-dialog-backdrop-filter`."
            },
            {
              "name": "side",
              "type": "\"center\" | \"left\" | \"right\" | \"top\" | \"bottom\"",
              "optional": true,
              "default": "\"center\"",
              "description": "Appear direction. `\"center\"` keeps the default scale-settling card;\na side turns the dialog into an edge-anchored sheet that slides in\nby translate instead — a drawer (nav, filters, details panel) reads\nas pulled in from off-screen, not grown from the middle of the\nscreen."
            },
            {
              "name": "className",
              "type": "ClassNameValue<DialogState>",
              "optional": true
            },
            {
              "name": "classNames",
              "type": "DialogClassNames",
              "optional": true,
              "description": "Typed class hooks for every structural slot."
            },
            {
              "name": "labels",
              "type": "Partial<DialogLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-dialog": {
          "description": "`<kernel-dialog>` — a real `<dialog>`, opened with `showModal()`.\nThat single call gets a native top-layer stacking context, a native\nfocus trap, native Escape-to-close, and a native `::backdrop`, none\nof it reimplemented here. Closing is delayed until exit transitions\nfinish so consumer animations can run; focus restores when the final\nnative `close()` fires.\n\nAttributes: `open` (toggle to show/hide — set it, don't call\n`showModal()` yourself), `title` (required — or use a child tagged\n`slot=\"title\"` for richer markup), `description`,\n`close-on-backdrop-click` (default true — set to `\"false\"` to\nrequire an explicit close), `show-close-button` (default true — set\nto `\"false\"` to omit), `backdrop` (default/blur/opaque/transparent),\n`side` (center/left/right/top/bottom, default center — a side turns\nthe dialog into an edge-anchored sheet that slides in by translate\ninstead of the default scale settle, for drawers like a mobile nav).\n\nBuilt-in strings: `label-close` (default \"Close\"), or the `labels`\nproperty (`{ close }`) — see `DialogLabels` in `@kernelui-lib/react`.\n\nPart classes (stable `data-slot` hooks too): dialog, header, title,\ndescription, content, close.\n\nEvents: a `close` event fires (bubbling, matching the native\n`<dialog>` event name) whenever the dialog finishes closing via any\npath — Escape, backdrop click, or the close button — with the `open`\nattribute already removed by the time it fires, and `detail.reason`\nsaying which path it was.\n\nBefore closing for one of those reasons, a bubbling, cancelable\n`cancel` event fires (the native `<dialog>`'s own name for \"about to\nclose\"), with `detail.reason`: `\"close-button\"`, `\"escape-key\"`,\n`\"outside-press\"`, or `\"programmatic\"` (the native dialog closed some\nother way, such as a `method=\"dialog\"` form). `preventDefault()` keeps\nthe dialog open. Removing the `open` attribute yourself closes it\nwithout asking.",
          "attributes": [
            "open",
            "title",
            "description",
            "backdrop",
            "show-close-button",
            "side",
            "label-close"
          ],
          "events": [
            "close"
          ],
          "eventDetails": {
            "close": "{ reason: string }",
            "cancel": "{ reason: string; event?: Event }"
          }
        }
      }
    },
    "dropdown-menu": {
      "name": "Dropdown Menu",
      "react": {
        "DropdownMenu": {
          "description": "`role=\"menu\"` on a `popover=\"auto\"` element: outside-click and Escape\ndismissal, and top-layer stacking, are native to the popover, arrow-key\nroving between items is the one part of the WAI-ARIA menu pattern that\nhas to be wired up by hand, there's no native menu element.\n\nFocus follows the WAI-ARIA menu button pattern. Opening from the keyboard\n(Enter, Space, ArrowDown) focuses the first item, and ArrowUp opens on the\nlast. Opening with a pointer focuses the menu itself, so no item is\nhighlighted until the pointer reaches one or a key is pressed. After that\nthe highlight follows the pointer by moving focus, so only one row is ever\nhighlighted, and focus rings show only for the keyboard.",
          "extends": [],
          "props": [
            {
              "name": "presentation",
              "type": "\"popover\" | \"disclosure\"",
              "optional": true,
              "description": "Native popover (default), or a details/summary disclosure that stays\nin the page's stacking context. For disclosure, render a <summary>\n(or Button render={<summary />}) instead of a button."
            },
            {
              "name": "render",
              "type": "RenderProp<{ open: boolean }>",
              "optional": false,
              "description": "The trigger."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "placement",
              "type": "FloatingPlacement",
              "optional": true,
              "description": "Which side of the trigger the menu opens on. Defaults to `\"bottom\"`."
            },
            {
              "name": "align",
              "type": "FloatingAlign",
              "optional": true,
              "description": "Cross-axis alignment relative to the trigger. Defaults to `\"center\"`."
            },
            {
              "name": "offset",
              "type": "number",
              "optional": true,
              "description": "Gap between the trigger and the menu, in pixels. Defaults to `8`."
            },
            {
              "name": "className",
              "type": "ClassNameValue<DropdownMenuState>",
              "optional": true,
              "description": "Classes for the menu popup."
            },
            {
              "name": "renderContent",
              "type": "RenderProp<DropdownMenuState>",
              "optional": true,
              "description": "Replace the popup element (e.g. wrap with Motion)."
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean, details: ChangeDetails<DropdownMenuOpenChangeReason>) => void",
              "optional": true,
              "description": "Called before the menu opens or closes, with the reason:\n`\"trigger-press\"`, `\"escape-key\"`, `\"outside-press\"`, `\"focus-out\"`\n(disclosure only), `\"item-press\"`, `\"item-keyboard\"` or `\"programmatic\"`.\n`details.cancel()` keeps it as it is — e.g. cancel `\"item-keyboard\"` to\nkeep the menu open while someone works through it with the keyboard."
            }
          ]
        },
        "DropdownMenuMorph": {
          "description": "`DropdownMenu`'s trigger-morphs-into-menu variant — transitions.dev's\n\"plus menu morph\" recipe: the panel's own container animates\nwidth/height/border-radius out from the trigger's exact footprint\n(see `useMenuMorph`'s FLIP technique) instead of scaling/fading in\nplace the way `DropdownMenu` does.\n\nThat one difference forces a second one: `DropdownMenu` is\n`popover=\"auto\"` and lets the platform's own light-dismiss close it,\nwhich is why it never calls `showPopover()`/`hidePopover()` itself —\nbut a popover's hide is deliberately not cancelable, so there's no\nway to defer it long enough for the shrink-back-to-the-trigger\nanimation to play first. This is `popover=\"manual\"` instead, with its\nown outside-click/Escape dismissal wired up by hand — the same\ntradeoff `ContextMenu` and `Combobox` already make for their own\nmanual popovers, and the reason this is a separate export rather than\na prop on `DropdownMenu` itself: the two don't just look different,\nthey're built on a different popover mode.\n\nShares `MenuItem`/`MenuSeparator`/`MenuContext` with `DropdownMenu` —\nonly the trigger/panel open-close mechanism differs, same as\n`ContextMenu`'s own relationship to those exports.",
          "extends": [],
          "props": [
            {
              "name": "render",
              "type": "RenderProp<{ open: boolean }>",
              "optional": false,
              "description": "The trigger, same shape as `DropdownMenu`'s."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "placement",
              "type": "FloatingPlacement",
              "optional": true,
              "default": "\"bottom\""
            },
            {
              "name": "align",
              "type": "FloatingAlign",
              "optional": true,
              "default": "\"center\""
            },
            {
              "name": "offset",
              "type": "number",
              "optional": true,
              "default": "8",
              "description": "Gap between the trigger and the menu, in pixels."
            },
            {
              "name": "className",
              "type": "ClassNameValue<DropdownMenuState>",
              "optional": true,
              "description": "Classes for the menu popup."
            },
            {
              "name": "renderContent",
              "type": "RenderProp<DropdownMenuState>",
              "optional": true,
              "description": "Replace the popup element (e.g. wrap with Motion)."
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean, details: ChangeDetails<DropdownMenuOpenChangeReason>) => void",
              "optional": true,
              "description": "Called before the menu opens or closes, with the reason; see\n`DropdownMenu`'s `onOpenChange`."
            }
          ]
        },
        "MenuItem": {
          "extends": [
            "Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"className\" | \"role\">"
          ],
          "props": [
            {
              "name": "destructive",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "onSelect",
              "type": "() => void",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<MenuItemState>",
              "optional": true
            },
            {
              "name": "render",
              "type": "RenderProp<MenuItemState>",
              "optional": true,
              "description": "Render as a different element — typically an `<a>`, React Router\n`Link`, or Next.js `Link` — while keeping menu keyboard behaviour."
            }
          ]
        }
      },
      "elements": {
        "kernel-dropdown-menu": {
          "description": "`<kernel-dropdown-menu>` — `role=\"menu\"` on a `popover=\"auto\"`\nelement: outside-click/Escape dismissal and top-layer stacking are\nnative to the popover; arrow-key roving between items is the one\npart of the WAI-ARIA menu pattern with no native element, wired up\nby hand.\n\nChildren: one element tagged `slot=\"trigger\"`, everything else\n(`<kernel-menu-item>`/`<kernel-menu-separator>`) becomes the menu.\n\nAttributes: `placement` (default bottom), `align` (start/center/end,\ndefault center), `offset` (px, default 8). `presentation=\"disclosure\"`\nuses a native details/summary in the page's stacking context; provide\n<summary slot=\"trigger\">. CSS owns entry/exit without a top-layer backdrop.\n\nFocus follows the WAI-ARIA menu button pattern. Opening from the keyboard\n(Enter, Space, ArrowDown) focuses the first item, and ArrowUp opens on the\nlast. Opening with a pointer focuses the menu itself, so no item is\nhighlighted until the pointer reaches one or a key is pressed. After that\nthe highlight follows the pointer by moving focus, so only one row is ever\nhighlighted, and focus rings show only for the keyboard.\n\nEvents: a bubbling, cancelable `beforetoggle` `CustomEvent` before the\nmenu opens or closes, `detail: { open, reason }` — `\"trigger-press\"`,\n`\"escape-key\"`, `\"outside-press\"`, `\"focus-out\"` (disclosure only),\n`\"item-press\"`, `\"item-keyboard\"` or `\"programmatic\"`. `preventDefault()`\nkeeps the menu as it is (e.g. veto `\"item-keyboard\"` to keep it open\nwhile someone works through it with the keyboard).",
          "attributes": [],
          "events": [],
          "eventDetails": {
            "beforetoggle": "{ open: boolean; reason: string; event?: Event }"
          }
        },
        "kernel-dropdown-menu-morph": {
          "description": "`<kernel-dropdown-menu-morph>` — `<kernel-dropdown-menu>`'s trigger-\nmorphs-into-menu variant, transitions.dev's \"plus menu morph\" recipe:\nthe panel's own box animates width/height/border-radius out from the\ntrigger's exact footprint (see `utils/menuMorph.ts`'s FLIP technique)\ninstead of scaling/fading in place.\n\nThat forces `popover=\"manual\"` instead of `\"auto\"`: a popover's hide\nis deliberately not cancelable, so there's no way to defer it long\nenough for the shrink-back-to-the-trigger animation to play first —\nthe same tradeoff `<kernel-context-menu>` already makes for its own\nmanual popover, with outside-click/Escape dismissal wired up by hand\nto replace what `popover=\"auto\"` gives for free.\n\nReuses `<kernel-menu-item>`/`<kernel-menu-separator>` directly, same\nas `<kernel-context-menu>` does — only the trigger/panel open-close\nmechanism differs.\n\nChildren: one element tagged `slot=\"trigger\"`, everything else\nbecomes the menu. Attributes: `placement` (default bottom), `align`\n(start/center/end, default center), `offset` (px, default 8).\nEvents: the same cancelable `beforetoggle` as `<kernel-dropdown-menu>`.",
          "attributes": [],
          "events": [],
          "eventDetails": {
            "beforetoggle": "{ open: boolean; reason: string; event?: Event }"
          }
        },
        "kernel-menu-item": {
          "description": "`<kernel-menu-item>` — a real `<button role=\"menuitem\">` by default.\nSet `href` to render as an `<a>` instead (native link semantics for\nnavigation, new-tab, etc.). Attributes: `disabled`, `destructive`,\n`href`, `target`, `rel`. Events: `select` fires on activation, after\nwhich the nearest `[popover]` ancestor (the menu) is closed — without\npreventingDefault on the click, so links still navigate.",
          "attributes": [
            "disabled",
            "destructive",
            "href",
            "target",
            "rel"
          ],
          "events": [
            "select"
          ],
          "eventDetails": {
            "select": null
          }
        },
        "kernel-menu-separator": {
          "description": "`<kernel-menu-separator>` — `role=\"separator\"`.",
          "attributes": [],
          "events": []
        }
      }
    },
    "empty-state": {
      "name": "Empty State",
      "react": {
        "EmptyState": {
          "description": "A zero-data placeholder: the \"nothing here yet\" panel for an empty\nlist, inbox, search or project. It's a real `<section>` labelled by its\nown heading (`aria-labelledby`), and the heading is a real `<h1>`–`<h6>`\nchosen by `headingLevel`, so a screen-reader user navigating by heading\nor landmark lands on it and hears what's missing, rather than meeting\na block of unlabelled centred text.\n\nThe icon is decorative (`aria-hidden`): the heading carries the\nmeaning. Extra content passed as `children` sits between the\ndescription and the actions.\n\nShaped as a container: `--kernel-radius-container` with\n`--kernel-padding-container-curve`, plus extra block padding so the\ncontent sits calmly in the middle at every rounding.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\" | \"title\">"
          ],
          "props": [
            {
              "name": "title",
              "type": "ReactNode",
              "optional": false,
              "description": "The heading. Rendered as a real `<h1>`–`<h6>` (see `headingLevel`)\nand used as the section's accessible name."
            },
            {
              "name": "headingLevel",
              "type": "1 | 2 | 3 | 4 | 5 | 6",
              "optional": true,
              "default": "3",
              "description": "Which heading element `title` renders as, so the empty state slots\ninto the page's outline. Defaults to `3`."
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true,
              "description": "One or two sentences under the heading: why it's empty, and what\nhappens next."
            },
            {
              "name": "icon",
              "type": "ReactNode",
              "optional": true,
              "description": "A decorative illustration or icon above the heading. It's hidden\nfrom assistive tech, because the heading already says what it means."
            },
            {
              "name": "actions",
              "type": "ReactNode",
              "optional": true,
              "description": "Buttons or links for the next step, e.g. \"Upload a file\"."
            },
            {
              "name": "variant",
              "type": "\"dashed\" | \"plain\"",
              "optional": true,
              "default": "\"dashed\"",
              "description": "`dashed` (default) draws a dashed outline, the convention for \"a\nspace waiting for content\"; `plain` drops it for use inside a surface\nthat already has its own edge."
            },
            {
              "name": "className",
              "type": "ClassNameValue<EmptyStateState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-empty-state": {
          "description": "`<kernel-empty-state>` — a zero-data placeholder on a real `<section>`\nlabelled by its own real heading (`aria-labelledby`), so a screen-reader\nuser navigating by heading or landmark lands on it and hears what's\nmissing. Mirrors `@kernelui-lib/react`'s `<EmptyState>`.\n\nAttributes: `heading` (the heading text; not `title`, which every\nelement already has as its native hover tooltip), `heading-level`\n(1–6, default 3), `description`, `variant` (`dashed` | `plain`, default\n`dashed`).\n\nSlots: a child with `slot=\"icon\"` becomes the decorative icon\n(`aria-hidden`); `slot=\"heading\"` and `slot=\"description\"` replace the\nattributes with rich content; `slot=\"actions\"` holds the next-step\nbuttons. Any other children sit between the description and actions.",
          "attributes": [
            "heading",
            "heading-level",
            "description",
            "variant"
          ],
          "events": []
        }
      }
    },
    "file-diff": {
      "name": "File Diff",
      "react": {
        "FileDiff": {
          "description": "A file's changes as a real `<table>` inside a `<details>`.\n\nA diff *is* tabular data — old line number, new line number, change marker,\ncontent — so it's a table, which is also what gives each row a readable\nstructure instead of a wall of pre-formatted text. Line numbers live in\ntheir own cells rather than in the content, so copying a diff copies the\ncode.\n\nThe change marker (`+`/`−`) stays in the DOM as text. Colour alone doesn't\ntell you whether a line was added or removed, and a diff where that's\nambiguous is a diff you can't read.\n\nLike `Reasoning`, the streaming edge is what drives the disclosure: it holds\nopen while rows arrive, then settles closed a beat after they stop, so the\ncompleted change registers before it folds away. Manual toggling after that\nis left alone.",
          "extends": [
            "Omit<HTMLAttributes<HTMLDetailsElement>, \"className\" | \"children\">"
          ],
          "props": [
            {
              "name": "path",
              "type": "ReactNode",
              "optional": false,
              "description": "The changed file's path, shown on the summary."
            },
            {
              "name": "rows",
              "type": "DiffRow[]",
              "optional": false
            },
            {
              "name": "streaming",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Rows are still arriving. Keeps the diff open, then collapses it a beat\nafter the change lands."
            },
            {
              "name": "showLineNumbers",
              "type": "boolean",
              "optional": true,
              "default": "true"
            },
            {
              "name": "collapseOnComplete",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Collapse once the diff is complete."
            },
            {
              "name": "defaultOpen",
              "type": "boolean",
              "optional": true,
              "description": "Defaults to `true`."
            },
            {
              "name": "additions",
              "type": "number",
              "optional": true,
              "description": "Explicit counts, when `rows` is a window onto a larger diff. Derived from `rows` when omitted."
            },
            {
              "name": "deletions",
              "type": "number",
              "optional": true,
              "description": "Same as `additions`: derived from `rows` when omitted."
            },
            {
              "name": "className",
              "type": "ClassNameValue<FileDiffState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<FileDiffLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-file-diff": {
          "description": "`<kernel-file-diff>` — a file's changes as a real `<table>` inside a\n`<details>`. A diff *is* tabular data (old line, new line, marker, content);\nsee `@kernelui-lib/react`'s `<FileDiff>` for that reasoning, for why the\n`+`/`−` marker stays in the DOM as text, and for why the streaming edge\ndrives the disclosure.\n\nRows arrive through a DOM property, since a diff can't travel through an\nattribute:\n\n  el.rows = [{ kind: \"add\", newLine: 12, content: \"…\" }, …]\n\nAttributes: `path`, `streaming`, `no-line-numbers`, `collapse-on-complete`,\n`additions` / `deletions` (override the derived counts), `default-open=\"false\"`.\nBuilt-in (screen-reader) strings: `label-old-line`, `label-new-line`,\n`label-change`, `label-content`, `label-unnamed-file` (\"the file\"),\n`label-caption` (template, default\n`\"Changes to {path}: {additions} added, {deletions} removed\"`), or the\n`labels` property.",
          "attributes": [
            "path",
            "streaming",
            "no-line-numbers",
            "additions",
            "deletions",
            "label-old-line",
            "label-new-line",
            "label-change",
            "label-content",
            "label-unnamed-file",
            "label-caption"
          ],
          "events": []
        }
      }
    },
    "file-upload": {
      "name": "File Upload",
      "react": {
        "FileUpload": {
          "description": "A real `<input type=\"file\">`, wrapped entirely inside a real\n`<label htmlFor={id}>` that IS the drop zone — icon, instructions, and\npadding all inside the label, so the whole zone is natively clickable\nwith no manual `.click()` forwarding. Drag-and-drop is a progressive\nenhancement on top of that: `dragenter`/`dragover`/`drop` re-assign the\ndropped files onto the real input's own `.files` via a fresh\n`DataTransfer`, so it stays authoritative either way. The native input\nitself has no drag-and-drop and no size/count limits at all — `accept`\nonly filters the OS dialog, never a drop — so all of that validation is\nreimplemented once, in `validateFiles`, and reused by both paths. A\ndropped *folder* takes one further check that no amount of inspecting a\n`File` can do (`collectDroppedDirectories`), and is rejected outright\nrather than listed as a row that can never upload anything.\n\nPass `preview` to mould the dropzone around the current selection:\ndisplayable images become object-URL thumbnails (one fills the zone;\nseveral tile), and other files become compact chips. Off by default.\nPass `aspectRatio=\"square\"` for a 1:1 Card-radius tile — useful when\nthe selection is meant to read as a single photo rather than a wide\ndashed field.\n\n`dragActive` also drives a page-level scroll lock (`documentElement`\n`overflow`/`touch-action`) for the duration of the drag: mobile browsers\notherwise scroll or rubber-band the page out from under a drag gesture\nthat's hovering the dropzone. Because touch-originated drags don't\nreliably fire a matching `dragleave`/`drop` (tab backgrounded, gesture\naborted by the OS, dropped outside the window), a watchdog timer\nre-armed on every `dragenter`/`dragover` — plus `window` `dragend`/\n`drop`/`blur` and `visibilitychange` listeners — force-clears\n`dragActive` if the drag goes silent, so the dropzone can't get stuck\nlit with scroll locked.",
          "extends": [
            "Omit< InputHTMLAttributes<HTMLInputElement>, \"className\" | \"type\" | \"value\" | \"defaultValue\" | \"onChange\" | \"onError\" | \"size\" >"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label heading without removing it from the\ndropzone's accessible name — see `TextField`'s `hideLabel` for the\nfull rationale. The hint text (`description`, or the default \"Drag\nand drop, or click to browse\") still shows underneath either way."
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "labelOffset",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Set to `false` to hard-align the error text flush with the field's\nleft edge, undoing the default inset that lines it up with the\ndropzone's own text (`--kernel-label-inset`). Doesn't affect `label`\nor the hint text, which sit above the dropzone as a heading, not\ninset text-field content, so they never carry the inset in the first\nplace."
            },
            {
              "name": "files",
              "type": "File[]",
              "optional": true
            },
            {
              "name": "defaultFiles",
              "type": "File[]",
              "optional": true,
              "default": "[]"
            },
            {
              "name": "onFilesChange",
              "type": "(files: File[]) => void",
              "optional": true
            },
            {
              "name": "accept",
              "type": "string",
              "optional": true
            },
            {
              "name": "multiple",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "maxFiles",
              "type": "number",
              "optional": true
            },
            {
              "name": "maxSize",
              "type": "number",
              "optional": true,
              "description": "Max size per file, in bytes."
            },
            {
              "name": "onError",
              "type": "(error: FileUploadError) => void",
              "optional": true,
              "description": "Fires whenever a pick or drop is rejected for exceeding `maxFiles`/\n`maxSize`, failing `accept`, or being a dropped folder rather than a\nfile (`type: \"directory\"`). Distinct from `invalid`/`errorMessage`,\nwhich are for form-level validation state."
            },
            {
              "name": "preview",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "When true, the dropzone moulds around the current selection:\nbrowser-displayable images (`image/*` except TIFF) render as\nobject-URL thumbnails inside the zone (one image fills; several\ntile in a grid), and non-image files show as compact name chips.\nOpt-in so existing consumers keep the empty-state chrome until they\nask for it. Object URLs are revoked when the selection changes."
            },
            {
              "name": "aspectRatio",
              "type": "\"auto\" | \"square\"",
              "optional": true,
              "default": "\"auto\"",
              "description": "Locks the dropzone to a 1:1 tile. Off by default so existing\nfull-width upload zones keep their natural height. When set, the\ndropzone reads Card's concentric radius pair (`--kernel-radius-sheet`\nouter / `--kernel-radius-md` inner via `--kernel-padding-sheet`) so a\nmoulded image preview shares a corner centre with the frame."
            },
            {
              "name": "errorMessage",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "invalid",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "disabled",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "className",
              "type": "ClassNameValue<FileUploadState>",
              "optional": true
            },
            {
              "name": "wrapperClassName",
              "type": "ClassNameValue<FileUploadState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<FileUploadLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-file-upload": {
          "description": "`<kernel-file-upload>` — a real `<input type=\"file\">` wrapped entirely\ninside a real `<label>` that IS the drop zone, same approach as\n`@kernelui-lib/react`'s `<FileUpload>` (see that file for the full\nrationale). No `files` attribute: a `FileList` can't serialize into a\nstring, and the real input's own `.files` is already the correct\nsource of truth, so this element reads it directly after every\n`change`/drop and re-renders its own file-list DOM from it. Validation\nrejections dispatch a `kernel-file-upload-error` `CustomEvent` (there's\nno prop-callback equivalent for a vanilla element) — including\n`type: \"directory\"` for a dropped folder, which the platform hands over\nas an unreadable 0-byte `File` rather than refusing outright.\n\nEvents: `change` (bubbling) fires on the host only when the selection\nchanges, after a pick or drop passes validation or a file is removed;\nread the files from the inner `input[type=file]`'s `.files`. The inner\ninput's own native `change` is stopped at the input, so a rejected pick\nnever reaches a host `change` listener. `kernel-file-upload-error`\n(not bubbling) carries `detail: { type, files }`, where `type` is\n`\"accept\"`, `\"max-size\"`, `\"max-files\"` or `\"directory\"` and `files`\nis the rejected `File[]`. The element doesn't show the message itself:\nset `invalid` and `error-message` from the handler, and clear them on\nthe next `change`.\n\n`id` stays on the host (so `getElementById()` finds the element whose\nevents you listen to); the inner input gets `<id>-control`.\n\nAttributes: `label` (required, still contributes to the dropzone's\naccessible name even when `hide-label` is set), `hide-label`\n(boolean — hides the label heading only, the hint text underneath\nstill shows), `description` (replaces the default \"Drag and drop, or\nclick to browse\" hint), `accept`, `multiple` (boolean), `max-files`,\n`max-size` (bytes), `preview` (boolean — moulds the dropzone around\nthe current selection with image object-URL thumbnails / file chips;\noff by default), `aspect-ratio=\"square\"` (locks a 1:1 Card-radius\ntile; omit or `\"auto\"` for the default full-width field),\n`error-message`, `no-label-offset` (boolean —\nhard-aligns the error text flush left instead of the default inset;\ndoesn't affect `label` or the hint text, which sit above the dropzone\nas a heading rather than inset text-field content), `invalid`,\n`disabled`, `name`. Built-in strings: `label-selected-files` (default\n\"Selected files\"), `label-remove-file` (template, default\n`\"Remove {fileName}\"`), or the `labels` property.\n\nWhile a drag is over the dropzone, page scroll is locked (`documentElement`\n`overflow`/`touch-action`) so mobile browsers don't scroll/rubber-band the\npage out from under the gesture. Touch-originated drags don't reliably\nfire a matching `dragleave`/`drop` (backgrounded tab, OS-aborted gesture,\ndropped outside the window), so a watchdog timer re-armed on every\n`dragenter`/`dragover` — plus `window` `dragend`/`drop`/`blur` and\n`visibilitychange` listeners — force-clears the drag-active state if the\ndrag goes silent, so the dropzone can't get stuck lit with scroll locked.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<input type=\"file\">`; an authored\n`aria-describedby` is added after the error id.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "hide-label",
            "description",
            "accept",
            "multiple",
            "max-files",
            "max-size",
            "preview",
            "aspect-ratio",
            "error-message",
            "no-label-offset",
            "invalid",
            "disabled",
            "name",
            "label-selected-files",
            "label-remove-file"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [
            "kernel-file-upload-error"
          ],
          "eventDetails": {
            "kernel-file-upload-error": "{ type: \"max-files\" | \"max-size\" | \"accept\" | \"directory\"; files: File[] }",
            "change": null
          }
        }
      }
    },
    "footer": {
      "name": "Footer",
      "react": {
        "Footer": {
          "description": "A real `<footer>` landmark.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\">"
          ],
          "props": [
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-footer": {
          "description": "`<kernel-footer>` — a real `<footer>` landmark.",
          "attributes": [],
          "events": []
        }
      }
    },
    "header": {
      "name": "Header",
      "react": {
        "Header": {
          "description": "A real `<header>` landmark, not a `<div>` pretending to be one.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\">"
          ],
          "props": [
            {
              "name": "sticky",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Pins the header to the top of its scroll container with a blurred\nbackdrop. Off by default; a page can have more than one `<header>`,\nonly the top-level site one is usually sticky. The bar turns solid\nunder `prefers-reduced-transparency: reduce` (it reads\n`--kernel-opacity-glass` and `--kernel-blur-backdrop`)."
            },
            {
              "name": "className",
              "type": "ClassNameValue<HeaderState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-header": {
          "description": "`<kernel-header>` — a real `<header>` landmark, not a `<div>`\npretending to be one.\n\nAttributes: `sticky` (boolean) — pins the header to the top of its\nscroll container with a blurred backdrop, which turns solid under\n`prefers-reduced-transparency: reduce`.",
          "attributes": [
            "sticky"
          ],
          "events": []
        }
      }
    },
    "hover-card": {
      "name": "Hover Card",
      "react": {
        "HoverCard": {
          "description": "A heavier Tooltip: same `useFloatingPosition` + `popover=\"manual\"` +\nhover/focus-triggered mechanism, but for richer content that can be\nmulti-line and interactive (a link inside the card, say). That\ninteractivity is why open/close aren't instant like Tooltip's\n(defaults 0/0): `openDelay` avoids flashing a card for every pointer\npass, and `closeDelay` gives the pointer time to travel from the\ntrigger into the card itself before it closes out from under it.\nBoth timers are cancelled if the pointer re-enters either element\nbefore they fire.\n\nDefaults (150ms open / 100ms close) sit between Tooltip's instant\nopen and the old 400/200 pair: transitions.dev's tooltip recipe uses\nan ~80ms appear-only delay with instant exit, but HoverCard content\nis interactive and heavier, so we keep a short open filter and a\nnon-zero close bridge without feeling sluggish. Focus still opens\nnear-instantly regardless.\n\n`popover=\"manual\"` because that custom timing is exactly what\n`popover=\"auto\"`'s built-in light-dismiss doesn't support, the same\nreasoning Combobox uses for its listbox.\n\n`interestfor` is declared on the trigger for the same reason Tooltip\ndeclares it: the native hover-intent API. Where a browser implements\nit (Chromium), it also shows the card on hover or focus and drops it\non a real Escape; everywhere else the handlers below do all the work,\nand they agree with it where both run.\n\nKeyboard: the card follows its trigger in the DOM, so Tab moves from\nthe trigger into a link inside it, and focus anywhere in the card\nkeeps it open. Escape dismisses it (WCAG 1.4.13, as Tooltip does),\nhanding focus back to the trigger if it was inside the card, without\nalso closing a dialog the trigger sits in.\n\n`data-open` / `data-closing` / `data-placement` / `data-align` expose\nstyling state for consumer CSS and Motion without targeting generated\nclass names. `data-closing` is what the exit animation hangs off, and\nit's set while the card is still open on purpose — see `hideNow`.",
          "extends": [],
          "props": [
            {
              "name": "content",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "placement",
              "type": "FloatingPlacement",
              "optional": true,
              "default": "\"bottom\""
            },
            {
              "name": "align",
              "type": "FloatingAlign",
              "optional": true,
              "default": "\"center\"",
              "description": "Cross-axis alignment relative to the trigger."
            },
            {
              "name": "offset",
              "type": "number",
              "optional": true,
              "default": "8",
              "description": "Gap between the trigger and the card, in pixels."
            },
            {
              "name": "className",
              "type": "ClassNameValue<HoverCardState>",
              "optional": true,
              "description": "Classes for the card popup."
            },
            {
              "name": "renderContent",
              "type": "RenderProp<HoverCardState>",
              "optional": true,
              "description": "Replace the popup element (e.g. wrap with Motion)."
            },
            {
              "name": "render",
              "type": "RenderProp<HoverCardState>",
              "optional": false,
              "description": "The element that triggers the card on hover/focus."
            },
            {
              "name": "openDelay",
              "type": "number",
              "optional": true,
              "default": "150",
              "description": "Delay before showing on hover, in milliseconds. Focus shows\nnear-instantly regardless, a keyboard user tabbing to the trigger\nshouldn't have to wait out a mouse-tuned delay."
            },
            {
              "name": "closeDelay",
              "type": "number",
              "optional": true,
              "default": "100",
              "description": "Delay before hiding once the pointer leaves both the trigger and\nthe card, in milliseconds."
            }
          ]
        }
      },
      "elements": {
        "kernel-hover-card": {
          "description": "`<kernel-hover-card>` — a heavier Tooltip: same\n`FloatingPositioner` + `popover=\"manual\"` mechanism, but for richer,\nmulti-line/interactive content, so open/close aren't instant like\nTooltip's (0/0): `open-delay` avoids flashing the card on every\npointer pass, `close-delay` gives the pointer time to travel from\nthe trigger into the card itself. Defaults are 150ms open / 100ms\nclose — snappier than the old 400/200, still slower than\ntransitions.dev's ~80ms tooltip appear-delay because this surface\nis interactive. Keyboard focus opens near-instantly regardless of\n`open-delay`. Touch is short-circuited to skip the hover-delay path\nentirely (no real hover on touch), relying on focus instead.\n\nKeyboard: the card follows its trigger in the DOM, so Tab moves from\nthe trigger into a link inside it, and focus anywhere in the card\nkeeps it open. Escape dismisses it (WCAG 1.4.13, as Tooltip does),\nhanding focus back to the trigger if it was inside the card, without\nalso closing a dialog the trigger sits in.\n\nChildren: one element tagged `slot=\"trigger\"`, everything else\nbecomes the card's content.\n\nAttributes: `placement` (default bottom), `align` (start/center/end,\ndefault center), `offset` (px, default 8), `open-delay` (ms, default\n150), `close-delay` (ms, default 100).",
          "attributes": [],
          "events": []
        }
      }
    },
    "input-otp": {
      "name": "Input OTP",
      "react": {
        "InputOTP": {
          "description": "A row of real `<input>` elements sharing one logical value: the\nconcatenated code string. Unlike RadioGroup's arrow-key roving, focus\nhere advances automatically as each digit is typed, mirroring how\nnative OTP autofill and every OTP UI users already know behaves.",
          "extends": [],
          "props": [
            {
              "name": "length",
              "type": "number",
              "optional": true,
              "default": "6"
            },
            {
              "name": "value",
              "type": "string",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "string",
              "optional": true
            },
            {
              "name": "onValueChange",
              "type": "(value: string) => void",
              "optional": true
            },
            {
              "name": "onComplete",
              "type": "(value: string) => void",
              "optional": true,
              "description": "Called once when the code first reaches `length` characters, not on\nevery subsequent render where it's still complete."
            },
            {
              "name": "label",
              "type": "ReactNode",
              "optional": true,
              "description": "A `<fieldset>` needs a `<legend>` the same way a form field needs a\nlabel; this is that legend's text."
            },
            {
              "name": "disabled",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<InputOTPLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-input-otp": {
          "description": "`<kernel-input-otp>` — a row of real `<input>` elements sharing one\nlogical value: the concatenated code string. Unlike RadioGroup's\narrow-key roving, focus here advances automatically as each digit is\ntyped, mirroring how native OTP autofill and every OTP UI users\nalready know behaves. Mirrors `@kernelui-lib/react`'s `<InputOTP>`.\n\nAttributes: `length` (default 6), `value`, `label`, `disabled`, and\nthe built-in string `label-digit` (template, default\n`\"Digit {digit} of {length}\"`) — or the `labels` property.\nDispatches a real, bubbling `change` event on every edit, and a\n`complete` CustomEvent (`event.detail.value`) once when the code\nfirst reaches `length` characters — not on every subsequent event\nwhere it's still complete, same as the React version's `onComplete`.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the `<fieldset>` that groups the digits.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "length",
            "value",
            "label",
            "disabled",
            "label-digit"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [
            "complete"
          ],
          "eventDetails": {
            "change": null,
            "complete": "{ value: string }"
          }
        }
      }
    },
    "kbd": {
      "name": "Kbd",
      "react": {
        "Kbd": {
          "description": "A keyboard key or shortcut, on the real `<kbd>` element, the one HTML\nelement that means \"user input from a keyboard\". A combination follows\nthe HTML spec's own pattern: an outer `<kbd>` holding one nested `<kbd>`\nper key, with the separator as real text between them, so the shortcut\nreads as one unit (\"Command plus K\") instead of a row of unrelated\nglyphs.\n\nModifier symbols (⌘ ⌥ ⇧ ⌃, arrows, Enter) get a visually hidden spoken\nname, because screen readers announce those glyphs inconsistently. The\n`mod` alias renders ⌘ on Apple platforms and Ctrl elsewhere, as text\nrather than icons, so it inherits the font and scales with it.\n\nEach key is sized like `Badge`: the same height, a radius that follows\n`--kernel-radius-control` but stops at a true half-height pill, and\ninline padding that grows by the width the rounded corners cut away.\nTabular figures keep a row of shortcuts aligned.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\">"
          ],
          "props": [
            {
              "name": "keys",
              "type": "string[]",
              "optional": true,
              "description": "A key combination, one entry per key, e.g. `[\"mod\", \"K\"]`. Each key\nrenders as its own nested `<kbd>`. The lowercase aliases `mod`, `alt`,\n`shift` and `ctrl` are resolved per platform (`mod` is ⌘ on Apple\nplatforms and Ctrl elsewhere); anything else renders as written. When\nomitted, `children` render as a single key."
            },
            {
              "name": "separator",
              "type": "ReactNode",
              "optional": true,
              "default": "\"+\"",
              "description": "Text between keys in a combination. It's real text, so a screen reader\nreads \"Command plus K\" rather than two unrelated keys. Defaults to `+`."
            },
            {
              "name": "platform",
              "type": "\"auto\" | \"apple\" | \"other\"",
              "optional": true,
              "default": "\"auto\"",
              "description": "Which platform's key names to use for the aliases. `auto` (default)\nreads it from the browser after hydration; server rendering and the\nfirst client render use the non-Apple names so the markup matches."
            },
            {
              "name": "className",
              "type": "ClassNameValue<KbdState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-kbd": {
          "description": "`<kernel-kbd>` — a keyboard key or shortcut on the real `<kbd>` element.\nA combination follows the HTML spec's own pattern: an outer `<kbd>`\nholding one nested `<kbd>` per key, with the separator as real text\nbetween them, so it reads as one unit (\"Command plus K\"). Mirrors\n`@kernelui-lib/react`'s `<Kbd>`.\n\nModifier symbols (⌘ ⌥ ⇧ ⌃, arrows, Enter) get a visually hidden\nspoken name, because screen readers announce those glyphs\ninconsistently. Each key is sized like `<kernel-badge>`'s optical pill.\n\nAttributes: `keys` (space-separated, e.g. `keys=\"mod shift P\"`; the\nlowercase aliases `mod`, `alt`, `shift`, `ctrl` resolve per platform,\n`mod` being ⌘ on Apple platforms and Ctrl elsewhere), `separator`\n(default `+`), `platform` (`auto` | `apple` | `other`, default `auto`).\nWithout `keys`, the element's own text is the single key.",
          "attributes": [
            "keys",
            "separator",
            "platform"
          ],
          "events": []
        }
      }
    },
    "label": {
      "name": "Label",
      "react": {
        "Label": {
          "description": "A standalone `<label>` for cases where a component doesn't build its\nown (a custom control composed from several elements, for instance).\n`TextField` and `Checkbox` already render their own, correctly linked,\nlabel internally; reach for this one when they don't fit.",
          "extends": [
            "Omit<LabelHTMLAttributes<HTMLLabelElement>, \"className\">"
          ],
          "props": [
            {
              "name": "required",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-label": {
          "description": "`<kernel-label>` — a standalone `<label>` for cases where a component\ndoesn't build its own. Set `for=\"<input id>\"` the same way you would\non a plain `<label>`.\n\nAttributes: `for` (passed straight through to the native label),\n`required` (boolean — shows a `*`).",
          "attributes": [
            "for",
            "required"
          ],
          "events": []
        }
      }
    },
    "message": {
      "name": "Message",
      "react": {
        "MessageList": {
          "description": "A transcript is a real `<ol>`. Chat messages are ordered — \"the third\nthing said\" is meaningful, and reordering them changes the meaning —\nwhich is exactly what `<ol>` encodes, and what a stack of `<div>`s\nthrows away. Screen readers get \"list, 12 items\" and item positions for\nfree; keyboard readers get list navigation.",
          "extends": [
            "Omit<OlHTMLAttributes<HTMLOListElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "Message": {
          "description": "One row of a conversation: an `<li>` in the transcript's `<ol>`, wrapping\nan `<article>`.\n\n`<article>` is the right element for a message — it's self-contained\nsyndicatable content, and it's what puts each message in the screen\nreader's article rotor so readers can jump message to message instead of\narrowing through every line. Its `aria-label` carries the author, which\nis why `avatar` is `aria-hidden`: the author is already announced.\n\nThe mount-only enter animation is a plain CSS `animation` rather than a\nJS-driven transition, because \"animate on mount and never again\" is what\na keyframe animation on a freshly inserted element already means — a\nre-render doesn't restart it, so re-rendering a long transcript can't\nre-animate its history.",
          "extends": [
            "Omit<LiHTMLAttributes<HTMLLIElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "author",
              "type": "\"user\" | \"assistant\" | \"system\"",
              "optional": true,
              "default": "\"assistant\"",
              "description": "Who is speaking. Drives alignment and tone defaults in CSS via\n`data-author`, and the message's accessible name."
            },
            {
              "name": "avatar",
              "type": "ReactNode",
              "optional": true,
              "description": "Rendered in the avatar slot — an `<Avatar>`, an initial, an icon.\nDecorative by default: the author is already announced through the\nmessage's own label, so a duplicated avatar reading is noise."
            },
            {
              "name": "name",
              "type": "ReactNode",
              "optional": true,
              "description": "Visible author name."
            },
            {
              "name": "metadata",
              "type": "ReactNode",
              "optional": true,
              "description": "Timestamp, model name, token count — anything trailing the message."
            },
            {
              "name": "grouped",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Consecutive message from the same author: drops the repeated avatar\nand header, keeps the row's alignment and tightens its spacing."
            },
            {
              "name": "live",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Marks this message as the one currently being written."
            },
            {
              "name": "animateOnMount",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "One-shot enter animation when the row first mounts."
            },
            {
              "name": "className",
              "type": "ClassNameValue<MessageState>",
              "optional": true
            },
            {
              "name": "bodyClassName",
              "type": "ClassNameValue<MessageState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<MessageLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        },
        "MessageBubble": {
          "description": "The conversational surface itself. Tone and alignment are `data-*`\nattributes on one root, not extra classes — so consumers restyle a tone\nby selecting `[data-tone=\"accent\"]` and never have to reproduce Kernel's\nclass-composition order.\n\n`expandable` renders a real `<details>` (height-animated by\n`DetailsPanelAnimator`, same as `Reasoning` and `Accordion`), so a\ncollapsed message is still findable by in-page search in browsers that\nexpand `<details>` for find-in-page — which a `max-height` clamp isn't.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "tone",
              "type": "\"neutral\" | \"accent\" | \"muted\" | \"danger\"",
              "optional": true,
              "default": "\"neutral\""
            },
            {
              "name": "align",
              "type": "\"start\" | \"center\" | \"end\"",
              "optional": true,
              "default": "\"start\"",
              "description": "Which edge the bubble hugs. Independent of `Message`'s `author` on\npurpose — a system notice from the \"assistant\" side can still be\ncentred, and a user quote can be shown inline."
            },
            {
              "name": "expandable",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Collapse long content behind a disclosure."
            },
            {
              "name": "expandLabel",
              "type": "ReactNode",
              "optional": true,
              "default": "\"Show more\""
            },
            {
              "name": "defaultOpen",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "className",
              "type": "ClassNameValue<MessageBubbleState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-message-list": {
          "description": "`<kernel-message-list>` — a conversation transcript as a real\n`<ol role=\"list\">`. Chat messages are ordered, and `<ol>` is what\nencodes that; see `@kernelui-lib/react`'s `<MessageList>` for the full\nreasoning.\n\nAttributes: `label` (accessible name, default \"Conversation\").",
          "attributes": [
            "label"
          ],
          "events": []
        },
        "kernel-message": {
          "description": "`<kernel-message>` — one row of a conversation: a real `<li>` wrapping an\n`<article>`, matching `@kernelui-lib/react`'s `<Message>` (read its JSDoc\nfor why `<article>`, and why the avatar is `aria-hidden`).\n\nThe host is `display: contents` so its `<li>` is a direct child of the\nparent `<ol>` — custom elements can't *be* `<li>`, and a wrapper element\nbetween them would break the list's content model and its announced item\ncount. Same trick as `<kernel-suggestion-item>`.\n\nAttributes: `author` (\"user\" | \"assistant\" | \"system\", default\n\"assistant\"), `name`, `metadata`, `grouped`, `live`, `no-animate` to\nsuppress the one-shot enter animation, and the built-in string\n`label-writing` (\"Writing\", the live mark) — or the `labels` property.\n\nAn avatar is a child marked `data-slot=\"avatar\"`; everything else becomes\nthe message body.",
          "attributes": [
            "author",
            "name",
            "metadata",
            "grouped",
            "live",
            "no-animate",
            "label-writing"
          ],
          "events": []
        },
        "kernel-message-bubble": {
          "description": "`<kernel-message-bubble>` — the conversational surface. Tone and\nalignment are `data-*` attributes on one root, and `expandable` renders a\nreal `<details>` (height-animated by `DetailsPanelAnimator`) rather than\na `max-height` clamp; see `@kernelui-lib/react`'s `<MessageBubble>` for\nwhy both choices.\n\nAttributes: `tone` (\"neutral\" | \"accent\" | \"muted\" | \"danger\"), `align`\n(\"start\" | \"center\" | \"end\"), `expandable`, `expand-label` (default\n\"Show more\"), `default-open` (read once at connect).",
          "attributes": [
            "tone",
            "align",
            "expand-label"
          ],
          "events": []
        }
      }
    },
    "message-scroller": {
      "name": "Message Scroller",
      "react": {
        "MessageScroller": {
          "description": "A conversation viewport that follows streamed output at the live edge,\nand releases control the moment the reader scrolls away.\n\n`role=\"log\"` with `aria-live=\"polite\"` is the standard chat-transcript\npattern: appended messages get announced without interrupting, and the\ncontainer is announced as a log rather than as unlabelled scrolled\ncontent. It's deliberately verbose for very long transcripts, so both\nattributes are overridable through `...rest` — pass `aria-live=\"off\"`\nwhen the consumer announces messages itself.\n\n`tabIndex={0}` is not decoration: an overflow container that isn't\nfocusable can't be scrolled by keyboard at all in Firefox or Safari,\nwhich strands keyboard-only readers in a transcript they can see and\ncan't move.\n\nThere's no controlled `pinned` prop on purpose. Pinning isn't\napplication state — it's an answer to \"is the reader currently at the\nbottom?\", which only the DOM knows. A controlled prop would let a\nparent assert \"pinned\" while the reader is 400px up the transcript, and\nthe only way to honour it would be to yank them back down mid-read.\n`onPinnedChange` reports it; `defaultPinned` seeds it.",
          "extends": [
            "Omit<HTMLAttributes<HTMLDivElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "maxBlockSize",
              "type": "string",
              "optional": true,
              "description": "The block-size at which the transcript starts scrolling. Omit it and\nthe caller controls height via `className`/`style` instead."
            },
            {
              "name": "defaultPinned",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Start at the live edge. Pinning is reader-owned after that — see the\ncomponent's own note on why there's no controlled `pinned` prop."
            },
            {
              "name": "threshold",
              "type": "number",
              "optional": true,
              "description": "Pixels from the bottom that still count as pinned. Defaults to `24`."
            },
            {
              "name": "onPinnedChange",
              "type": "(pinned: boolean) => void",
              "optional": true
            },
            {
              "name": "showJumpToLatest",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Show the \"jump to latest\" control while unpinned."
            },
            {
              "name": "jumpLabel",
              "type": "ReactNode",
              "optional": true,
              "default": "\"Jump to latest\""
            },
            {
              "name": "conversationKey",
              "type": "unknown",
              "optional": true,
              "description": "Re-arms the viewport when it changes — pass a conversation id when\nswapping the whole transcript, so the new one starts at its own edge."
            },
            {
              "name": "className",
              "type": "ClassNameValue<MessageScrollerState>",
              "optional": true
            },
            {
              "name": "viewportClassName",
              "type": "ClassNameValue<MessageScrollerState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-message-scroller": {
          "description": "`<kernel-message-scroller>` — a conversation viewport that follows\nstreamed output at the live edge and releases control when the reader\nscrolls away. Same behaviour core as `@kernelui-lib/react`'s\n`<MessageScroller>` (`utils/stickToBottom.ts`), same `role=\"log\"` /\n`aria-live=\"polite\"` / focusable-viewport reasoning — read that\ncomponent's JSDoc for why, including why pinning is never a controlled\ninput.\n\nAttributes: `max-block-size` (CSS length), `default-pinned=\"false\"` to\nstart unpinned, `threshold` (px from the bottom that still counts as\npinned), `jump-label` (default \"Jump to latest\"), `no-jump` to suppress\nthe jump control. Emits `kernel-pinned-change` with\n`detail: { pinned: boolean }`.\n\nChildren written between the tags are moved into the scrolled content\nonce at connect, and a `MutationObserver` relocates anything appended\nlater — a transcript that grows is the entire point, so \"children are\nadopted once\" would break the common case.",
          "attributes": [
            "max-block-size",
            "jump-label",
            "no-jump"
          ],
          "events": [
            "kernel-pinned-change"
          ],
          "eventDetails": {
            "kernel-pinned-change": "{ pinned: boolean }"
          }
        }
      }
    },
    "model-picker": {
      "name": "Model Picker",
      "react": {
        "ModelPicker": {
          "description": "Picks the model a chat is sent to, from a composer's toolbar: a compact\npill `<button>` that opens a `role=\"listbox\"` in a `popover=\"auto\"`.\n\nWhy not `Select`? A native `<select>` is the right answer for plain\noptions, and Kernel's `Select` is one. A model list isn't plain: each\noption has a description, badges and a logo, and `<option>` can only hold\ntext everywhere except Chromium's `appearance: base-select`. So this keeps\nwhat the platform does give — the popover's top layer, light dismiss,\nEscape, and focus return to the invoker — and adds the WAI-ARIA listbox\npattern by hand: focus moves to the list, `aria-activedescendant` tracks\nthe active option, arrows/Home/End move it, Enter or Space selects,\nprintable keys typeahead, and Tab closes. Groups are `role=\"group\"`\nlabelled by their heading, so a screen reader announces the provider as\nyou cross into it.\n\nThe trigger is an optical pill sized to `--kernel-control-height-sm` so\nit sits beside a small send button in `Composer`'s action row (see\n`Badge.module.css` for the recipe). It opens upward by default, because\nthe composer is at the bottom of the screen.",
          "extends": [],
          "props": [
            {
              "name": "options",
              "type": "ModelPickerOption[]",
              "optional": false
            },
            {
              "name": "value",
              "type": "string",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "string",
              "optional": true
            },
            {
              "name": "onValueChange",
              "type": "(value: string) => void",
              "optional": true
            },
            {
              "name": "name",
              "type": "string",
              "optional": true,
              "description": "Submits the value with a surrounding form, through a hidden input."
            },
            {
              "name": "disabled",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "placement",
              "type": "FloatingPlacement",
              "optional": true,
              "default": "\"top\"",
              "description": "Which side of the trigger the list opens on. Defaults to `\"top\"`,\nsince a composer sits at the bottom of the screen; it flips when\nthere's no room."
            },
            {
              "name": "align",
              "type": "FloatingAlign",
              "optional": true,
              "default": "\"start\"",
              "description": "Cross-axis alignment. Defaults to `\"start\"`."
            },
            {
              "name": "offset",
              "type": "number",
              "optional": true,
              "default": "8",
              "description": "Gap between trigger and list, in pixels. Defaults to `8`."
            },
            {
              "name": "id",
              "type": "string",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<ModelPickerState>",
              "optional": true,
              "description": "Classes for the trigger button."
            },
            {
              "name": "listClassName",
              "type": "ClassNameValue<ModelPickerState>",
              "optional": true,
              "description": "Classes for the popup list."
            },
            {
              "name": "labels",
              "type": "Partial<ModelPickerLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-model-picker": {
          "description": "`<kernel-model-picker>` — picks the model a chat is sent to, from a\ncomposer's toolbar: a compact pill `<button>` that opens a\n`role=\"listbox\"` in a `popover=\"auto\"`. See `@kernelui-lib/react`'s\n`<ModelPicker>` for why this isn't a native `<select>` (options carry\ndescriptions, badges and logos), and which parts the platform still owns\n(top layer, light dismiss, Escape, focus return) versus the listbox\nkeyboard pattern added by hand (arrows, Home/End, Enter/Space, typeahead,\nTab to leave).\n\nOptions come from the `options` property (structured data, icons as DOM\nnodes or image URLs), or declaratively from light-DOM `<option>`s read once\nat connect — optionally inside `<optgroup label=\"Provider\">` — with\n`data-description` and `data-badges` (\"New:accent, Fast\"; a bare label is\nneutral).\n\nAttributes: `value`, `name` (submits through a hidden input), `disabled`,\n`placement` (default top), `align` (default start), `offset` (default 8),\nand built-in strings `label-model` (\"Model\") and `label-placeholder`\n(\"Choose a model\") — or the `labels` property. Fires `valuechange`\n(`detail: { value }`) when the reader picks a model.",
          "attributes": [
            "value",
            "name",
            "disabled",
            "label-model",
            "label-placeholder"
          ],
          "events": [
            "valuechange"
          ],
          "eventDetails": {
            "valuechange": "{ value: string }"
          }
        }
      }
    },
    "nav": {
      "name": "Nav",
      "react": {
        "Nav": {
          "description": "A real `<nav>` landmark wrapping a real `<ul>`. Compose it with\n`NavLink` for each entry.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\">"
          ],
          "props": [
            {
              "name": "aria-label",
              "type": "string",
              "optional": false,
              "description": "Required: a page can have more than one `<nav>` (primary nav,\nbreadcrumbs, pagination), so each needs its own accessible name."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "NavLink": {
          "description": "Set `aria-current=\"page\"` on whichever link matches the current route\n(Astro can compute that at build time from `Astro.url.pathname`). The\nactive style is a plain `[aria-current=\"page\"]` selector, nothing\nclient-side has to run to know which link is active.",
          "extends": [
            "Omit<AnchorHTMLAttributes<HTMLAnchorElement>, \"className\">"
          ],
          "props": [
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-nav": {
          "description": "`<kernel-nav>` — a real `<nav>` landmark wrapping a real `<ul>`.\nCompose it with `<kernel-nav-link>` for each entry.\n\nAttributes: `aria-label` (required — a page can have more than one\n`<nav>`, so each needs its own accessible name), `data-orientation`\n(`horizontal` lays the list out as a row instead of a column).\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the real `<nav>`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "data-orientation"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        },
        "kernel-nav-link": {
          "description": "`<kernel-nav-link>` — set `aria-current=\"page\"` on whichever link\nmatches the current route (Astro can compute that at build time from\n`Astro.url.pathname`). The active style is a plain\n`[aria-current=\"page\"]` selector; nothing client-side has to run to\nknow which link is active.\n\nRenders as `<li><a></a></li>`, matching `@kernelui-lib/react`'s\n`<NavLink>`. The outer `<kernel-nav-link>` tag itself is\n`display: contents` (see Nav.css) so it doesn't disrupt the parent\n`<ul>`'s flex layout — the one unavoidable structural difference\nfrom the React version, which has no extra DOM node per component.",
          "attributes": [
            "href",
            "aria-current"
          ],
          "events": []
        }
      }
    },
    "navigation-menu": {
      "name": "Navigation Menu",
      "react": {
        "NavigationMenu": {
          "description": "A real `<nav>` landmark wrapping a real `<ul>`, same semantic base as\n`Nav`. Each top-level entry is a `NavigationMenuItem`, either a plain\nlink or a trigger that opens a mega-menu panel.",
          "extends": [],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "aria-label",
              "type": "string",
              "optional": false,
              "description": "Required: a page can have more than one navigation menu, so each\nneeds its own accessible name."
            }
          ]
        },
        "NavigationMenuItem": {
          "extends": [],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "placement",
              "type": "FloatingPlacement",
              "optional": true,
              "default": "\"bottom\"",
              "description": "Which side of the trigger the panel opens on."
            },
            {
              "name": "align",
              "type": "FloatingAlign",
              "optional": true,
              "default": "\"center\"",
              "description": "Cross-axis alignment relative to the trigger."
            },
            {
              "name": "offset",
              "type": "number",
              "optional": true,
              "default": "8",
              "description": "Gap between the trigger and the panel, in pixels."
            }
          ]
        },
        "NavigationMenuLink": {
          "description": "A plain link, for items with no submenu.",
          "extends": [
            "Omit<AnchorHTMLAttributes<HTMLAnchorElement>, \"className\">"
          ],
          "props": [
            {
              "name": "href",
              "type": "string",
              "optional": false
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            }
          ]
        },
        "NavigationMenuTrigger": {
          "description": "The clickable label for an item with a submenu. Opens its sibling\n`NavigationMenuContent` via `popoverTarget`, the same native\n`popover=\"auto\"` + toggle-event mechanism `DropdownMenu` uses, click-based\nrather than hover-only so the panel behaves the same on touch devices.",
          "extends": [
            "Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"className\" | \"popoverTarget\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            }
          ]
        },
        "NavigationMenuContent": {
          "description": "The mega-menu panel for an item, arbitrary content, shown and hidden\nvia the same popover mechanism `DropdownMenu`'s `.content` uses.",
          "extends": [],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            }
          ]
        }
      },
      "elements": {
        "kernel-navigation-menu": {
          "description": "`<kernel-navigation-menu>` — a real `<nav>` landmark wrapping a real\n`<ul>`, same semantic base as `<kernel-nav>`. Each top-level entry is\na `<kernel-nav-menu-item>`, either a plain link or a trigger that\nopens a mega-menu panel. Attributes: `aria-label` (required).",
          "attributes": [
            "aria-label"
          ],
          "events": []
        },
        "kernel-nav-menu-item": {
          "description": "`<kernel-nav-menu-item>` — wraps one top-level entry (an `<li>`).\nContains either a `<kernel-nav-menu-link>` or a\n`<kernel-nav-menu-trigger>` + `<kernel-nav-menu-content>` pair.\nAttributes: `placement` (default bottom), `align` (start/center/end,\ndefault center), `offset` (px, default 8) — the panel's positioning\nlives on the item, matching React's `NavigationMenuItem`, and the\ntrigger accepts the same three as an override.",
          "attributes": [],
          "events": []
        },
        "kernel-nav-menu-link": {
          "description": "`<kernel-nav-menu-link>` — a plain link, for items with no submenu.\nAttributes: `href`, `aria-current`.",
          "attributes": [
            "href",
            "aria-current"
          ],
          "events": []
        },
        "kernel-nav-menu-trigger": {
          "description": "`<kernel-nav-menu-trigger>` — the clickable label for an item with a\nsubmenu. Opens its sibling `<kernel-nav-menu-content>` via\n`popovertarget`, click-based (not hover-only) so it behaves the same\non touch. Must be a child of the same `<kernel-nav-menu-item>` as\nits content. Attributes: `disabled`, plus `placement`/`align`/`offset`\nas an override of the item's own.",
          "attributes": [
            "disabled"
          ],
          "events": []
        },
        "kernel-nav-menu-content": {
          "description": "`<kernel-nav-menu-content>` — the mega-menu panel for an item,\narbitrary content, shown/hidden via the same `popover=\"auto\"`\nmechanism `<kernel-dropdown-menu>`'s content uses.",
          "attributes": [],
          "events": []
        }
      }
    },
    "number-field": {
      "name": "Number Field",
      "react": {
        "NumberField": {
          "description": "`TextField`'s exact label/description/error scaffold around a real\n`<input type=\"number\">` instead of `type=\"text\"` — numeric keypad on\nmobile, native min/max/step constraint validation, and native\nArrowUp/ArrowDown stepping while focused, all for free. The custom\n− / + buttons alongside it don't reimplement stepping logic: they\ncall the input's own native `stepUp()`/`stepDown()` methods and read\n`.value` back afterward (those methods change the DOM value directly\nwithout dispatching an `input`/`change` event, so this is the one\nplace that has to notice the change by hand). They're excluded from\nthe tab order (`tabIndex={-1}`) because focused ArrowUp/ArrowDown\nalready does the identical thing natively — a fully keyboard-only\nflow never needs to reach them, so they don't need their own stop.\nThe native spinner arrows are hidden in CSS since these buttons\nreplace them; not a case of two competing steppers. The buttons sit\nside by side rather than stacked: two stacked buttons share one\ncontrol height, so neither reaches a 24×24 target, and a stacked\ncolumn can't nest inside a pill's end cap at a round theme. Side by\nside, each is a square concentric with the field's corner.\n\n`value`/`defaultValue` are numbers, not strings, but typing \"-\",\n\"1.\", or \"\" are all valid intermediate states of a number a browser\nlets you type — rejecting or reformatting them on every keystroke\nwould fight the user's typing. Like `ColorPicker`'s hex field, the\ndisplayed text is a local, uncontrolled draft that only commits back\nto the real numeric `value` once it actually parses.",
          "extends": [
            "Omit< InputHTMLAttributes<HTMLInputElement>, \"className\" | \"type\" | \"value\" | \"defaultValue\" | \"onChange\" | \"size\" >"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label without removing it from the accessibility\ntree — see `TextField`'s `hideLabel` for the full rationale."
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "errorMessage",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "labelOffset",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Set to `false` to hard-align the label, description, and error text\nflush with the field's left edge, undoing the default inset that lines\nthem up with the input's own text padding (`--kernel-label-inset`)."
            },
            {
              "name": "value",
              "type": "number",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "number",
              "optional": true
            },
            {
              "name": "onValueChange",
              "type": "(value: number | undefined, details: ChangeDetails<NumberFieldChangeReason>) => void",
              "optional": true,
              "description": "Called before the value commits, with the reason: `\"input\"` (typing),\n`\"keyboard\"` (ArrowUp/ArrowDown in the field), `\"wheel\"` (scrolling over\nthe focused field, where the browser does that) or `\"step-button\"` (the\n− / + buttons). `details.cancel()` keeps the committed value."
            },
            {
              "name": "min",
              "type": "number",
              "optional": true
            },
            {
              "name": "max",
              "type": "number",
              "optional": true
            },
            {
              "name": "step",
              "type": "number",
              "optional": true,
              "default": "1"
            },
            {
              "name": "invalid",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "size",
              "type": "\"sm\" | \"md\" | \"lg\"",
              "optional": true,
              "default": "\"md\""
            },
            {
              "name": "className",
              "type": "ClassNameValue<NumberFieldState>",
              "optional": true
            },
            {
              "name": "wrapperClassName",
              "type": "ClassNameValue<NumberFieldState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<NumberFieldLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-number-field": {
          "description": "`<kernel-number-field>` — `<kernel-text-field>`'s exact label/\ndescription/error scaffold around a real `<input type=\"number\">`.\nThe − / + buttons call the input's own native `stepUp()`/\n`stepDown()` rather than reimplementing increment logic; since those\nmethods change `.value` without dispatching an event, this reads it\nback and fires `change` by hand afterward. See\n`@kernelui-lib/react`'s `NumberField.tsx` for the full rationale\n(native spinner arrows hidden in CSS, buttons excluded from the tab\norder since focused ArrowUp/ArrowDown already does the same thing\nnatively).\n\nAttributes: `label` (required, still the accessible name even when\n`hide-label` is set), `hide-label` (boolean), `value`, `min`, `max`,\n`step` (default 1), `size` (sm/md/lg, default md), `description`,\n`error-message`, `no-label-offset` (boolean — hard-aligns the label,\ndescription, and error text flush left instead of the default inset\nthat lines them up with the input's own text padding), `invalid`,\n`disabled`, `required`, `name`. Built-in strings: `label-increment`\n(\"Increment\"), `label-decrement` (\"Decrement\"), or the `labels` property.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<input>`; an authored `aria-describedby` is\nadded after its own hint and error ids.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "hide-label",
            "value",
            "min",
            "max",
            "step",
            "size",
            "description",
            "error-message",
            "no-label-offset",
            "invalid",
            "disabled",
            "required",
            "name",
            "label-increment",
            "label-decrement"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [],
          "eventDetails": {
            "change": null,
            "beforevaluechange": "{ value: number; reason: \"input\" | \"keyboard\" | \"step-button\" | \"wheel\"; event?: Event }",
            "valuechange": "{ value: number; reason: \"input\" | \"keyboard\" | \"step-button\" | \"wheel\"; event?: Event }"
          }
        }
      }
    },
    "pagination": {
      "name": "Pagination",
      "react": {
        "Pagination": {
          "description": "A real `<nav aria-label=\"Pagination\">` wrapping a real `<ol>` of page\nlinks, an ordered trail of pages is exactly what an ordered list is\nfor.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<PaginationLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        },
        "PaginationItem": {
          "extends": [
            "Omit<AnchorHTMLAttributes<HTMLAnchorElement>, \"className\">"
          ],
          "props": [
            {
              "name": "current",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-pagination": {
          "description": "`<kernel-pagination>` — a real `<nav aria-label=\"Pagination\">`\nwrapping a real `<ol>` of page links; an ordered trail of pages is\nexactly what an ordered list is for. Compose with\n`<kernel-pagination-item>`, `<kernel-pagination-previous>`,\n`<kernel-pagination-next>`, and `<kernel-pagination-ellipsis>`.\n\nBuilt-in strings (same keys as React's `PaginationLabels`, each part\nreading its own): `label-navigation` here (\"Pagination\");\n`label-previous-page` / `label-previous` on the previous control\n(\"Go to previous page\" / \"Previous\"), `label-next-page` / `label-next`\non the next control — or the `labels` property on each part.",
          "attributes": [
            "label-navigation"
          ],
          "events": []
        },
        "kernel-pagination-item": {
          "description": "`<kernel-pagination-item>` — a real `<a>` page link. Attributes:\n`href`, `current` (boolean, sets `aria-current=\"page\"`).",
          "attributes": [
            "href",
            "current"
          ],
          "events": []
        },
        "kernel-pagination-previous": {
          "description": "`<kernel-pagination-previous>` — a real `<button>`, not a link:\n\"previous page\" changes state on the same view.",
          "attributes": [],
          "events": []
        },
        "kernel-pagination-next": {
          "description": "`<kernel-pagination-next>` — see `KernelPaginationPrevious`.",
          "attributes": [],
          "events": []
        },
        "kernel-pagination-ellipsis": {
          "description": "`<kernel-pagination-ellipsis>` — decorative, hidden from assistive\ntech (the surrounding page links already convey the gap).",
          "attributes": [],
          "events": []
        }
      }
    },
    "popover": {
      "name": "Popover",
      "react": {
        "Popover": {
          "description": "`popover=\"auto\"` gets native light-dismiss (outside click, Escape) and\ntop-layer stacking for free. Positioning comes from\n`useFloatingPosition`. The one bit of JavaScript is listening to the\nnative `toggle` event to mirror the popover's own open state into\nReact, everything else is declarative HTML attributes.",
          "extends": [],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "placement",
              "type": "FloatingPlacement",
              "optional": true,
              "default": "\"bottom\""
            },
            {
              "name": "align",
              "type": "FloatingAlign",
              "optional": true,
              "default": "\"center\"",
              "description": "Cross-axis alignment relative to the trigger."
            },
            {
              "name": "offset",
              "type": "number",
              "optional": true,
              "default": "8",
              "description": "Gap between the trigger and the panel, in pixels."
            },
            {
              "name": "open",
              "type": "boolean",
              "optional": true
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean, details: ChangeDetails<PopoverOpenChangeReason>) => void",
              "optional": true,
              "description": "Called before the popover opens or closes, with the reason:\n`\"trigger-press\"`, `\"escape-key\"`, `\"outside-press\"` or\n`\"programmatic\"`. `details.cancel()` keeps it as it is — an open is\nstopped outright; a light-dismiss close (which the platform won't let\nanyone refuse) is undone by re-showing the panel straight away."
            },
            {
              "name": "className",
              "type": "ClassNameValue<PopoverState>",
              "optional": true,
              "description": "Classes for the popover panel."
            },
            {
              "name": "renderContent",
              "type": "RenderProp<PopoverState>",
              "optional": true,
              "description": "Replace the panel element (e.g. wrap with Motion)."
            },
            {
              "name": "render",
              "type": "RenderProp<PopoverState>",
              "optional": false,
              "description": "The trigger. Rendered with `popoverTarget` wired up, so open, close,\ntoggle, outside-click, and Escape all work with zero JavaScript;\n`open`/`onOpenChange` are there for when you also need to know or\ncontrol the state from outside."
            }
          ]
        }
      },
      "elements": {
        "kernel-popover": {
          "description": "`<kernel-popover>` — `popover=\"auto\"` on the content panel gets\nnative light-dismiss (outside click, Escape) and top-layer stacking\nfor free; the trigger is wired up with the native `popovertarget`\nattribute, so open/close/toggle all work with zero JavaScript beyond\npositioning. The one bit of JS here is mirroring the native `toggle`\nevent into an `open` attribute/event, the same as\n`@kernelui-lib/react`'s own `<Popover>`.\n\nChildren: one element tagged `slot=\"trigger\"` (a `<kernel-button>`\nor plain `<button>`/`<a>`), everything else becomes the popover's\ncontent.\n\nAttributes: `placement` (top/bottom/left/right, default bottom),\n`align` (start/center/end, default center), `offset` (px, default 8).\nEvents: `toggle` `CustomEvent` (`event.detail.open`, plus\n`detail.reason`) after the popover opens or closes, and before it, a\ncancelable `beforetoggle` `CustomEvent` (the platform's own name) with\n`detail: { open, reason }` — `\"trigger-press\"`, `\"escape-key\"`,\n`\"outside-press\"` or `\"programmatic\"`. `preventDefault()` stops an\nopen outright; a light-dismiss close (which the platform won't let\nanyone refuse) is undone by re-showing the panel straight away.",
          "attributes": [],
          "events": [
            "toggle"
          ],
          "eventDetails": {
            "toggle": "{ open: boolean; reason: string }",
            "beforetoggle": "{ open: boolean; reason: \"escape-key\" | \"outside-press\" | \"programmatic\" | \"trigger-press\"; event?: Event }"
          }
        }
      }
    },
    "progress": {
      "name": "Progress",
      "react": {
        "Progress": {
          "description": "A real `<progress>`. It's an \"indeterminate\" spinner for free when you\nomit `value`, and it reports its own value to assistive tech without\nany `role=\"progressbar\"`/`aria-valuenow` bookkeeping.\n\nStyling its fill has no standardised, non-vendor-prefixed API yet, so\n`::-webkit-progress-value` and `::-moz-progress-bar` (below) are the\ncorrect, current way to do it, not a legacy fallback.",
          "extends": [
            "Omit<ProgressHTMLAttributes<HTMLProgressElement>, \"className\">"
          ],
          "props": [
            {
              "name": "label",
              "type": "string",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-progress": {
          "description": "`<kernel-progress>` — a real `<progress>`. It's an \"indeterminate\"\nspinner for free when `value` is omitted, and it reports its own\nvalue to assistive tech without any `role=\"progressbar\"`/\n`aria-valuenow` bookkeeping.\n\nAttributes: `value`, `max` (default 100), `label` (sets\n`aria-label`). `aria-label`, `aria-labelledby` and `aria-describedby`\non the host are forwarded to the `<progress>`; a host `aria-label`\nwins over `label`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "value",
            "max",
            "label"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        }
      }
    },
    "radio-group": {
      "name": "Radio Group",
      "react": {
        "RadioGroup": {
          "description": "A real `<fieldset>` + `<legend>` grouping real\n`<input type=\"radio\">` elements sharing one `name`. Arrow-key roving\nbetween options, and \"exactly one selected\", are both native radio\nbutton behaviour, not reimplemented here.",
          "extends": [],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false,
              "description": "A `<fieldset>` needs a `<legend>` the same way a form field needs a\nlabel; this is that legend's text."
            },
            {
              "name": "name",
              "type": "string",
              "optional": true
            },
            {
              "name": "value",
              "type": "string",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "string",
              "optional": true
            },
            {
              "name": "onValueChange",
              "type": "(value: string, details: ChangeDetails<RadioGroupChangeReason>) => void",
              "optional": true,
              "description": "Called before the selection moves, with the reason (`\"press\"` or `\"keyboard\"`); `details.cancel()`\nkeeps the current option checked."
            },
            {
              "name": "disabled",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "RadioGroupItem": {
          "extends": [
            "Omit< InputHTMLAttributes<HTMLInputElement>, \"className\" | \"type\" | \"name\" | \"checked\" | \"onChange\" >"
          ],
          "props": [
            {
              "name": "value",
              "type": "string",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-radio-group": {
          "description": "`<kernel-radio-group>` — a real `<fieldset>` + `<legend>` grouping\nreal `<input type=\"radio\">` elements (via `<kernel-radio-group-item>`)\nthat share one `name`. Arrow-key roving between options, \"exactly one\nselected\", and disabling every option at once (a real `<fieldset\ndisabled>` cascades to every form control inside it, no JS needed)\nare all native radio/fieldset behaviour. Mirrors `@kernelui-lib/react`'s\n`<RadioGroup>` + `<RadioGroupItem>`.\n\nAttributes: `label` (required — a `<fieldset>` needs a `<legend>` the\nsame way a form field needs a label), `name` (generated if omitted,\nso items still share a real name without the author inventing one),\n`disabled`, `value` (the selected item's value — the counterpart of\nReact's `value`/`defaultValue`; reflected back when the user picks an\noption, alongside the native bubbling `change` event from the radio).\n\nChange reasons: a native `change` can't be cancelled, so a bubbling,\ncancelable `beforevaluechange` is dispatched from the group first, with\n`detail: { value, reason }` (`reason` is `\"press\"` or `\"keyboard\"`).\n`preventDefault()` on it re-checks the previous option and stops the\nnative `change` at the group. Once committed, a `valuechange` with the\nsame detail.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the `<fieldset>`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "disabled",
            "value"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ value: string; reason: \"keyboard\" | \"press\"; event?: Event }",
            "valuechange": "{ value: string; reason: \"keyboard\" | \"press\"; event?: Event }"
          }
        },
        "kernel-radio-group-item": {
          "description": "`<kernel-radio-group-item>` — one option inside a `<kernel-radio-group>`.\nAttributes: `value` (required), `disabled`. Text content is the\nradio's label; `aria-label`, `aria-labelledby` and `aria-describedby`\non the host are forwarded to the real `<input type=\"radio\">`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "value",
            "disabled"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        }
      }
    },
    "reasoning": {
      "name": "Reasoning",
      "react": {
        "Reasoning": {
          "description": "A collapsible AI reasoning/thinking trace. Its own `<details>`/`<summary>`\nrather than a wrapped `AccordionItem`: Accordion's `name`-based\nsingle/multiple group-exclusivity doesn't apply to a standalone trace, and\nwrapping it would just be dead API surface to opt out of.",
          "extends": [],
          "props": [
            {
              "name": "streaming",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Auto-opens the trace while true; auto-closes it the moment it flips\nback to false. Only forces `open` on that transition's edge — once\nstreaming ends, the user's own manual open/close via the summary is\nleft alone, same as native `<details>`."
            },
            {
              "name": "durationLabel",
              "type": "ReactNode",
              "optional": true,
              "description": "Consumer-computed, e.g. \"Thought for 4s\" — shown once streaming ends.\nDefaults to `\"Reasoning\"`."
            },
            {
              "name": "defaultOpen",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<ReasoningState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<ReasoningLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-reasoning": {
          "description": "`<kernel-reasoning>` — a collapsible AI reasoning/thinking trace,\nits own `<details>`/`<summary>` (not a wrapped Accordion item — see\n`@kernelui-lib/react`'s own `<Reasoning>` for why). Attributes:\n`streaming` (auto-opens while present; auto-closes ~600ms after it's\nremoved, unless the user has manually interacted with the summary\nsince), `duration-label` (text shown once streaming ends, default\n\"Reasoning\"), `default-open` (read once at connect). Built-in strings:\n`label-thinking` (\"Thinking\"), `label-reasoning` (\"Reasoning\", shown\nwhen there's no `duration-label`), or the `labels` property.",
          "attributes": [
            "streaming",
            "duration-label",
            "label-thinking",
            "label-reasoning"
          ],
          "events": []
        }
      }
    },
    "resizable": {
      "name": "Resizable",
      "react": {
        "Resizable": {
          "description": "A `role=\"separator\"` divider between two panes, conceptually a slider\nthat resizes panes instead of picking a number: same `aria-valuenow`/\n`-min`/`-max` shape, same arrow-key stepping, but the value it reports\nis the split percentage and dragging it resizes the grid tracks instead\nof moving a thumb. The percentage is computed in JS from pointer\nposition and fed back in as a single CSS custom property, the grid\ntemplate itself lives in the stylesheet.",
          "extends": [],
          "props": [
            {
              "name": "children",
              "type": "[ReactNode, ReactNode]",
              "optional": false,
              "description": "Exactly two panes; this is a two-pane splitter, not an N-pane layout."
            },
            {
              "name": "defaultSplit",
              "type": "number",
              "optional": true,
              "default": "50"
            },
            {
              "name": "min",
              "type": "number",
              "optional": true,
              "default": "20"
            },
            {
              "name": "max",
              "type": "number",
              "optional": true,
              "default": "80"
            },
            {
              "name": "orientation",
              "type": "\"horizontal\" | \"vertical\"",
              "optional": true,
              "default": "\"horizontal\"",
              "description": "`\"horizontal\"` panes sit side by side with a vertical divider between\nthem; `\"vertical\"` panes stack with a horizontal divider."
            },
            {
              "name": "className",
              "type": "ClassNameValue<ResizableState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-resizable": {
          "description": "`<kernel-resizable>` — a two-pane splitter. Exactly two element\nchildren are expected (the two panes); everything else about the\ndrag/keyboard behaviour mirrors `@kernelui-lib/react`'s `<Resizable>`\nexactly (same `role=\"separator\"` divider, same arrow-key stepping,\nsame pointer-capture drag).\n\nAttributes: `orientation` (`horizontal` default | `vertical`),\n`default-split` (percentage, read once at connect), `min` (default\n20), `max` (default 80) — `min`/`max` are live and reclamp the\ncurrent split when changed.",
          "attributes": [
            "orientation",
            "min",
            "max"
          ],
          "events": []
        }
      }
    },
    "schema-renderer": {
      "name": "Schema Renderer",
      "react": {
        "SchemaRenderer": {
          "description": "Renders a model's JSON with real Kernel components. The input is\nuntrusted by definition, so it goes through `sanitizeSchema` first: an\nallow-list of node types and, per type, of props and their values.\nUnknown types and props are dropped and reported, URLs pass only as\nhttp(s), mailto: (links) or relative, and there is no path to raw HTML —\nevery string lands in the DOM as a text node.\n\nNothing the model writes can run. A Button or Form doesn't call\nanything: it hands the host `{ action, payload, values }` through\n`onAction`, and the host decides. A Form is a real `<form>`, so native\nconstraint validation (`required`, `type=\"email\"`) runs before the\naction fires and Enter submits it, but it has no `action` attribute and\nthe submission never leaves the page.\n\nStreaming works by re-rendering: parse the accumulated text with\n`parsePartialJson` on every chunk and pass the result. Nodes are keyed\nby their `id` (or type and position), so React keeps the DOM — and\nanything typed into a field — as the tree grows.",
          "extends": [
            "Omit<HTMLAttributes<HTMLDivElement>, \"className\" | \"children\" | \"onChange\">"
          ],
          "props": [
            {
              "name": "value",
              "type": "unknown",
              "optional": false,
              "description": "The model's output: a `SchemaDocument` (`{ version, root }`), a bare\nnode, or an array of nodes — usually straight from `JSON.parse`, or\nfrom `parsePartialJson` while it streams. Anything unknown or unsafe\nis dropped, never rendered and never thrown on."
            },
            {
              "name": "streaming",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "The value is still arriving. Half-typed node types are skipped\nquietly instead of reported, issues are held back until streaming\nends, and the root is marked `aria-busy`."
            },
            {
              "name": "onAction",
              "type": "(action: SchemaAction) => void",
              "optional": true,
              "description": "A Button was pressed or a Form submitted. Nothing else happens: the\nrenderer never navigates, fetches or runs code on the model's behalf."
            },
            {
              "name": "onIssue",
              "type": "(issue: SchemaIssue) => void",
              "optional": true,
              "description": "Every dropped node, prop or URL, once per settled value. Without a\nhandler they go to `console.warn` instead."
            },
            {
              "name": "onValuesChange",
              "type": "(values: SchemaValues) => void",
              "optional": true,
              "description": "A named form control changed."
            },
            {
              "name": "className",
              "type": "ClassNameValue<SchemaRendererState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-schema-renderer": {
          "description": "`<kernel-schema-renderer>` — renders a model's JSON with real Kernel\nelements. Mirrors `@kernelui-lib/react`'s `<SchemaRenderer>`: the same\nschema (`schema.ts` is shared byte for byte), the same allow-list, the\nsame DOM and class names.\n\nThe input is untrusted, so it goes through `sanitizeSchema` first:\nunknown node types and props are dropped and reported, URLs pass only\nas http(s), mailto: (links) or relative, and every string is set as a\ntext node — there is no path to raw HTML. Nothing the model writes can\nrun: a Button or Form fires an `action` event with\n`{ action, payload, values }` and the page decides what to do.\n\nSet the tree with the `value` property (an object) or the `value`\nattribute (a JSON string). Add `streaming` while it's still arriving:\nhalf-typed node types are skipped quietly, issues wait until it's\nremoved, and the root is `aria-busy`. For a stream, parse the\naccumulated text with `parsePartialJson` on every chunk and assign the\nresult; updates in the same tick are coalesced, and form values and\nfocus are kept across rebuilds by control `name`.\n\nEvents (all bubbling `CustomEvent`s): `action` (`detail`:\n`SchemaAction`), `valueschange` (`detail`: `{ values }`), `issue`\n(`detail`: `SchemaIssue`, once per settled value — call\n`preventDefault()` to stop the `console.warn` it otherwise logs).",
          "attributes": [
            "value",
            "streaming"
          ],
          "events": [
            "issue",
            "action",
            "valueschange"
          ],
          "eventDetails": {
            "issue": "{ code: SchemaIssueCode; path: string; message: string; type: string; prop: string }",
            "action": "{ action: string; payload: SchemaJsonValue; values: SchemaValues }",
            "valueschange": "{ values: SchemaValues }"
          }
        }
      }
    },
    "scroll-area": {
      "name": "Scroll Area",
      "react": {
        "ScrollArea": {
          "description": "A native overflow container. `scrollbar-gutter: stable` reserves the\nscrollbar's track so content doesn't shift when one appears, and the\ncustom scrollbar colours are pure CSS, layered on as an enhancement,\nnever a replacement for real scrolling.",
          "extends": [
            "Omit<HTMLAttributes<HTMLDivElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "maxBlockSize",
              "type": "string",
              "optional": true,
              "description": "The block-size at which this starts scrolling. Omit it and the\ncaller controls height via `className`/`style` instead."
            },
            {
              "name": "edgeShadow",
              "type": "boolean",
              "optional": true,
              "description": "Soft edge fade + layered inset shadow at whichever edge still has\ncontent to scroll toward — top, bottom, or both — hidden again once\nthat edge is scrolled into view. The fade masks into the host\nsurface (page canvas, etc.) so it stays context-aware. Tied to\nscroll position, not the gesture, so it never cuts off mid-scroll\nthe moment your finger or wheel stops."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-scroll-area": {
          "description": "`<kernel-scroll-area>` — a native overflow container. Attributes:\n`max-block-size` (a CSS length string; omit it and control height via\nthe element's own `style`/class instead, same as `@kernelui-lib/react`'s\n`maxBlockSize` prop), and `edge-shadow` (a boolean attribute — soft\nedge fade + layered inset shadow at whichever edge still has content\nto scroll toward, hidden again once that edge is scrolled into view;\nthe fade masks into the host surface so it stays context-aware).\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the focusable scroll box, which is what a keyboard user\ntabs to.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "max-block-size",
            "edge-shadow"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        }
      }
    },
    "select": {
      "name": "Select",
      "react": {
        "Select": {
          "description": "A real `<select>`: the browser owns selection, keyboard navigation,\ntypeahead, and form behaviour. Supporting browsers opt into a token-styled\nnative picker with `appearance: base-select`; others retain the existing\nstyled control and platform picker. Plain options keep SSR markup portable.\n\n`onValueChange` reports *why* the value changed by remembering the last\npointer or key on the control, since a native `change` event doesn't say.\nWith the platform's own picker (a separate OS menu on some systems) the\nkeys pressed inside it may never reach the page, so treat the reason as\nbest-effort there.",
          "extends": [
            "Omit<SelectHTMLAttributes<HTMLSelectElement>, \"className\">"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label without removing it from the accessibility\ntree — see `TextField`'s `hideLabel` for the full rationale."
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "errorMessage",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "labelOffset",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Set to `false` to hard-align the label, description, and error text\nflush with the field's left edge, undoing the default inset that lines\nthem up with the select's own text padding (`--kernel-label-inset`)."
            },
            {
              "name": "invalid",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "onValueChange",
              "type": "(value: string, details: ChangeDetails<SelectChangeReason>) => void",
              "optional": true,
              "description": "Called before a new option is committed, with its value and the\nreason; `details.cancel()` puts the previous option back (and skips\n`onChange`). The native `onChange` still works as it always has."
            },
            {
              "name": "className",
              "type": "ClassNameValue<SelectState>",
              "optional": true
            }
          ]
        },
        "SelectOption": {
          "description": "Thin re-export so consumers don't have to reach for a raw `<option>`\ninside JSX styled with anything else, it's the same element either way.",
          "extends": [],
          "props": [
            {
              "name": "value",
              "type": "string",
              "optional": false
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "disabled",
              "type": "boolean",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-select": {
          "description": "`<kernel-select>` — a real `<select>`. Options, keyboard navigation,\ntypeahead, and form behaviour come from the browser. Supporting browsers\nget a token-styled native picker; others keep the platform picker. Mirrors\n`@kernelui-lib/react`'s `<Select>`.\n\nWrite real `<option>`/`<optgroup>` elements as children — not a\n`kernel-select-option` wrapper: a native `<select>` only renders its\nOWN native picker UI for direct `<option>`/`<optgroup>` children, not\nfor arbitrary custom elements, so wrapping them would silently break\nthe one thing this component exists to keep native.\n\nAttributes: `label` (required, still the accessible name even when\n`hide-label` is set), `hide-label` (boolean), `description`,\n`error-message`, `no-label-offset` (boolean — hard-aligns the label,\ndescription, and error text flush left instead of the default inset\nthat lines them up with the select's own text padding), `invalid`,\n`required`, `disabled`, `value`, `name`.\n\nChange reasons: a native `change` can't be cancelled, so a bubbling,\ncancelable `beforevaluechange` is dispatched from this element first, with\n`detail: { value, reason }` — `\"item-press\"`, `\"keyboard\"` or\n`\"typeahead\"`, worked out from the last pointer/key on the control (a\nplatform picker that's a separate OS menu may swallow those keys, so\nit's best-effort there). `preventDefault()` restores the previous option\nand stops the native `change` at this element. Once committed, a\n`valuechange` with the same detail.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<select>`; an authored `aria-describedby` is\nadded after its own hint and error ids.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "hide-label",
            "description",
            "error-message",
            "no-label-offset",
            "invalid",
            "required",
            "disabled",
            "value",
            "name"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ value: string; reason: \"item-press\" | \"keyboard\" | \"typeahead\"; event?: Event }",
            "valuechange": "{ value: string; reason: \"item-press\" | \"keyboard\" | \"typeahead\"; event?: Event }"
          }
        }
      }
    },
    "separator": {
      "name": "Separator",
      "react": {
        "Separator": {
          "description": "A real `<hr>`. Browsers already expose it to assistive tech as\n`role=\"separator\"`, a horizontal rule is exactly what a divider is.\n`orientation=\"vertical\"` repaints it as a vertical rule (for a toolbar,\nsay) without changing what it means.",
          "extends": [
            "Omit<HTMLAttributes<HTMLHRElement>, \"className\">"
          ],
          "props": [
            {
              "name": "orientation",
              "type": "\"horizontal\" | \"vertical\"",
              "optional": true,
              "default": "\"horizontal\""
            },
            {
              "name": "className",
              "type": "ClassNameValue<SeparatorState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-separator": {
          "description": "`<kernel-separator>` — a real `<hr>`. Browsers already expose it to\nassistive tech as `role=\"separator\"`; a horizontal rule is exactly\nwhat a divider is. `orientation=\"vertical\"` repaints it as a\nvertical rule without changing what it means.\n\nAttributes: `orientation` (horizontal/vertical, default horizontal).",
          "attributes": [
            "orientation"
          ],
          "events": []
        }
      }
    },
    "sheet": {
      "name": "Sheet",
      "react": {
        "Sheet": {
          "description": "An edge-anchored sheet: Kernel's `Dialog` plus the gesture layer it doesn't\nhave.\n\nEverything modal about this is the platform's — `Dialog` renders a real\n`<dialog>` opened with `showModal()`, so the focus trap, top-layer stacking,\nEscape handling, `::backdrop`, and focus restoration are native rather than\nreimplemented, and there is no portal, no scroll-lock hack, and no\n`aria-modal`. What's added here is drag-to-dismiss with velocity, damped\noverdrag, and a backdrop that tracks the drag — the parts that make a sheet\nfeel like a sheet instead of a modal that happens to sit at the bottom.\n\nThe dismiss decision is distance *or* velocity: a release past 25% of the\nsheet's size, or one whose last 100ms moved faster than 0.5px/ms toward the\nedge, closes it — so a short flick works and a long, slow drag works, and a\ndrag that parks before letting go doesn't fling the sheet away. Velocity is\nwindowed rather than averaged over the gesture, which is why the bar is 0.5\nand not Vaul's 0.11 (see `gesture.ts`, shared with Toast's swipe). A finger\npulling back at release keeps the sheet open even past the distance line.\nAnything short of dismissal eases back on `--kernel-ease-drawer` over\n`--kernel-duration-sheet` (the stylesheet's own open transition, so the\nsettle and the entrance are one motion); dragging past the open position\nrubber-bands asymptotically instead of stopping dead. A dismissal leaves\nfrom wherever the finger let go, on the exit timing, rather than restarting\nfrom the resting position.\n\nThe handle is `aria-hidden` decoration (the sheet is already dismissable by\nEscape, the close button, and the backdrop), which is why it can be\nabsolutely positioned at the anchored edge rather than needing to come first\nin the DOM: `Dialog` puts its `<header>` first, and reordering that for a\ndecorative grabber would be the wrong trade.",
          "extends": [
            "Omit<DialogProps, \"side\" | \"className\" | \"classNames\" | \"onOpenChange\">"
          ],
          "props": [
            {
              "name": "onOpenChange",
              "type": "(open: boolean, details: ChangeDetails<SheetOpenChangeReason>) => void",
              "optional": false,
              "description": "Called with `false` and the reason when the sheet asks to close: every\n`Dialog` reason plus `\"drag-dismiss\"` and `\"max-display-width\"`; see\n`Dialog`'s `onOpenChange`."
            },
            {
              "name": "side",
              "type": "SheetSide",
              "optional": true,
              "default": "\"bottom\"",
              "description": "Edge the sheet is anchored to and dismissed toward."
            },
            {
              "name": "showHandle",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Show the grabber. Purely an affordance — dragging works without it unless\n`handleOnly` is set."
            },
            {
              "name": "handleOnly",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Restrict dragging to the handle. Worth setting whenever the sheet's body\nscrolls, since it removes any contest between the two gestures."
            },
            {
              "name": "dismissible",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "When false the sheet can't be dragged or backdrop-dismissed."
            },
            {
              "name": "closeThreshold",
              "type": "number",
              "optional": true,
              "default": "DEFAULT_CLOSE_THRESHOLD",
              "description": "Fraction of the sheet's own size that must be dragged to dismiss. Defaults to `0.25`."
            },
            {
              "name": "velocityThreshold",
              "type": "number",
              "optional": true,
              "default": "DEFAULT_VELOCITY_THRESHOLD",
              "description": "Dismiss velocity in px/ms, applied regardless of distance travelled. Defaults to `0.5`."
            },
            {
              "name": "inset",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Detach the sheet from the screen edges: a gap on three sides and all four\ncorners rounded. Purely visual — the gesture is unchanged. Size the gap\nwith `--kernel-sheet-inset-inline` / `--kernel-sheet-inset-block`."
            },
            {
              "name": "maxDisplayWidth",
              "type": "number",
              "optional": true,
              "description": "Viewport width, in px, above which this sheet shouldn't exist. Opening\nwider than the limit closes it again immediately, and so does widening the\nwindow past it while open — for the common case of a sheet on small\nscreens and a centred `Dialog` on large ones."
            },
            {
              "name": "footer",
              "type": "ReactNode",
              "optional": true,
              "description": "Pinned below the scrolling body — an action row, a total, a Checkout\nbutton. It takes over the safe-area padding from the sheet so its own\nbackground runs under the home indicator instead of leaving a strip of\nsurface beneath it, and it's a drag surface like the handle."
            },
            {
              "name": "snapPoints",
              "type": "number[]",
              "optional": true,
              "description": "Resting sizes as percentages of the viewport — `[25, 55, 92]` for the shape\nevery maps app converges on. A flick steps exactly one snap; a slower\nrelease lands on the nearest; dragging below the smallest dismisses.\n\nPercentages of the extent the sheet grows along, so `dvh` for `bottom` and\n`top` and `dvw` for `left` and `right`. A snap means the same thing on every\nside: how much of the screen the sheet takes up."
            },
            {
              "name": "snap",
              "type": "number",
              "optional": true,
              "description": "Controlled resting snap. Must be one of `snapPoints`."
            },
            {
              "name": "defaultSnap",
              "type": "number",
              "optional": true,
              "description": "Snap the sheet opens at. Defaults to the largest, which is the least\nsurprising thing for a sheet that was just asked to appear."
            },
            {
              "name": "onSnapChange",
              "type": "(snap: number) => void",
              "optional": true
            },
            {
              "name": "spring",
              "type": "boolean | Partial<SpringConfig>",
              "optional": true,
              "default": "true",
              "description": "How a snap settle is carried. `true` (the default) uses a real spring, so\nthe sheet leaves at the speed the finger was actually moving — something a\n`cubic-bezier` can't express, since a curve has no notion of initial\nvelocity. `false` falls back to the stylesheet's transition. Pass\n`{ attraction, friction }` to tune: higher attraction is springier, higher\nfriction settles sooner and overshoots less.\n\nIgnored under `prefers-reduced-motion`, where the settle is instant."
            },
            {
              "name": "className",
              "type": "string",
              "optional": true
            },
            {
              "name": "classNames",
              "type": "SheetClassNames",
              "optional": true,
              "description": "Per-part class names: `Dialog`'s slots plus `handle`."
            },
            {
              "name": "onDrag",
              "type": "(percent: number) => void",
              "optional": true,
              "description": "Fires on every drag frame with how far the sheet has travelled, 0–1."
            },
            {
              "name": "onRelease",
              "type": "(open: boolean) => void",
              "optional": true,
              "description": "Fires once on release with whether the sheet stayed open."
            }
          ]
        }
      },
      "elements": {
        "kernel-sheet": {
          "description": "`<kernel-sheet>` — an edge-anchored sheet: `<kernel-dialog>` plus the gesture\nlayer it doesn't have. It *is* a `kernel-dialog` (it extends it), so every\nattribute, part class, and the `close` event all carry over unchanged.\n\nEverything modal about this is the platform's — the real `<dialog>` is opened\nwith `showModal()`, so the focus trap, top-layer stacking, Escape handling,\n`::backdrop`, and focus restoration are native rather than reimplemented.\nWhat's added here is drag-to-dismiss with velocity, damped overdrag, and a\nbackdrop that tracks the drag.\n\nThe dismiss decision is distance *or* velocity: a release past 25% of the\nsheet's size, or one whose last 100ms moved faster than 0.5px/ms toward the\nedge, closes it — so a short flick works and a long, slow drag works, and a\ndrag that parks before letting go doesn't fling the sheet away. Velocity is\nwindowed rather than averaged over the gesture, which is why the bar is 0.5\nand not Vaul's 0.11 (see `gesture.ts`, shared with Toast's swipe). A finger\npulling back at release keeps the sheet open even past the distance line.\nAnything short of dismissal eases back on `--kernel-ease-drawer` over\n`--kernel-duration-sheet` (the stylesheet's own open transition, so the\nsettle and the entrance are one motion); dragging past the open position\nrubber-bands asymptotically instead of stopping dead. A dismissal leaves\nfrom wherever the finger let go, on the exit timing, rather than restarting\nfrom the resting position.\n\nAttributes, on top of every `<kernel-dialog>` attribute: `side`\n(bottom/top/left/right, default **bottom** rather than the dialog's centre),\n`show-handle` (default true — set `\"false\"` to omit the grabber),\n`handle-only` (only the handle starts a drag; worth setting whenever the\nbody scrolls), `dismissible` (default true — `\"false\"` disables both dragging\nand backdrop dismissal), `close-threshold`, `velocity-threshold`, `inset`\n(detach from the screen edges — all four corners rounded, a gap on three\nsides, no JavaScript involved), `max-display-width` (a viewport width above\nwhich the sheet closes itself, for a sheet on small screens and a centred\n`<kernel-dialog>` on large ones), `snap-points` (comma or space separated\nviewport percentages, e.g. `\"25,55,92\"` — a flick steps exactly one, a slower\nrelease lands on the nearest, and dragging below the smallest dismisses.\nPercentages are of the extent the sheet grows along, so `dvh` for bottom and\ntop and `dvw` for left and right), `snap` (the resting snap, reflected as it\nchanges; set it to retarget the sheet, or call `snapTo()`), `spring` (on by\ndefault — a real spring carries the snap settle at the speed the finger was\nmoving; set `\"false\"` for the stylesheet's transition, or `\"0.065,0.3\"` to\ntune attraction and friction).\n\nPart classes: everything `<kernel-dialog>` exposes, plus a\n`data-slot=\"sheet-handle\"` grabber, a `data-slot=\"sheet-body\"` scroll region,\nand — when a child carries `slot=\"footer\"` — a pinned\n`data-slot=\"sheet-footer\"` that owns the bottom safe area and is a drag\nsurface in its own right.\n\nEvents: `close` and the cancelable `cancel` (inherited; `cancel`'s\n`detail.reason` adds `\"drag-dismiss\"` and `\"max-display-width\"`), plus `sheetdrag` (`detail.percent`, 0–1, on\nevery drag frame), `sheetrelease` (`detail.open`, whether the sheet stayed\nopen), and `snapchange` (`detail.from` / `detail.to`, once per settle that\nactually moves). All bubble.\n\nThe handle is `aria-hidden` decoration — the sheet is already dismissable by\nEscape, the close button, and the backdrop — which is why it can be\nabsolutely positioned at the anchored edge instead of having to come first in\nthe DOM, ahead of the dialog's own `<header>`.",
          "attributes": [
            "show-handle",
            "handle-only",
            "dismissible",
            "close-threshold",
            "velocity-threshold",
            "inset",
            "max-display-width",
            "snap-points",
            "snap",
            "spring"
          ],
          "events": [
            "sheetdrag",
            "sheetrelease",
            "snapchange"
          ],
          "eventDetails": {
            "sheetdrag": "{ percent: number }",
            "sheetrelease": "{ open: boolean }",
            "snapchange": "{ from: number; to: number }"
          }
        }
      }
    },
    "sidebar": {
      "name": "Sidebar",
      "react": {
        "Sidebar": {
          "description": "A real `<aside>` landmark for secondary or complementary content, e.g.\ndocs navigation, a table of contents, or filters next to a list.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\">"
          ],
          "props": [
            {
              "name": "aria-label",
              "type": "string",
              "optional": false,
              "description": "Required: an `<aside>` is a \"complementary\" landmark, and a page can\nhave several, so each needs its own accessible name."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-sidebar": {
          "description": "`<kernel-sidebar>` — a real `<aside>` landmark for secondary or\ncomplementary content, e.g. docs navigation, a table of contents, or\nfilters next to a list.\n\nAttributes: `aria-label` (required — an `<aside>` is a\n\"complementary\" landmark, and a page can have several, so each needs\nits own accessible name; forwarded onto the real `<aside>`, since the\nouter custom element tag has no ARIA semantics of its own).\n`aria-labelledby` and `aria-describedby` are forwarded the same way.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        }
      }
    },
    "skeleton": {
      "name": "Skeleton",
      "react": {
        "Skeleton": {
          "description": "A loading placeholder. `aria-hidden` is what makes this correct:\nthere's no content here yet, so assistive tech should skip it\nentirely rather than announce an empty, decorative box. Size it with\n`style` or your own class to match the real content it stands in for.",
          "extends": [
            "Omit<HTMLAttributes<HTMLDivElement>, \"className\">"
          ],
          "props": [
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-skeleton": {
          "description": "`<kernel-skeleton>` — a loading placeholder. `aria-hidden` is what\nmakes this correct: there's no content here yet, so assistive tech\nshould skip it entirely rather than announce an empty, decorative\nbox. Size it with your own CSS to match the real content it stands\nin for.",
          "attributes": [],
          "events": []
        }
      }
    },
    "slider": {
      "name": "Slider",
      "react": {
        "Slider": {
          "description": "A real `<input type=\"range\">`. Dragging, arrow-key stepping, Page\nUp/Down, Home/End, and touch support are all native. The filled\nportion of the track has no standardised styling API yet, so this\ncomputes the fill ratio in JS and hands it to CSS as custom properties\n(`--ratio`, plus `--percent` for anyone styling against it) on the\nroot's inline style, that hand-off is the only JavaScript involved.\nInline style rather than an effect so a server render already shows\nthe right fill instead of an empty track until hydration.\n\nThe inset variant keeps the same input, stretched over the whole\ntrack with its own track painted transparent: the fill underneath is\none element clipped to the thumb's trailing edge with a rounded\n`clip-path`, so the fill and the on-accent copy of the start/end\ncaptions are cut by the same edge, and each caption changes colour\nexactly where the fill crosses it. Those captions are `aria-hidden`\ndecoration; the input's value and its `<label>` stay the accessible\nname and state.\n\nThe drag bar is a real element rather than paint on the thumb, so it\ncan be measured: when it would land on a caption, the track gets\n`data-overlap=\"start\" | \"end\"`. At rest the bar gives way (the fill's\nedge still shows the value); while hovered, dragged or keyboard-focused\nthe caption gives way instead, because that's when the handle matters.\nThis is the one piece of measuring JS; it runs on value and size\nchanges, never inside the browser's own drag handling.",
          "extends": [
            "Omit< InputHTMLAttributes<HTMLInputElement>, \"className\" | \"type\" | \"value\" | \"defaultValue\" | \"onChange\" >"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label without removing it from the accessibility\ntree — see `TextField`'s `hideLabel` for the full rationale."
            },
            {
              "name": "value",
              "type": "number",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "number",
              "optional": true,
              "default": "0"
            },
            {
              "name": "onValueChange",
              "type": "(value: number, details: ChangeDetails<SliderChangeReason>) => void",
              "optional": true,
              "description": "Called before the value moves, with the reason (`\"drag\"` or `\"keyboard\"`); `details.cancel()`\nkeeps the thumb where it was."
            },
            {
              "name": "min",
              "type": "number",
              "optional": true,
              "default": "0"
            },
            {
              "name": "max",
              "type": "number",
              "optional": true,
              "default": "100"
            },
            {
              "name": "step",
              "type": "number",
              "optional": true,
              "default": "1"
            },
            {
              "name": "showValue",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Shows the current numeric value next to the label."
            },
            {
              "name": "variant",
              "type": "\"default\" | \"inset\"",
              "optional": true,
              "default": "\"default\"",
              "description": "`\"default\"` is a thin track with a floating thumb. `\"inset\"` makes\nthe track itself a full-height control (same height and corner as\nButton or Tabs) that fills with the accent colour, dragged by a slim\nbar inside the fill's leading edge."
            },
            {
              "name": "startLabel",
              "type": "ReactNode",
              "optional": true,
              "description": "Inset variant only: a caption pinned inside the track's start."
            },
            {
              "name": "endLabel",
              "type": "ReactNode",
              "optional": true,
              "description": "Inset variant only: a caption pinned inside the track's end."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-slider": {
          "description": "`<kernel-slider>` — a real `<input type=\"range\">`. Dragging, arrow-key\nstepping, Page Up/Down, Home/End, and touch support are all native.\nThe filled portion of the track has no standardised styling API yet,\nso this computes the fill ratio on every `input` event and feeds it\nback in as CSS custom properties (`--ratio`, `--percent`) on the root,\nthe same hand-off `@kernelui-lib/react`'s `<Slider>` does.\n\n`variant=\"inset\"` turns the track into a full-height control (control\nheight and radius, like Button or Tabs) that fills with the accent\ncolour, dragged by a slim bar inside the fill. The fill is one\nelement clipped to the thumb's edge, carrying an on-accent copy of\nthe `start-label`/`end-label` captions so each changes colour exactly\nwhere the fill crosses it; both caption layers are `aria-hidden`.\nThe drag bar is a real element so it can be measured: when it would\nland on a caption the track gets `data-overlap`, and the bar steps\naside at rest while the caption steps aside during hover, drag or\nkeyboard focus — see `@kernelui-lib/react`'s `<Slider>`.\n\nAttributes: `label` (required, still the accessible name even when\n`hide-label` is set), `hide-label` (boolean), `value` (default 0),\n`min` (default 0), `max` (default 100), `step` (default 1),\n`show-value` (boolean — shows the current number next to the label),\n`variant` (`default` | `inset`), `start-label` / `end-label` (inset\nonly — captions pinned inside the track's ends), `disabled`, `name`.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<input type=\"range\">`.\n\nEvents: a bubbling, cancelable `beforevaluechange` before each move commits,\n`detail: { value, reason }` (`\"drag\"` or `\"keyboard\"`);\n`preventDefault()` puts the thumb back. Then a bubbling `valuechange`\nand `change` with the same detail once `value` is committed.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "hide-label",
            "value",
            "min",
            "max",
            "step",
            "show-value",
            "variant",
            "start-label",
            "end-label",
            "disabled",
            "name"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ value: number; reason: \"drag\" | \"keyboard\"; event?: Event }",
            "valuechange": "{ value: number; reason: \"drag\" | \"keyboard\"; event?: Event }",
            "change": "{ value: number; reason: \"drag\" | \"keyboard\"; event?: Event }"
          }
        }
      }
    },
    "sources": {
      "name": "Sources",
      "react": {
        "Sources": {
          "description": "A list of cited sources under an AI response — the footer half of the\n\"inline citations + references\" pattern. A real `<section>` wrapping a\nreal `<ul>` of links (`Source`), not a card of styled divs: the heading\nnames the group, each entry is a navigable `<a>`, and find-in-page /\nopen-in-new-tab all work without a custom interaction layer.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\" | \"title\">"
          ],
          "props": [
            {
              "name": "heading",
              "type": "ReactNode | null",
              "optional": true,
              "default": "\"Sources\"",
              "description": "Visible heading above the list. Pass `null` to omit it when the\nsurrounding chat message already labels the sources."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false,
              "description": "`Source` items."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "Source": {
          "extends": [
            "Omit<AnchorHTMLAttributes<HTMLAnchorElement>, \"className\" | \"title\" | \"children\">"
          ],
          "props": [
            {
              "name": "index",
              "type": "number",
              "optional": true,
              "description": "Citation number shown as a small chip (e.g. `1` for `[1]` in the prose)."
            },
            {
              "name": "title",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "host",
              "type": "ReactNode",
              "optional": true,
              "description": "Hostname or short path shown muted after the title. Derived from\n`href` when omitted."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "Citation": {
          "description": "A compact numbered citation chip for use inside response text. Links\nto the matching `Source` (or any URL) — the visual counterpart of the\n`[1]` markers models emit in grounded answers.",
          "extends": [
            "Omit<AnchorHTMLAttributes<HTMLAnchorElement>, \"className\" | \"children\">"
          ],
          "props": [
            {
              "name": "index",
              "type": "number",
              "optional": false,
              "description": "The bracket number shown inline in response prose."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-sources": {
          "description": "`<kernel-sources>` — a list of cited sources under an AI response.\nOwns a `<section>` with an optional heading and a `<ul>` that holds\n`<kernel-source>` children.\n\nAttributes: `heading` (default \"Sources\"; set to empty string to omit).",
          "attributes": [
            "heading"
          ],
          "events": []
        },
        "kernel-source": {
          "description": "`<kernel-source>` — one cited source link. Host uses `display: contents`\nso its `<li>` participates under the parent list.\n\nAttributes: `href` (required for navigation), `title`, `host`\n(defaults from `href`), `index` (optional citation number).",
          "attributes": [
            "href",
            "title",
            "host",
            "index"
          ],
          "events": []
        },
        "kernel-citation": {
          "description": "`<kernel-citation>` — a compact numbered citation chip for use inside\nresponse prose. Attributes: `index` (required), `href`.",
          "attributes": [
            "index",
            "href"
          ],
          "events": []
        }
      }
    },
    "streaming-markdown": {
      "name": "Streaming Markdown",
      "react": {
        "StreamingMarkdown": {
          "description": "Renders Markdown as it streams in from a model: real elements (`<p>`,\n`<ol>`, `<table>`, `<blockquote>`, Kernel's `CodeBlock` for fences), built\nfrom a parsed tree rather than an HTML string.\n\nNever HTML. The parser (`utils/markdown.ts`) produces data and this turns\nit into React elements, so model text can only ever become text: raw\n`<script>` or `<img onerror>` in the content renders as those characters.\nLinks keep only `http:`, `https:`, `mailto:` and relative destinations; an\nunsafe one renders as its text with no `href`. Images render as a link to\nthe image and are never loaded, because an image URL a model wrote is a\nknown way to leak conversation data to a third-party server.\n\nStreaming stability is the reason for the component. The top level is\nsplit into blocks, each keyed by index and memoised on its own source\nslice, so a new chunk re-renders only the last block — earlier paragraphs,\ntables and code blocks keep their DOM nodes, their layout and the reader's\ntext selection. Unfinished syntax renders as its finished form would (see\nthe parser's comment), so nothing flips from raw asterisks to bold, or\nfrom a paragraph of pipes to a table, mid-stream.\n\nIt is deliberately not a live region. A container that announces every\nappended token reads a stream back word by word, or re-reads the whole\nanswer. Announcing belongs to the transcript: inside `MessageScroller`\n(`role=\"log\"`, polite), the message is announced as it's added, and\n`aria-busy` here while `streaming` asks assistive tech to hold this\ncontent's updates until it settles, then read the finished text once.",
          "extends": [
            "Omit<HTMLAttributes<HTMLDivElement>, \"className\" | \"children\" | \"content\">"
          ],
          "props": [
            {
              "name": "content",
              "type": "string",
              "optional": false,
              "description": "The Markdown so far. Append to it as chunks arrive."
            },
            {
              "name": "streaming",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Text is still arriving: unfinished constructs (an open fence, an\nunclosed `**`, half a link or table row) render as their finished form\nwould, instead of as raw syntax."
            },
            {
              "name": "animate",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Fade newly arrived words in while streaming. Off under reduced motion\nwhatever this says. Default `true`."
            },
            {
              "name": "components",
              "type": "StreamingMarkdownComponents",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<StreamingMarkdownState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<StreamingMarkdownLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-streaming-markdown": {
          "description": "`<kernel-streaming-markdown>` — renders Markdown as it streams in from a\nmodel, as real elements built with `createElement` and `textContent`,\nnever `innerHTML`. See `@kernelui-lib/react`'s `<StreamingMarkdown>` for\nthe full reasoning: why model text can only ever become text, why links\nare filtered to safe schemes and images are never loaded, why unfinished\nsyntax renders as its finished form, and why this is not a live region\n(it sets `aria-busy` while streaming and leaves announcing to the\ntranscript, `<kernel-message-scroller>`).\n\nStable streaming: the top level is split into blocks, each remembered with\nthe source slice it came from. A new chunk leaves every block whose slice\nis unchanged untouched — same nodes, same layout, same text selection —\nand patches the last one in place, element by element and text node by\ntext node, so words already on screen keep their nodes and only new words\nmount (and fade in). Fenced code renders through `<kernel-code-block>`,\nwhich reconciles its own lines the same way.\n\nContent: the `content` property or attribute (append to it as chunks\narrive), or Markdown written as the tag's text, read once at connect.\nAttributes: `streaming`, `no-animate` (no word fade-in; reduced motion\nturns it off regardless), and built-in string `label-opens-in-new-tab`\n(\"(opens in new tab)\") — or the `labels` property.",
          "attributes": [
            "content",
            "streaming",
            "no-animate",
            "label-opens-in-new-tab"
          ],
          "events": []
        }
      }
    },
    "switch": {
      "name": "Switch",
      "react": {
        "Switch": {
          "description": "There's no native \"switch\" element yet, so this follows the WAI-ARIA\nswitch pattern: a real `<button>` (so click, Space/Enter, and focus are\nfree) with `role=\"switch\"` and `aria-checked` telling assistive tech\nit's a two-state toggle, not a regular button. Wrapping it in a\n`<label>` works because `button` is a labelable element, exactly like\n`input`.",
          "extends": [
            "Omit< ButtonHTMLAttributes<HTMLButtonElement>, \"className\" | \"onChange\" | \"children\" >"
          ],
          "props": [
            {
              "name": "checked",
              "type": "boolean",
              "optional": true
            },
            {
              "name": "defaultChecked",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "onCheckedChange",
              "type": "(checked: boolean, details: ChangeDetails<SwitchChangeReason>) => void",
              "optional": true,
              "description": "Called before the switch flips, with the reason (`\"press\"` or\n`\"keyboard\"`); `details.cancel()` keeps it as it is."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<SwitchState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-switch": {
          "description": "`<kernel-switch>` — there's no native \"switch\" element, so this follows\nthe WAI-ARIA switch pattern: a real `<button role=\"switch\">` (click,\nSpace/Enter, and focus all free) with `aria-checked` telling assistive\ntech it's a two-state toggle, not a regular button. Mirrors\n`@kernelui-lib/react`'s `<Switch>`.\n\nAttributes: `checked`, `disabled` (both boolean). Text content, if\nany, becomes a real `<label>` wrapping the button — omit it for a\nbare switch. Toggling first dispatches a bubbling, cancelable\n`beforevaluechange` with `detail: { checked, reason }` (`reason` is `\"press\"`\nor `\"keyboard\"`); `preventDefault()` on it leaves the switch as it was.\nThen the switch flips and a bubbling `valuechange` and `change` follow\nwith the same detail, after the commit as with any native control, so a `change`\nhandler reading `checked` sees the new state.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<button role=\"switch\">`. With no text content,\ngive the switch a name this way (`aria-label=\"Bill yearly\"`).",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "checked",
            "disabled"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ checked: boolean; reason: \"keyboard\" | \"press\"; event?: Event }",
            "valuechange": "{ checked: boolean; reason: \"keyboard\" | \"press\"; event?: Event }",
            "change": "{ checked: boolean; reason: \"keyboard\" | \"press\"; event?: Event }"
          }
        }
      }
    },
    "suggestion": {
      "name": "Suggestion",
      "react": {
        "Suggestion": {
          "description": "A horizontal row of prompt suggestions — the chips that sit above or\nbelow a chat composer and seed the next message. A real `<ul>` of\n`<button>`s (via `SuggestionItem`), not a div of clickable spans: the\nlist announces as a group, each chip is a genuine button, and keyboard\nfocus works without inventing a roving-tabindex pattern for a small\nset of peer actions.\n\nEach item is an optical pill (see `Badge`): the inline padding includes\nthe width the round ends cut away, and an icon at either end of an\nitem's children becomes a `1lh` box concentric with the cap.",
          "extends": [
            "Omit<HTMLAttributes<HTMLUListElement>, \"className\">"
          ],
          "props": [
            {
              "name": "label",
              "type": "string",
              "optional": true,
              "default": "\"Suggestions\"",
              "description": "Accessible name for the suggestion list."
            },
            {
              "name": "disabled",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Disables every `SuggestionItem` inside (each chip's real `disabled`)."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false,
              "description": "`SuggestionItem`s."
            },
            {
              "name": "className",
              "type": "ClassNameValue<SuggestionState>",
              "optional": true
            }
          ]
        },
        "SuggestionItem": {
          "extends": [
            "Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"className\" | \"onSelect\">"
          ],
          "props": [
            {
              "name": "value",
              "type": "string",
              "optional": true,
              "description": "Value handed to `onSelect`. Defaults to the button's text content."
            },
            {
              "name": "onSelect",
              "type": "(value: string) => void",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<SuggestionItemState>",
              "optional": true
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            }
          ]
        }
      },
      "elements": {
        "kernel-suggestion": {
          "description": "`<kernel-suggestion>` — a horizontal row of prompt suggestions\n(`<kernel-suggestion-item>` children). A real `<ul role=\"list\">`, not a\ndiv of clickable spans.\n\nAttributes: `label` (accessible name, default \"Suggestions\"),\n`disabled`.",
          "attributes": [
            "label",
            "disabled"
          ],
          "events": []
        },
        "kernel-suggestion-item": {
          "description": "`<kernel-suggestion-item>` — one suggestion chip. Owns a real\n`<li>` > `<button type=\"button\">`. The host uses `display: contents`\nso the `<li>` participates as a direct child of the parent `<ul>`\n(custom elements can't be `<li>` themselves).\n\nAttributes: `value` (detail of the `select` CustomEvent; defaults to\nthe button text), `disabled`.\n\nEvents: `select` CustomEvent with `detail.value`.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the chip's `<button>`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "value",
            "disabled"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [
            "select"
          ],
          "eventDetails": {
            "select": "{ value: string }"
          }
        }
      }
    },
    "table": {
      "name": "Table",
      "react": {
        "Table": {
          "description": "A real `<table>`, inside its own horizontal scroll container. A table\ncan't shrink below the width of its content, so without one a wide\ntable on a phone widens the whole page (and the browser zooms the\nlayout out to fit) instead of scrolling where it is.",
          "extends": [
            "Omit<HTMLAttributes<HTMLTableElement>, \"className\">"
          ],
          "props": [
            {
              "name": "className",
              "type": "Div<Record<string, never>>",
              "optional": true,
              "description": "Applied to the `<table>` itself."
            },
            {
              "name": "wrapperClassName",
              "type": "Div<Record<string, never>>",
              "optional": true,
              "description": "Applied to the scroll container around it."
            }
          ]
        },
        "TableHead": {
          "description": "`scope=\"col\"` by default, since a header cell almost always heads a\ncolumn; pass `scope=\"row\"` explicitly for row headers.",
          "extends": [
            "Omit<ThHTMLAttributes<HTMLTableCellElement>, \"className\">"
          ],
          "props": [
            {
              "name": "className",
              "type": "Div<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-table": {
          "description": "`<kernel-table>` — a real `<table>`. Wrap it in a scrolling `<div>`\nyourself for narrow screens, that's a layout concern, not the\ntable's. Compose with `<kernel-table-caption>`,\n`<kernel-table-header>` (`<thead>`), `<kernel-table-body>`\n(`<tbody>`), `<kernel-table-row>`, `<kernel-table-head>` (`<th>`),\n`<kernel-table-cell>` (`<td>`).\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the real `<table>`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        },
        "kernel-table-caption": {
          "attributes": [],
          "events": []
        },
        "kernel-table-header": {
          "attributes": [],
          "events": []
        },
        "kernel-table-body": {
          "attributes": [],
          "events": []
        },
        "kernel-table-row": {
          "attributes": [],
          "events": []
        },
        "kernel-table-head": {
          "description": "`<kernel-table-head>` — a real `<th>`. `scope=\"col\"` by default,\nsince a header cell almost always heads a column; pass\n`scope=\"row\"` explicitly for row headers.",
          "attributes": [
            "scope"
          ],
          "events": []
        },
        "kernel-table-cell": {
          "attributes": [],
          "events": []
        }
      }
    },
    "tabs": {
      "name": "Tabs",
      "react": {
        "Tabs": {
          "description": "There's no native tabs element, this is the WAI-ARIA `tablist` pattern.\n`TabPanel` uses the native `hidden` attribute for the inactive panels,\nso they're genuinely removed from layout and the accessibility tree,\nnot just visually hidden. A tablist wider than its container scrolls\nsideways (scrollbar hidden, an edge fade where tabs are cut off) rather\nthan widening the page, and selecting a tab scrolls it into view.",
          "extends": [],
          "props": [
            {
              "name": "value",
              "type": "string",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "string",
              "optional": false
            },
            {
              "name": "onValueChange",
              "type": "(value: string, details: ChangeDetails<TabsChangeReason>) => void",
              "optional": true,
              "description": "Called before the selection moves, with the reason (`\"trigger-press\"` or `\"keyboard\"`); `details.cancel()`\nkeeps the current tab selected."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "TabsList": {
          "extends": [],
          "props": [
            {
              "name": "aria-label",
              "type": "string",
              "optional": false
            },
            {
              "name": "shape",
              "type": "\"default\" | \"pill\"",
              "optional": true,
              "default": "\"default\"",
              "description": "`\"default\"` follows the theme's control radius (square at Sharp, a\npill when the theme makes controls pills). `\"pill\"` makes this list\nfully rounded — track, tabs and indicator — whatever the theme says."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        },
        "Tab": {
          "extends": [],
          "props": [
            {
              "name": "value",
              "type": "string",
              "optional": false
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "disabled",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "className",
              "type": "ClassNameValue<{ selected: boolean }>",
              "optional": true
            }
          ]
        },
        "TabPanel": {
          "extends": [],
          "props": [
            {
              "name": "value",
              "type": "string",
              "optional": false
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-tabs": {
          "description": "`<kernel-tabs>` — the WAI-ARIA `tablist` pattern (there's no native\ntabs element). Wraps a `<kernel-tabs-list>` (containing\n`<kernel-tab>` triggers) and one `<kernel-tab-panel>` per tab, as\nflat light-DOM children — same shape as `@kernelui-lib/react`'s\n`<Tabs><TabsList>...</TabsList><TabPanel/>...</Tabs>`.\n\nAttributes: `value` (controlled — set it to change tabs\nexternally), `default-value` (required if `value` is never set).\nBefore the active tab changes, a cancelable `beforevaluechange`\n`CustomEvent` (`event.detail.value`, `detail.reason`: `\"trigger-press\"`,\n`\"keyboard\"`, or `\"programmatic\"` for a `setValue()` call);\n`preventDefault()` keeps the current tab. Once it has changed, a\n`valuechange` with the same detail. A tablist wider than its container scrolls\nsideways (scrollbar hidden, an edge fade where tabs are cut off) rather\nthan widening the page, and selecting a tab scrolls it into view.",
          "attributes": [
            "value"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ value: string; reason: \"keyboard\" | \"programmatic\" | \"trigger-press\"; event?: Event }",
            "valuechange": "{ value: string; reason: \"keyboard\" | \"programmatic\" | \"trigger-press\"; event?: Event }"
          }
        },
        "kernel-tabs-list": {
          "description": "`<kernel-tabs-list>` — `role=\"tablist\"`. Attributes: `aria-label`\n(required), `shape` (`default` follows the theme's control radius,\n`pill` makes the list fully rounded whatever the theme). Handles arrow-key/Home/End roving between `<kernel-tab>`\nchildren and the animated sliding indicator.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the `role=\"tablist\"`.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "shape"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        },
        "kernel-tab": {
          "description": "`<kernel-tab>` — a real `<button role=\"tab\">`. Attributes: `value`\n(required), `disabled`; `aria-label`, `aria-labelledby` and\n`aria-describedby` are forwarded to the button.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "value",
            "disabled"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        },
        "kernel-tab-panel": {
          "description": "`<kernel-tab-panel>` — a real `role=\"tabpanel\"`, hidden via the\nnative `hidden` attribute when inactive (genuinely removed from\nlayout and the accessibility tree). Attributes: `value` (required).",
          "attributes": [],
          "events": []
        }
      }
    },
    "tag-input": {
      "name": "Tag Input",
      "react": {
        "TagInput": {
          "description": "No native element for this — freeform text that commits into discrete\ntags. The committed tags are a `role=\"list\"` of `role=\"listitem\"`\nchips, named by the field's label. The text input sits *beside* that\nlist, not inside it: a plain `<input type=\"text\">` that keeps its\nnative textbox role, its `<label for>` name and its `aria-describedby`.\n(An earlier version gave the input `role=\"listitem\"` so the list would\nown only listitems, but overriding a textbox's role hides it from\nassistive tech, and from agents looking for a text field.) The list\nwrapper is `display: contents`, so the chips and the input are still\nsibling flex items of the field and flow inline together, and it is\nonly rendered while there are tags, since an empty list is noise.\nDeliberately lighter than a full\n`listbox`/`grid` (no roving-tabindex or arrow-key contract, since\nthere's no selection or navigation model here, just insertion and\nremoval). Each chip's remove button is a real `<button>` but\n`tabIndex={-1}`: Backspace on an empty draft removes the last tag and\nkeeps focus in the text input, which covers the fully-keyboard-only\nflow (the same pattern Gmail/Linear/GitHub's own tag pickers use)\nwithout adding one extra Tab stop per tag. Mouse/touch users can still\nclick any chip's remove button directly. No autocomplete/suggestion\ndropdown — that's `Combobox`'s job; this stays a simpler, freeform\ncommit-on-Enter/delimiter field on purpose.",
          "extends": [
            "Omit< InputHTMLAttributes<HTMLInputElement>, \"className\" | \"value\" | \"defaultValue\" | \"onChange\" | \"onError\" | \"type\" >"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label without removing it from the accessibility\ntree — see `TextField`'s `hideLabel` for the full rationale."
            },
            {
              "name": "value",
              "type": "string[]",
              "optional": true
            },
            {
              "name": "defaultValue",
              "type": "string[]",
              "optional": true,
              "default": "[]"
            },
            {
              "name": "onValueChange",
              "type": "(tags: string[], details: ChangeDetails<TagInputChangeReason>) => void",
              "optional": true,
              "description": "Called before the tags change, with the reason (`\"enter\"`, `\"separator\"`, `\"paste\"`, `\"remove-button\"` or `\"backspace\"`); `details.cancel()`\nkeeps them as they were (an added tag stays in the draft). A removal is\nreported once the chip's exit transition has played, so a cancelled\nremoval brings the chip back."
            },
            {
              "name": "delimiters",
              "type": "string[]",
              "optional": true,
              "default": "[\",\"]",
              "description": "Characters that commit the current draft as a tag, in addition to\nEnter, which always commits."
            },
            {
              "name": "max",
              "type": "number",
              "optional": true
            },
            {
              "name": "allowDuplicates",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "onError",
              "type": "(error: TagInputError) => void",
              "optional": true,
              "description": "Fires when a commit attempt is rejected (duplicate, empty, or over\n`max`). Distinct from `invalid`/`errorMessage`, which are for\nform-level validation state."
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "errorMessage",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "labelOffset",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Set to `false` to hard-align the label, description, and error text\nflush with the field's left edge, undoing the default inset that lines\nthem up with the input's own text padding (`--kernel-label-inset`)."
            },
            {
              "name": "invalid",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "disabled",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "className",
              "type": "ClassNameValue<TagInputState>",
              "optional": true
            },
            {
              "name": "wrapperClassName",
              "type": "ClassNameValue<TagInputState>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<TagInputLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-tag-input": {
          "description": "`<kernel-tag-input>` — freeform text that commits into discrete tags,\nsame DOM as `@kernelui-lib/react`'s `<TagInput>`: a `role=\"list\"` of\n`role=\"listitem\"` chips (a `display: contents` wrapper, only present\nwhile there are tags) followed by a sibling text input that keeps its\nnative textbox role, label and description. The input is deliberately\nnot a listitem: overriding a textbox's role hides it from assistive\ntech. See the React file for the full interaction rationale\n(Backspace-removes-last-tag, chip remove buttons excluded from the tab\nsequence, no autocomplete).\n\n`value` serializes as a comma-joined attribute string — a tag\ncontaining the delimiter character itself can't round-trip through\nthat encoding, so use the `tags` property (or the `change` event's\n`detail.tags`) instead when that matters.\n\nA cancelable `beforevaluechange` is dispatched before the tags change, with\n`detail: { tags, reason }` — `\"enter\"`, `\"separator\"`, `\"paste\"`,\n`\"remove-button\"` or `\"backspace\"`. `preventDefault()` keeps the tags as\nthey were: an added tag stays in the draft, and a removal (reported once\nthe chip's exit transition has played) brings the chip back. Once the\ntags are committed a bubbling `valuechange` and `change` follow with the\nsame detail, so a handler reading `tags` sees the new list. A paste or\ntyped separator that adds several tags is a single event of each kind\nwith all of them, as in React.\n\nAttributes: `label` (required, still the accessible name even when\n`hide-label` is set), `hide-label` (boolean), `value` (comma-joined),\n`delimiters` (comma-joined, default `\",\"`), `max`, `allow-duplicates`\n(boolean), `description`, `error-message`, `no-label-offset` (boolean —\nhard-aligns the label, description, and error text flush left instead\nof the default inset that lines them up with the input's own text\npadding), `invalid`, `disabled`, `name`, `label-remove-tag` (template,\ndefault `\"Remove {tag}\"`; or the `labels` property's `removeTag`).\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner text `<input>`; an authored `aria-describedby`\nis added after its own hint and error ids.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "hide-label",
            "value",
            "delimiters",
            "max",
            "allow-duplicates",
            "description",
            "error-message",
            "no-label-offset",
            "invalid",
            "disabled",
            "name",
            "label-remove-tag"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [
            "kernel-tag-input-error"
          ],
          "eventDetails": {
            "kernel-tag-input-error": "{ type: \"duplicate\" | \"max\" | \"empty\"; value: string }",
            "beforevaluechange": "{ tags: string[]; reason: \"backspace\" | \"enter\" | \"paste\" | \"remove-button\" | \"separator\"; event?: Event }",
            "valuechange": "{ tags: string[]; reason: \"backspace\" | \"enter\" | \"paste\" | \"remove-button\" | \"separator\"; event?: Event }",
            "change": "{ tags: string[]; reason: \"backspace\" | \"enter\" | \"paste\" | \"remove-button\" | \"separator\"; event?: Event }"
          }
        }
      }
    },
    "text-field": {
      "name": "Text Field",
      "react": {
        "TextField": {
          "description": "A native `<label>` + `<input>` pair with correct `aria-describedby`\nwiring for hint and error text. `:user-invalid` handles the live,\npost-interaction validation styling natively; the `invalid` prop is for\nvalidation you already know about (a failed server response, for\nexample) before the user has touched the field.\n\nSlot class hooks (`wrapperClassName`, `labelClassName`, …) and\n`data-focused` / `data-filled` on the wrapper let unstyled consumers\ndrive floating-label animations without targeting generated classes.",
          "extends": [
            "Omit<InputHTMLAttributes<HTMLInputElement>, \"className\" | \"size\">"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false,
              "description": "Always rendered as a real `<label>`, always linked to the input,\nnever a placeholder standing in for one — required even when\n`hideLabel` is set, since it's still the input's accessible name."
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label (a screen-reader-only, `hideLabel`\n\"removed from the DOM\" would produce an unlabeled input, not a\nsimplified one, so this keeps `label` in the accessibility tree and\nonly hides its paint. Reach for this when the surrounding UI\nalready makes the field's purpose obvious (a search bar next to a\nmagnifying-glass icon, a single-field inline form) — the label\nshould stay visible by default everywhere else."
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true,
              "description": "Helper text shown below the field when there's no error."
            },
            {
              "name": "errorMessage",
              "type": "ReactNode",
              "optional": true,
              "description": "Shown instead of the description, with `role=\"alert\"`, when `invalid`\nis true."
            },
            {
              "name": "labelOffset",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Set to `false` to hard-align the label, description, and error text\nflush with the field's left edge, undoing the default inset that lines\nthem up with the input's own text padding (`--kernel-label-inset`)."
            },
            {
              "name": "invalid",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "size",
              "type": "\"sm\" | \"md\" | \"lg\"",
              "optional": true,
              "default": "\"md\""
            },
            {
              "name": "className",
              "type": "ClassNameValue<TextFieldState>",
              "optional": true,
              "description": "Classes for the `<input>` itself. Use `wrapperClassName` for the whole field."
            },
            {
              "name": "wrapperClassName",
              "type": "ClassNameValue<TextFieldState>",
              "optional": true
            },
            {
              "name": "labelClassName",
              "type": "ClassNameValue<TextFieldState>",
              "optional": true
            },
            {
              "name": "descriptionClassName",
              "type": "ClassNameValue<TextFieldState>",
              "optional": true
            },
            {
              "name": "errorClassName",
              "type": "ClassNameValue<TextFieldState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-text-field": {
          "description": "`<kernel-text-field>` — a real `<label>` + `<input>` pair with correct\n`aria-describedby` wiring for hint and error text. `:user-invalid`\nhandles live, post-interaction validation styling natively; the\n`invalid` attribute is for validation you already know about before\nthe user has touched the field. Mirrors `@kernelui-lib/react`'s\n`<TextField>`.\n\nAttributes: `label` (required, still the input's accessible name even\nwhen `hide-label` is set), `hide-label` (boolean — visually hides the\nlabel without removing it from the accessibility tree), `description`,\n`error-message`, `no-label-offset` (boolean — hard-aligns the label,\ndescription, and error text flush left instead of the default inset\nthat lines them up with the input's own text padding), `invalid`,\n`required`, `disabled`, `size` (sm/md/lg, default md), `type` (default\ntext), `placeholder`, `value`, `name`.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<input>`; an authored `aria-describedby` is\nadded after the field's own hint and error ids.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "hide-label",
            "description",
            "error-message",
            "no-label-offset",
            "invalid",
            "required",
            "disabled",
            "size",
            "type",
            "placeholder",
            "value",
            "name"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        }
      }
    },
    "textarea": {
      "name": "Textarea",
      "react": {
        "Textarea": {
          "description": "A real `<textarea>` that grows with its content via\n`field-sizing: content` instead of a `scrollHeight`-measuring resize\nlistener. Same label/description/error wiring and floating-label state\nhooks as `TextField`.",
          "extends": [
            "Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, \"className\">"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label without removing it from the accessibility\ntree — see `TextField`'s `hideLabel` for the full rationale."
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "errorMessage",
              "type": "ReactNode",
              "optional": true
            },
            {
              "name": "labelOffset",
              "type": "boolean",
              "optional": true,
              "default": "true",
              "description": "Set to `false` to hard-align the label, description, and error text\nflush with the field's left edge, undoing the default inset that lines\nthem up with the textarea's own text padding (`--kernel-label-inset`)."
            },
            {
              "name": "invalid",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "className",
              "type": "ClassNameValue<TextareaState>",
              "optional": true,
              "description": "Classes for the `<textarea>` itself. Use `wrapperClassName` for the whole field."
            },
            {
              "name": "wrapperClassName",
              "type": "ClassNameValue<TextareaState>",
              "optional": true
            },
            {
              "name": "labelClassName",
              "type": "ClassNameValue<TextareaState>",
              "optional": true
            },
            {
              "name": "descriptionClassName",
              "type": "ClassNameValue<TextareaState>",
              "optional": true
            },
            {
              "name": "errorClassName",
              "type": "ClassNameValue<TextareaState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-textarea": {
          "description": "`<kernel-textarea>` — a real `<textarea>` that grows with its content\nvia `field-sizing: content` instead of a `scrollHeight`-measuring\nresize listener (falls back to a manual resize handle where that\nproperty isn't supported yet). Mirrors `@kernelui-lib/react`'s\n`<Textarea>`.\n\nAttributes: `label` (required, still the accessible name even when\n`hide-label` is set), `hide-label` (boolean), `description`,\n`error-message`, `no-label-offset` (boolean — hard-aligns the label,\ndescription, and error text flush left instead of the default inset\nthat lines them up with the textarea's own text padding), `invalid`,\n`required`, `disabled`, `placeholder`, `value`, `name`.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the inner `<textarea>`; an authored `aria-describedby` is\nadded after its own hint and error ids.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "hide-label",
            "description",
            "error-message",
            "no-label-offset",
            "invalid",
            "required",
            "disabled",
            "placeholder",
            "value",
            "name"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        }
      }
    },
    "thinking-indicator": {
      "name": "Thinking Indicator",
      "react": {
        "ThinkingIndicator": {
          "description": "The universal \"typing indicator\" (iMessage, Slack) — three staggered dots\nnext to a visible label. `role=\"status\"` matches Toast's own\n`default`/`success` case: a non-interrupting, polite live-region update,\nnot urgent enough for `role=\"alert\"`.",
          "extends": [],
          "props": [
            {
              "name": "label",
              "type": "string",
              "optional": true,
              "default": "\"Thinking\"",
              "description": "Real, visible text — not sr-only — same reasoning as Toast: the state\nshould be readable by everyone, not just announced to assistive tech."
            },
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-thinking-indicator": {
          "description": "`<kernel-thinking-indicator>` — the universal \"typing indicator\"\n(iMessage, Slack): three staggered dots next to a visible, shimmering\nlabel. `role=\"status\"`, same reasoning as Toast's `default`/`success`\ncase — a polite, non-interrupting live-region update.\n\nAttributes: `label` (default \"Thinking\").",
          "attributes": [
            "label"
          ],
          "events": []
        }
      }
    },
    "toast": {
      "name": "Toast",
      "react": {
        "ToastViewport": {
          "description": "Mount once, anywhere (the end of your root layout is typical). Every\ntoast renders as its own live region: `danger`/`warning` use\n`role=\"alert\"` (assertive), `default`/`success` use `role=\"status\"`\n(polite), the same reasoning as `Callout`.\n\nSwipe a toast toward the viewport's edge (inline-end) to dismiss it. The\ntoast follows the pointer one-to-one that way and rubber-bands the other;\non release it leaves if it travelled 40% of its width *or* the last 100ms\nof the gesture were faster than 0.5px/ms (the same windowed flick bar Sheet\nuses), and otherwise eases back. A pointer pulling back at release keeps the\ntoast even past the distance threshold — intent, not position, decides.\nThe gesture never starts on a button, link or other control inside the\ntoast, claims nothing until 4px of mostly-horizontal travel (so a click is\nstill a click and a vertical pan still scrolls), and only then captures the\npointer. Under reduced motion the toast doesn't slide under the pointer; a\nswipe still dismisses it, by a fade. The close button stays the accessible\nway to dismiss — the swipe is a shortcut, not the only path.",
          "extends": [],
          "props": [
            {
              "name": "className",
              "type": "ClassNameValue<Record<string, never>>",
              "optional": true
            },
            {
              "name": "labels",
              "type": "Partial<ToastLabels>",
              "optional": true,
              "description": "Override built-in strings (e.g. for translation); unset keys keep\ntheir English default."
            }
          ]
        }
      },
      "elements": {
        "kernel-toast-viewport": {
          "description": "`<kernel-toast-viewport>` — mount once, anywhere (the end of the page\nbody is typical). Toasts are pushed imperatively via the exported\n`toast()` function (also `toast.success`/`.warning`/`.danger`/\n`.dismiss`), identical API to `@kernelui-lib/react`'s own `toast()`. Same\nhover-to-expand stack, swipe-to-dismiss, and pause-on-hover behaviour.\n\nSwipe a toast toward the viewport's edge (inline-end) to dismiss it: it\nfollows the pointer that way and rubber-bands the other, and on release\nleaves on 40% of its width *or* a flick faster than 0.5px/ms over the last\n100ms (Sheet's bar), otherwise easing back. The gesture never starts on a\ncontrol inside the toast, claims nothing until 4px of mostly-horizontal\ntravel, and fades instead of sliding under reduced motion. Same engine as\nthe React version (`toastSwipe.ts`) — see `ToastViewport` there for why.\n\nBuilt-in strings: `label-dismiss` (default \"Dismiss\"), or the `labels`\nproperty — see `ToastLabels` in `@kernelui-lib/react`.",
          "attributes": [
            "label-dismiss"
          ],
          "events": []
        }
      }
    },
    "toggle": {
      "name": "Toggle",
      "react": {
        "Toggle": {
          "description": "A real `<button aria-pressed>`, the WAI-ARIA pattern for a two-state\ntoggle that looks and behaves like a button (a toolbar \"bold\" button,\nsay), as distinct from `Switch`, which is the pattern for an on/off\nsetting.\n\nShaped like `Button`: an optical pill at a round theme (see `Badge`),\nso a text label's padding includes the width the end caps cut away\nand its capitals are centred by cap height. An icon child at either\nend is found the same way `Badge` finds one (`pillIconAttrs`, then the\nreal DOM) and sits in a 1lh slot concentric with the corner, so an\nicon-only toggle stays square, or a circle at Round.",
          "extends": [
            "Omit<ButtonHTMLAttributes<HTMLButtonElement>, \"className\" | \"onChange\">"
          ],
          "props": [
            {
              "name": "pressed",
              "type": "boolean",
              "optional": true
            },
            {
              "name": "defaultPressed",
              "type": "boolean",
              "optional": true,
              "default": "false"
            },
            {
              "name": "onPressedChange",
              "type": "(pressed: boolean, details: ChangeDetails<ToggleChangeReason>) => void",
              "optional": true,
              "description": "Called before the toggle flips, with the reason (`\"press\"` or\n`\"keyboard\"`); `details.cancel()` keeps it as it is."
            },
            {
              "name": "size",
              "type": "\"sm\" | \"md\" | \"lg\"",
              "optional": true,
              "default": "\"md\""
            },
            {
              "name": "className",
              "type": "ClassNameValue<ToggleState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-toggle": {
          "description": "`<kernel-toggle>` — a real `<button aria-pressed>`, the WAI-ARIA\npattern for a two-state toggle that looks and behaves like a button (a\ntoolbar \"bold\" button, say), distinct from `<kernel-switch>`, which is\nthe pattern for an on/off setting. Mirrors `@kernelui-lib/react`'s\n`<Toggle>`.\n\nShaped like `<kernel-button>`: an optical pill at a round theme, with\nan icon child at either end flagged by `observePillIcons()` so it sits\nconcentric with the corner (see `@kernelui-lib/react`'s `<Toggle>`).\n\nAttributes: `pressed`, `disabled` (both boolean), `size`\n(sm/md/lg, default md). `aria-label` (for an icon-only toggle),\n`aria-labelledby` and `aria-describedby` are forwarded to the inner\n`<button>`; on the host they would name nothing.\n\nEvents: a bubbling, cancelable `beforevaluechange` before the toggle flips,\n`detail: { pressed, reason }` (`\"press\"` or `\"keyboard\"`);\n`preventDefault()` leaves it as it was. Then a bubbling `valuechange`\nand `change` with the same detail once the new state is committed.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "pressed",
            "disabled",
            "size"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": [],
          "eventDetails": {
            "beforevaluechange": "{ pressed: boolean; reason: \"keyboard\" | \"press\"; event?: Event }",
            "valuechange": "{ pressed: boolean; reason: \"keyboard\" | \"press\"; event?: Event }",
            "change": "{ pressed: boolean; reason: \"keyboard\" | \"press\"; event?: Event }"
          }
        }
      }
    },
    "todo-list": {
      "name": "Todo List",
      "react": {
        "TodoList": {
          "description": "An agent's task plan: a `<details>`/`<summary>` wrapping a real `<ol>`.\n\nThe plan is ordered work, so it's an ordered list — and the disclosure is\nnative, which means the browser owns expand/collapse, keyboard support,\nand find-in-page expansion. The summary carries the completion count\nbecause a collapsed plan whose progress you can't see is a plan you have\nto expand to learn anything from.\n\nWhen the plan is re-ordered — an agent re-prioritising, a task inserted\nmid-plan — items glide to their new places instead of jumping, so the eye\ncan follow which task went where. Any re-render with a new child order is\nFLIP-animated with the Web Animations API from a layout effect (after\nReact commits, before paint), with new items fading in. Wrap the update in\n{@link animateTodoListChange} to have the browser run it as an\nelement-scoped view transition instead; it's scoped to the `<ol>`, never\n`document.startViewTransition()`, which would freeze the whole page for a\nlist's sake. Nothing moves under `prefers-reduced-motion`: the order\nchanges in place. The order is the DOM order either way, so assistive tech\nreads the new sequence immediately — the motion is only for sighted users\ntracking the change.",
          "extends": [
            "Omit<HTMLAttributes<HTMLDetailsElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "label",
              "type": "ReactNode",
              "optional": true,
              "default": "\"Plan\"",
              "description": "Summary text — the plan's title."
            },
            {
              "name": "metadata",
              "type": "ReactNode",
              "optional": true,
              "description": "Trailing detail on the summary line: a model name, an elapsed time."
            },
            {
              "name": "completed",
              "type": "number",
              "optional": true,
              "description": "Completion count. Derived from `TodoItem` children when omitted, which\ncovers the common case of a statically listed plan."
            },
            {
              "name": "total",
              "type": "number",
              "optional": true,
              "description": "Total count. Derived from `TodoItem` children when omitted."
            },
            {
              "name": "defaultOpen",
              "type": "boolean",
              "optional": true,
              "default": "true"
            },
            {
              "name": "open",
              "type": "boolean",
              "optional": true
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean) => void",
              "optional": true
            },
            {
              "name": "className",
              "type": "ClassNameValue<TodoListState>",
              "optional": true
            }
          ]
        },
        "TodoItem": {
          "description": "One task in the plan.\n\nAll four status marks are rendered at once and cross-faded by CSS on\n`data-status`, which is what makes a status change read as the same mark\nmorphing rather than one icon being swapped for another — and it means a\nstatus update is a single attribute change, with no JS in the transition\nat all.\n\nThe status is never icon-only: each item carries its status as real, if\nvisually hidden, text. A shape and a colour are not a label.",
          "extends": [
            "Omit<LiHTMLAttributes<HTMLLIElement>, \"className\">"
          ],
          "props": [
            {
              "name": "children",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "status",
              "type": "\"pending\" | \"active\" | \"done\" | \"error\"",
              "optional": true,
              "default": "\"pending\""
            },
            {
              "name": "metadata",
              "type": "ReactNode",
              "optional": true,
              "description": "Trailing detail for this task: a duration, a file count."
            },
            {
              "name": "statusLabel",
              "type": "string",
              "optional": true,
              "description": "Overrides the visually hidden status word announced with the task."
            },
            {
              "name": "className",
              "type": "ClassNameValue<TodoItemState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-todo-list": {
          "description": "`<kernel-todo-list>` — an agent's task plan: a `<details>`/`<summary>`\nwrapping a real `<ol>` of `<kernel-todo-item>`s. See\n`@kernelui-lib/react`'s `<TodoList>` for why the disclosure is native and\nwhy the count lives on the summary.\n\nAttributes: `label` (default \"Plan\"), `metadata`, `completed` / `total`\n(override the derived count), `default-open=\"false\"` to start collapsed.\n\nThe count is recomputed from the `status` attributes of child\n`<kernel-todo-item>`s whenever they change — no explicit bookkeeping in\nthe consumer's update path.\n\nReordering animates. Move `<kernel-todo-item>`s however you like and the\nlist FLIP-animates the change (Web Animations API, from positions cached\nafter every mutation), with new items fading in. Or pass the change to\n`animateChange(() => …)` to have the browser run it as an element-scoped\nview transition (`element.startViewTransition()`, Chrome 147+) on the\n`<ol>`, falling back to a measured FLIP. Never a document-level view\ntransition, which would freeze the whole page for a list's sake, and no\nmotion under `prefers-reduced-motion`. Same engine and reasoning as\n`@kernelui-lib/react`'s `<TodoList>` / `animateTodoListChange`.",
          "attributes": [
            "label",
            "metadata",
            "completed",
            "total"
          ],
          "events": []
        },
        "kernel-todo-item": {
          "description": "`<kernel-todo-item>` — one task. Owns a real `<li>`, with the host set to\n`display: contents` so the `<li>` is a direct child of the list's `<ol>`\n(custom elements can't be `<li>`).\n\nAll four status marks render at once and cross-fade on `data-status`, so a\nstatus change is one attribute write and no JS in the transition — see\n`@kernelui-lib/react`'s `<TodoItem>`. The status is also real, visually\nhidden text: a shape and a colour are not a label.\n\nAttributes: `status` (\"pending\" | \"active\" | \"done\" | \"error\"),\n`metadata`, `status-label` to override the announced status word.",
          "attributes": [
            "status",
            "metadata",
            "status-label"
          ],
          "events": []
        }
      }
    },
    "tool-approval": {
      "name": "Tool Approval",
      "react": {
        "ToolApproval": {
          "description": "The prompt an agent shows before it runs a tool: which tool, what it\nwill do, and Approve / Deny (optionally \"Always allow\"). It's a\n`<section role=\"group\">` named by its own real heading rather than a\nlandmark region, because a long agent transcript can hold dozens of\nthese and a region each would flood the landmark list. Not a `<form>`:\nnothing is submitted to a URL, and each choice is a single press.\n\nThe actions are real Kernel `Button`s. Once a decision is made they're\nreplaced by a status line inside a `role=\"status\"` live region that is\nrendered from the start (a live region only announces changes made\nafter it exists), so the outcome is announced politely. If focus was\non a button that just disappeared, it moves to the status line rather\nthan falling back to the document body.\n\nShaped as a container: `--kernel-radius-container` with\n`--kernel-padding-container-curve` wherever content meets a corner,\nwhich also gives the buttons in the bottom corners their clearance.",
          "extends": [
            "Omit<HTMLAttributes<HTMLElement>, \"className\" | \"title\">"
          ],
          "props": [
            {
              "name": "tool",
              "type": "ReactNode",
              "optional": false,
              "description": "The tool's name, e.g. `\"bash\"` or `\"github.create_issue\"`. Shown in\nmonospace in the heading."
            },
            {
              "name": "title",
              "type": "ReactNode",
              "optional": true,
              "description": "Replaces the whole heading. Defaults to \"Allow `{tool}` to run?\"."
            },
            {
              "name": "headingLevel",
              "type": "1 | 2 | 3 | 4 | 5 | 6",
              "optional": true,
              "default": "3",
              "description": "Which heading element the title renders as. Defaults to `3`."
            },
            {
              "name": "status",
              "type": "\"pending\" | \"approved\" | \"denied\"",
              "optional": true,
              "description": "Controlled decision. `pending` shows the actions; `approved` and\n`denied` replace them with a status line."
            },
            {
              "name": "defaultStatus",
              "type": "\"pending\" | \"approved\" | \"denied\"",
              "optional": true,
              "default": "\"pending\"",
              "description": "Initial decision when uncontrolled. Defaults to `pending`."
            },
            {
              "name": "onStatusChange",
              "type": "(status: ToolApprovalStatus) => void",
              "optional": true,
              "description": "Fires with the new status whenever a button is pressed."
            },
            {
              "name": "onApprove",
              "type": "() => void",
              "optional": true
            },
            {
              "name": "onDeny",
              "type": "() => void",
              "optional": true
            },
            {
              "name": "onAlwaysAllow",
              "type": "() => void",
              "optional": true,
              "description": "When provided, adds an \"Always allow\" button. Pressing it approves\n(status becomes `approved`) and calls this instead of `onApprove`."
            },
            {
              "name": "labels",
              "type": "Partial<ToolApprovalLabels>",
              "optional": true,
              "description": "Override any button or status text, e.g. for localisation."
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true,
              "description": "What the tool will do: a summary sentence, its arguments, a\n`CodeBlock` of the command."
            },
            {
              "name": "className",
              "type": "ClassNameValue<ToolApprovalState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-tool-approval": {
          "description": "`<kernel-tool-approval>` — the prompt an agent shows before it runs a\ntool. A `<section role=\"group\">` named by its own real heading (a\ngroup, not a landmark region, so a long transcript of them doesn't\nflood the landmark list). Mirrors `@kernelui-lib/react`'s\n`<ToolApproval>`.\n\nThe actions are real `<button>`s with `<kernel-button>`'s classes.\nPressing one dispatches a bubbling, cancelable `approve`, `deny` or\n`always-allow` CustomEvent. Unless a listener calls `preventDefault()`,\nthe element then sets its own `status` attribute, which replaces the\nbuttons with a status line in a `role=\"status\"` live region that has\nbeen in the page from the start, so the outcome is announced politely.\nIf focus was on a button that disappeared, it moves to the status line.\n\nAttributes: `tool` (the tool's name), `heading` (replaces the default\n\"Allow {tool} to run?\"), `heading-level` (1–6, default 3), `status`\n(`pending` | `approved` | `denied`, default `pending`), `always-allow`\n(boolean: show the \"Always allow\" button), and text overrides\n`approve-label`, `deny-label`, `always-allow-label`, `approved-label`,\n`always-allowed-label`, `denied-label`. Children are the body: a\nsummary, arguments, a `<kernel-code-block>`.",
          "attributes": [
            "tool",
            "heading",
            "heading-level",
            "status",
            "always-allow"
          ],
          "events": []
        }
      }
    },
    "tool-call": {
      "name": "Tool Call",
      "react": {
        "ToolCall": {
          "description": "A collapsible agent tool-invocation status — web search, file reads,\ncode runs, and the rest of the mid-conversation \"the model is using a\ntool\" surface. Built on `<details>`/`<summary>` like `Reasoning` (not\na custom accordion of divs): expand/collapse and keyboard support come\nfrom the browser, and the status line stays a real summary even when\nthere are no results to expand into.",
          "extends": [],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false,
              "description": "Visible status line, e.g. 'Searching \"JWT auth…\"'."
            },
            {
              "name": "status",
              "type": "\"pending\" | \"running\" | \"complete\" | \"error\"",
              "optional": true,
              "default": "\"pending\"",
              "description": "Live progress of the tool invocation. `running` shows shimmering\nstatus text; `complete`/`error` settle to a static icon."
            },
            {
              "name": "defaultOpen",
              "type": "boolean",
              "optional": true,
              "description": "Defaults to open while `status` is `pending` or `running`, closed otherwise."
            },
            {
              "name": "open",
              "type": "boolean",
              "optional": true
            },
            {
              "name": "onOpenChange",
              "type": "(open: boolean) => void",
              "optional": true
            },
            {
              "name": "children",
              "type": "ReactNode",
              "optional": true,
              "description": "Tool results — typically a `Sources` list or plain result rows. When\nomitted, ToolCall renders as a non-collapsible status row."
            },
            {
              "name": "className",
              "type": "ClassNameValue<ToolCallState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-tool-call": {
          "description": "`<kernel-tool-call>` — a collapsible agent tool-invocation status on\nreal `<details>`/`<summary>` (same foundation as `<kernel-reasoning>`).\n\nAttributes: `label` (status line text), `status`\n(`pending` | `running` | `complete` | `error`, default `pending`),\n`default-open` (read once at connect). Light-DOM children become the\nresults panel; with no children, renders as a non-collapsible status row.",
          "attributes": [
            "label",
            "status"
          ],
          "events": []
        }
      }
    },
    "tooltip": {
      "name": "Tooltip",
      "react": {
        "Tooltip": {
          "description": "Uses the Popover API (`popover=\"manual\"`, since we drive it from\nhover/focus rather than a click toggle) for the top-layer stacking and\n`showPopover()`/`hidePopover()` for visibility, and `useFloatingPosition`\nfor placement.\n\n`interestfor` is declared on the trigger as a forward-looking, purely\nadditive enhancement: it's the emerging native hover-intent attribute\nthat's meant to make the hover/focus wiring below unnecessary\neventually. Today, the `onMouseEnter`/`onFocus` handlers are what\nactually shows and hides the tooltip in every browser.\n\nOpen/close delays mirror HoverCard so a rich tooltip can keep the\npointer path between trigger and content alive without flashing shut.\n`data-open` / `data-opening` / `data-closing` / `data-placement` expose\nstyling state for consumer CSS and Motion without targeting generated\nclass names.",
          "extends": [],
          "props": [
            {
              "name": "content",
              "type": "ReactNode",
              "optional": false
            },
            {
              "name": "placement",
              "type": "FloatingPlacement",
              "optional": true,
              "default": "\"top\""
            },
            {
              "name": "align",
              "type": "FloatingAlign",
              "optional": true,
              "default": "\"center\"",
              "description": "Cross-axis alignment relative to the trigger."
            },
            {
              "name": "offset",
              "type": "number",
              "optional": true,
              "default": "8",
              "description": "Gap between the trigger and the tooltip, in pixels."
            },
            {
              "name": "openDelay",
              "type": "number",
              "optional": true,
              "default": "400",
              "description": "Delay before showing on hover, in milliseconds. Defaults to 400.\nFocus shows immediately regardless, and once any tooltip has been\nshown, neighbours open with no delay (see utils/tooltipGroup)."
            },
            {
              "name": "closeDelay",
              "type": "number",
              "optional": true,
              "default": "0",
              "description": "Delay before hiding once the pointer leaves both the trigger and\nthe tooltip. Gives the pointer time to travel into rich content."
            },
            {
              "name": "arrow",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Renders a default arrow pointing toward the trigger."
            },
            {
              "name": "renderArrow",
              "type": "RenderProp<TooltipState>",
              "optional": true,
              "description": "Replace the default arrow, or omit it with a no-op render."
            },
            {
              "name": "className",
              "type": "ClassNameValue<TooltipState>",
              "optional": true,
              "description": "Classes for the tooltip popup."
            },
            {
              "name": "renderContent",
              "type": "RenderProp<TooltipState>",
              "optional": true,
              "description": "Replace the popup element (e.g. wrap with Motion)."
            },
            {
              "name": "render",
              "type": "RenderProp",
              "optional": false,
              "description": "The element that triggers the tooltip on hover/focus."
            }
          ]
        }
      },
      "elements": {
        "kernel-tooltip": {
          "description": "`<kernel-tooltip>` — `popover=\"manual\"` (driven from hover/focus, not\na click toggle) for top-layer stacking + `showPopover()`/\n`hidePopover()`, positioned with the same `FloatingPositioner` as\n`<kernel-popover>`. `interestfor` is set on the trigger as a\nforward-looking, currently-inert stand-in for the emerging native\nhover-intent attribute — today the hover/focus listeners below are\nwhat actually show and hide it.\n\nChildren: one element tagged `slot=\"trigger\"`, everything else\nbecomes the tooltip's content.\n\nAttributes: `placement` (top/bottom/left/right, default top),\n`align` (start/center/end, default center), `offset` (px, default 8),\n`open-delay` (ms, default 400; neighbours open at once once any tooltip\nhas shown) / `close-delay` (ms, default 0), `arrow` (boolean).",
          "attributes": [],
          "events": []
        }
      }
    },
    "usage-meter": {
      "name": "Usage Meter",
      "react": {
        "UsageMeter": {
          "description": "Token, credit or quota usage on a real `<meter>`, the HTML element for\n\"a scalar measurement within a known range\". Not a `<progress>`: usage\nisn't a task heading for completion, and `<meter>`'s `low`/`high`/\n`optimum` attributes already express \"this much is fine, this much is a\nwarning\". The browser exposes the value to assistive tech itself; the\nformatted text (\"12,340 / 200,000 tokens\") is set as `aria-valuetext`\nso it's read with its unit rather than as a bare percentage, and the\nvisible copy of it is `aria-hidden` so it isn't read twice.\n\nThe label is a real `<label for>`, since `<meter>` is a labelable\nelement. Numbers are formatted with `Intl.NumberFormat`.\n\nColour follows the same region algorithm the browser uses, so above\n`high` the bar turns to warning (or danger past both `low` and `high`),\nand a full meter is always danger. The native bar is restyled with\n`::-webkit-meter-*` and `::-moz-meter-bar` (there's no standard,\nunprefixed way yet), reading tokens only.",
          "extends": [
            "Omit< MeterHTMLAttributes<HTMLMeterElement>, \"className\" | \"children\" | \"value\" | \"min\" | \"max\" | \"low\" | \"high\" | \"optimum\" >"
          ],
          "props": [
            {
              "name": "label",
              "type": "ReactNode",
              "optional": false,
              "description": "What's being measured, e.g. \"Context window\" or \"Monthly credits\".\nRendered as a real `<label>` for the meter."
            },
            {
              "name": "hideLabel",
              "type": "boolean",
              "optional": true,
              "default": "false",
              "description": "Visually hides the label while keeping it as the meter's name."
            },
            {
              "name": "value",
              "type": "number",
              "optional": false,
              "description": "Amount used so far."
            },
            {
              "name": "min",
              "type": "number",
              "optional": true,
              "default": "0",
              "description": "Defaults to `0`."
            },
            {
              "name": "max",
              "type": "number",
              "optional": false,
              "description": "The limit."
            },
            {
              "name": "low",
              "type": "number",
              "optional": true,
              "description": "Start of the warning band, passed to the native `<meter>`."
            },
            {
              "name": "high",
              "type": "number",
              "optional": true,
              "description": "End of the comfortable range: above it the meter turns to warning\n(or danger, when `low` is also set)."
            },
            {
              "name": "optimum",
              "type": "number",
              "optional": true,
              "description": "The best value. Defaults to `min`, because for usage less is\nbetter; set it to `max` for a meter where more is better."
            },
            {
              "name": "unit",
              "type": "string",
              "optional": true,
              "description": "Unit after the numbers, e.g. `\"tokens\"` or `\"credits\"`."
            },
            {
              "name": "locale",
              "type": "string",
              "optional": true,
              "description": "BCP 47 locale for number formatting. Defaults to the reader's."
            },
            {
              "name": "formatValue",
              "type": "(value: number, max: number) => string",
              "optional": true,
              "description": "Replaces the default `\"12,340 / 200,000 tokens\"` text, which is also\nthe meter's `aria-valuetext`."
            },
            {
              "name": "description",
              "type": "ReactNode",
              "optional": true,
              "description": "Helper text under the bar."
            },
            {
              "name": "className",
              "type": "ClassNameValue<UsageMeterState>",
              "optional": true
            },
            {
              "name": "wrapperClassName",
              "type": "ClassNameValue<UsageMeterState>",
              "optional": true
            }
          ]
        }
      },
      "elements": {
        "kernel-usage-meter": {
          "description": "`<kernel-usage-meter>` — token, credit or quota usage on a real\n`<meter>` with a real `<label for>`. The formatted text\n(\"12,340 / 200,000 tokens\", via `Intl.NumberFormat`) is the meter's\n`aria-valuetext`, so it's read with its unit, and the visible copy is\n`aria-hidden` so it isn't read twice. Colour follows the browser's own\nmeter region algorithm (warning above `high`, danger past `low` and\n`high`, and always danger when full). Mirrors `@kernelui-lib/react`'s\n`<UsageMeter>`.\n\nAttributes: `label`, `value`, `min` (default 0), `max`, `low`, `high`,\n`optimum` (default `min`: less is better), `unit`, `locale`,\n`hide-label` (boolean), `description`.\n\n`aria-label`, `aria-labelledby` and `aria-describedby` on the host are\nforwarded to the `<meter>`; an authored `aria-describedby` is added\nafter the description's id.",
          "attributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby",
            "label",
            "value",
            "min",
            "max",
            "low",
            "high",
            "optimum",
            "unit",
            "locale",
            "hide-label",
            "description"
          ],
          "forwardedAttributes": [
            "aria-label",
            "aria-labelledby",
            "aria-describedby"
          ],
          "events": []
        }
      }
    }
  }
}
