# WRNexusJS documentation 0.3.4

Status: Private Developer Preview. This site documents 29 release-aligned packages.

# WrNexus

> WrNexus is an SSR-first, **Bun-native** full-stack web framework. UI is written in
> `.wrn` files (its own component language — NOT React/JSX/Vue). Routing is file-based.
> This document teaches an AI how to write correct WrNexus code. It is private and
> post-dates model training data, so rely on THIS document, not prior web-framework
> assumptions.

## Golden rules

- **Pages, components, and layouts are `.wrn` files.** Do NOT write `.tsx`/`.jsx`/React
  for UI. Do NOT use `useState`, hooks, JSX, or a client bundler.
- **Routing is file-based** under `app/`. The filename is the route. No router config.
- **Interactivity** lives in `state` + `{expr}` + `@event` inside `.wrn`. Components render
  on the server and hydrate automatically — you never write client-side JS islands.
- **Runtime is Bun only** (uses `Bun.serve`, `bun:sqlite`, `Bun.password`, …). Node is not supported.
- To add files, prefer the CLI: `wrnexus generate page <Name>` / `component <name>` / `api <path>` / `schema <name>`.

## Project layout

```
app/
  pages/       *.wrn  → routes: index.wrn = "/", about.wrn = "/about", blog/[slug].wrn = "/blog/:slug"
  components/  *.wrn  → reusable UI, mounted in a page/component via <div data-component="name" ...props>
  layouts/     *.wrn  → named layouts; a page opts in with  layout = "name"
  api/         *.ts   → HTTP handlers: export const GET/POST/PUT/PATCH/DELETE = async (ctx) => Response
  middleware/  *.ts   → export default async (ctx, next) => next()
  realtime/    *.ts   → export default defineRoom({ ... }) from "@wrnexus/core"  (ws://host/realtime/<name>)
  schemas/     *.ts   → validation schemas (the `v` builder), used by forms + parseBody
  locales/     *.json → i18n messages per language
  db/          schema.ts, queries/*.sql, migrations/*.sql
  styles/      global.css  → Tailwind (default) or plain CSS
wrnexus.config.ts    → app config (AppConfig from "@wrnexus/styles")
public/              → static assets served at /
```

## `.wrn` page

```wrn
page Home {
  layout = "public"          // optional: a component in app/layouts/<name>.wrn ("none" to skip)

  state count = 0            // optional: seeds client-reactive state (omit for pure SSR)

  seo {
    title = "Home"
    description = "..."
    canonical = "/"
  }

  view {
    <h1>Hello</h1>
    <p>Count is {count}, doubled is {count * 2}.</p>
    <button @click="count++">Increment</button>
    <div data-component="counter" start="5" label="Clicks"></div>
  }

  style {
    h1 { color: var(--wire-color-text); }
  }
}
```

## `.wrn` component

```wrn
component Counter {
  props {                    // props come from mount attributes; each is coerced to the
    start = 0                // TYPE of its default (so start="5" arrives as the number 5)
    label = "Count"
  }
  state count = start        // state may reference props
  view {
    <button @click="count++">{label}: {count}</button>
  }
}
```

Mount it from any page/component: `<div data-component="counter" start="0" label="Clicks"></div>`.
Components render on the server with their props, then hydrate — no per-component JS.

## The `view { }` block (plain HTML + a few directives)

- `{expr}` — interpolate a JS expression. Reactive if it references `state`: `{count}`, `{count * 2}`, `{user.name}`.
- `@event="expr"` — bind a DOM event; the expression runs in the reactive scope: `@click="count++"`, `@input="name = event.target.value"`.
- `<div data-component="name" prop="v">` — mount a component (attrs become string props, coerced).
- `<slot></slot>` / `<slot name="x"></slot>` — component/layout slots; fill with `<div data-slot="x">…</div>`.
- **Server loop (DB/list/table):** `{#each <list> as <item>[, <i>]} …rows… {:empty} …fallback… {/each}` — iterates SSR data on the server and renders markup per item. `{item.field}` interpolates (HTML-escaped, XSS-safe). `<list>` is a JS expression, usually an `ssr` data binding (see "Data-driven tables" below). This is how you render a database table in `.wrn`.
- **Server conditional:** `{#if <expr>} … {:else if <expr>} … {:else} … {/if}` — renders the first truthy branch on the server. `<expr>` can reference `ssr` data, or the `item`/`index` of an enclosing `{#each}`. Works at page level and inside loops (e.g. `{#if r.active}<span>●</span>{:else}<span>○</span>{/if}` per row). For client-side show/hide based on reactive `state`, use `data-show="expr"` instead.
- i18n: `{t:home.title}` in text, `t:placeholder="form.name"` on attributes — resolved per request from `app/locales/`.
- Theme: any element with `data-wire-theme-toggle` toggles light/dark; `data-wire-theme-set="dark"` sets it.
- Void/self-closing tags are fine: `<br />`, `<img src="..." />`.
- Only `{` and `}` are special (interpolation). Don't use a bare `}` in view text.

## Data-driven tables / lists (server-rendered `.wrn`)

Use an `ssr` data binding to fetch rows on the server, then `{#each}` to render them.
This renders on the **server** (SSR-first) and is HTML-escaped by default.

```wrn
page Admin {
  layout = "dashboard"

  // Fetch on the server. The api handler at /api/contacts returns { contacts: [...] };
  // this block's `return contacts` exposes that array (via `$data`) as the binding `rows`.
  ssr {
    api rows GET /api/contacts { return contacts }
  }

  view {
    <table>
      <tbody>
        {#each rows as r, i}
          <tr>
            <td>#{i}</td>
            <td>{r.name}</td>
            <td><a href="mailto:{r.email}">{r.email}</a></td>
          </tr>
        {:empty}
          <tr><td colspan="3">No submissions yet.</td></tr>
        {/each}
      </tbody>
    </table>
  }
}
```

The matching API returns the array under a key the `ssr` block reads:

```ts
// app/api/contacts.ts  → GET /api/contacts
import { getDb } from "@wrnexus/db";
export const GET = async () => {
  const contacts = await getDb().all("SELECT id, name, email FROM contacts ORDER BY id DESC");
  return Response.json({ contacts });   // ssr block does `return contacts`
};
```

**Prefer this `.wrn` + `{#each}` approach for DB-backed tables and lists.** (`.ts`/`.tsx`
pages returning an HTML string are also supported for fully-custom programmatic rendering,
but a `.wrn` page with `ssr` data + `{#each}` is the idiomatic, SSR-first way.)

## API routes (`app/api/*.ts`)

```ts
// app/api/users/list.ts  → GET /api/users/list
import { getDb } from "@wrnexus/db";

export const GET = async (ctx) => {
  return Response.json({ users: await ListUsers(getDb()) });
};

export const POST = async (ctx) => {
  const body = await ctx.req.json();
  return Response.json({ ok: true, body }, { status: 201 });
};
```

`ctx` (the `Context` from `@wrnexus/core`) has:
`req: Request`, `url: URL`, `params: Record<string,string>` (dynamic route params, e.g. `/users/[id]` → `ctx.params.id`),
`lang: string`, `t(key, params?)` (i18n), `cookies` (get/set), `session` (get/set). Auth: `getUser(ctx)` after `sessionAuth`/`logIn`.

When an SSO forward-auth verifier needs the URL that originally reached the gateway, use
`@wrnexus/helpers` instead of constructing it from untrusted headers:

```ts
import { redirectToLogin } from "@wrnexus/helpers";

return redirectToLogin(ctx, "/login", {
  allowedHosts: ["admin.localhost:3000", "reports.localhost:3000"],
});
```

The package also exports `getOriginalRequestUrl`, `getOriginalRequestOrigin`,
`getOriginalRequestPath`, and `getOriginalRequestMethod`. Always pass `allowedHosts` when
using forwarded gateway URLs; the helper rejects untrusted redirect destinations.

## Middleware & realtime

```ts
// app/middleware/logger.ts
export default async function logger(ctx, next) {
  console.log(ctx.req.method, ctx.url.pathname);
  return next();               // return a Response WITHOUT calling next() to short-circuit
}
```

```ts
// app/realtime/chat.ts  → ws://host/realtime/chat
import { defineRoom } from "@wrnexus/core";
export default defineRoom({
  onConnect(client) { client.send({ type: "system", text: "connected" }); },
  onMessage(client, msg) { client.room.broadcast({ type: "message", data: msg }); },
});
```
Client side: a page opts in with `data-room="chat"` (handled by the realtime runtime).

## Config (`wrnexus.config.ts`)

```ts
import type { AppConfig } from "@wrnexus/styles";
const config: AppConfig = {
  seo: { title: "App", titleTemplate: "%s | App", description: "..." },
  styles: { entry: "app/styles/global.css", process: async ({ entryPath, mode }) => /* Tailwind */ "" },
  fonts: { sans: '"Inter", system-ui, sans-serif', google: [{ family: "Inter", weights: [400, 600] }] },
  theme: { default: "dark", themes: { light: { "color-primary": "#2563eb" } } },
  i18n: { default: "en", locales: ["en", "es"] },
  db: { driver: "sqlite", url: "file:./dev.db" },
  security: { cors: { enabled: true, origin: ["http://localhost:5173"] } },
  // profiles: { production: { db: { driver: "postgres", url: process.env.DATABASE_URL } } },
};
export default config;
```

## Database (`@wrnexus/db`)

```ts
// app/db/schema.ts
import { v, table } from "@wrnexus/db";
export const users = table("users", {
  id: v.id(),
  name: v.string(),
  email: v.string().unique(),
  createdAt: v.timestamp(),
});
```
- Queries: write `app/db/queries/*.sql` with `-- name: ListUsers :many` blocks; `wrnexus db generate` emits typed functions.
- Access at runtime: `import { getDb } from "@wrnexus/db"; const rows = await ListUsers(getDb());`
- Migrations in `app/db/migrations/`; run `wrnexus db migrate` (dev auto-migrates sqlite).

## Validation (`@wrnexus/validation`)

```ts
// app/schemas/login.ts
import { v } from "@wrnexus/validation";
export default v.object({
  email: v.string().email(),
  password: v.string().min(8),
});
```
In an API route: `import s from "../schemas/login"; import { parseBody } from "@wrnexus/validation"; const r = await parseBody(s, ctx.req);` → `r.ok ? r.value : r.response`.
In a form: `<form data-schema="login" action="/api/login" method="post">` + `<span data-error="email"></span>` (client + server validation wired automatically).

## AI / LLM (`@wrnexus/ai`)

```ts
// app/api/ai.ts
import { createAI } from "@wrnexus/ai";
const ai = createAI();                     // reads ANTHROPIC_API_KEY; default model claude-opus-4-8
export const POST = async (ctx) => {
  const { prompt } = await ctx.req.json();
  return ai.streamResponse(prompt);        // or: return Response.json({ text: await ai.generate(prompt) })
};
```

## CLI

```
wrnexus dev .                 # dev server + HMR
wrnexus build .               # production build → dist/server.js
bun dist/server.js            # run the production server (or npm start)
wrnexus create <name>         # scaffold a new app
wrnexus update --latest       # deps + syntax/config migrations + verification
wrnexus generate page <Name>  # scaffold a page   (aliases: g p)
wrnexus generate component <name> | api <path> | schema <name>
wrnexus db migrate | rollback | status | new [--from-models] | generate | seed
wrnexus eject <component>     # copy a Wire UI component's .wrn into app/components to customize
```

## When asked to "create a page/component/feature"

1. Create the `.wrn` file under `app/pages/` (or `app/components/`) with a `page`/`component` block — or run `wrnexus generate page <Name>`.
2. Put markup in `view { }`, interactive bits in `state` + `{expr}` + `@event`, reusable UI as components mounted via `data-component`.
3. For data, add an `app/api/*.ts` route and `getDb()`; for forms, add an `app/schemas/*.ts` and `data-schema`.
4. Style with Tailwind utility classes in the view, or theme tokens (`var(--wire-*)`), or `style { }`.
5. Never emit React/JSX, a manual router, or client-side island JS — the framework handles hydration.

# UI component catalog

The installed @wrnexus/ui release contains 902 documented components. Every mount name, prop type, required/default status, slot, and event is included below and in llms-full.txt.

### AcceptAllCookiesButton
Mount: data-component="AcceptAllCookiesButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### AccessibleAccordion
Mount: data-component="AccessibleAccordion"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleCarousel
Mount: data-component="AccessibleCarousel"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleChartSummary
Mount: data-component="AccessibleChartSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleDialog
Mount: data-component="AccessibleDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### AccessibleErrorSummary
Mount: data-component="AccessibleErrorSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleIcon
Mount: data-component="AccessibleIcon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleMenu
Mount: data-component="AccessibleMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### AccessibleTabs
Mount: data-component="AccessibleTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleTooltip
Mount: data-component="AccessibleTooltip"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Accordion
Mount: data-component="Accordion"
Category: content
Props: class: string = "", title: string = "Question", open: boolean = false
Slots: default
Events: click

### AccountMenu
Mount: data-component="AccountMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### AccountStatusBanner
Mount: data-component="AccountStatusBanner"
Category: feedback
Props: label: string = "AccountStatus", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ActionMenu
Mount: data-component="ActionMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ActiveFilterList
Mount: data-component="ActiveFilterList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ActivityList
Mount: data-component="ActivityList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### AddOnCard
Mount: data-component="AddOnCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AddressInput
Mount: data-component="AddressInput"
Category: forms
Props: label: string = "Address", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AddressPreview
Mount: data-component="AddressPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AdvancedFilterBuilder
Mount: data-component="AdvancedFilterBuilder"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### alert
Mount: data-component="alert"
Category: core
Props: class: string = "", title: string = "Notice", description: string = "", variant: string = "info", dismissible: boolean = false
Slots: default
Events: click

### AlertDialog
Mount: data-component="AlertDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### AmountInput
Mount: data-component="AmountInput"
Category: forms
Props: label: string = "Amount", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AnalyticsDashboardPreview
Mount: data-component="AnalyticsDashboardPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AnchorNavigation
Mount: data-component="AnchorNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### AnnouncementBar
Mount: data-component="AnnouncementBar"
Category: core
Props: class: string = "", badge: string = "New", message: string = "WrNexus Organizations is now available.", description: string = "Build secure multi-tenant applications with teams, roles, domains, and enterprise SSO.", href: string = "/organizations", actionLabel: string = "Explore organizations", ariaLabel: string = "Announcement", badgeIcon: string = "icon-[lucide--sparkles]", actionIcon: string = "icon-[lucide--arrow-right]", dismissLabel: string = "Dismiss announcement", showBadge: boolean = true, showDescription: boolean = true, showAction: boolean = true, dismissible: boolean = true
Slots: none
Events: click

### ApartmentInput
Mount: data-component="ApartmentInput"
Category: forms
Props: label: string = "Apartment", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ApiAuthenticationNotice
Mount: data-component="ApiAuthenticationNotice"
Category: feedback
Props: label: string = "ApiAuthentication", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ApiEndpointCard
Mount: data-component="ApiEndpointCard"
Category: content
Props: class: string = "", method: string = "GET", path: string = "/api/example", eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "View endpoint"
Slots: default
Events: none

### ApiErrorExample
Mount: data-component="ApiErrorExample"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiHeaderTable
Mount: data-component="ApiHeaderTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ApiKeyCreateDialog
Mount: data-component="ApiKeyCreateDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ApiKeyDisplay
Mount: data-component="ApiKeyDisplay"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiKeyInput
Mount: data-component="ApiKeyInput"
Category: forms
Props: label: string = "ApiKey", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ApiMethodBadge
Mount: data-component="ApiMethodBadge"
Category: feedback
Props: label: string = "ApiMethod", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ApiParameterTable
Mount: data-component="ApiParameterTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ApiRateLimitNotice
Mount: data-component="ApiRateLimitNotice"
Category: feedback
Props: label: string = "ApiRateLimit", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ApiRequestExample
Mount: data-component="ApiRequestExample"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiResponseExample
Mount: data-component="ApiResponseExample"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiSchemaTable
Mount: data-component="ApiSchemaTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ApiSchemaViewer
Mount: data-component="ApiSchemaViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiVersionBadge
Mount: data-component="ApiVersionBadge"
Category: feedback
Props: label: string = "ApiVersion", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### AppHeader
Mount: data-component="AppHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ArchitectureSection
Mount: data-component="ArchitectureSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### AreaChart
Mount: data-component="AreaChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ArticleHero
Mount: data-component="ArticleHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ArticleLayout
Mount: data-component="ArticleLayout"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ArticleNewsletterCTA
Mount: data-component="ArticleNewsletterCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ArticlePageShell
Mount: data-component="ArticlePageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ArticleShareActions
Mount: data-component="ArticleShareActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### AspectRatio
Mount: data-component="AspectRatio"
Category: core
Props: class: string = ""
Slots: default
Events: none

### AssetCard
Mount: data-component="AssetCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### AttachmentPicker
Mount: data-component="AttachmentPicker"
Category: forms
Props: label: string = "Attachment", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AttachmentUpload
Mount: data-component="AttachmentUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AudioUpload
Mount: data-component="AudioUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AuditLogPreview
Mount: data-component="AuditLogPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AuditTable
Mount: data-component="AuditTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### AuthenticatorCodeInput
Mount: data-component="AuthenticatorCodeInput"
Category: forms
Props: label: string = "AuthenticatorCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AuthorAvatar
Mount: data-component="AuthorAvatar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AuthorCard
Mount: data-component="AuthorCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AuthorizedApplicationCard
Mount: data-component="AuthorizedApplicationCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AutoGrid
Mount: data-component="AutoGrid"
Category: data
Props: class: string = ""
Slots: default
Events: none

### AutomationExampleCard
Mount: data-component="AutomationExampleCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AvailabilityCalendar
Mount: data-component="AvailabilityCalendar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Avatar
Mount: data-component="Avatar"
Category: content
Props: class: string = "", src: string = "", alt: string = "", initials: string = "WR", size: string = "md"
Slots: none
Events: none

### AvatarGroup
Mount: data-component="AvatarGroup"
Category: forms
Props: label: string = "Avatar", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AvatarUpload
Mount: data-component="AvatarUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BackButton
Mount: data-component="BackButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### BackToTop
Mount: data-component="BackToTop"
Category: core
Props: class: string = "", label: string = "Back to top", assistiveLabel: string = "Return to the top of the page", threshold: number = 500
Slots: none
Events: click

### Badge
Mount: data-component="Badge"
Category: feedback
Props: class: string = "", label: string = "", variant: string = "neutral", size: string = "md"
Slots: default
Events: none

### BankTransferDetails
Mount: data-component="BankTransferDetails"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Banner
Mount: data-component="Banner"
Category: feedback
Props: class: string = "", text: string = "Announcement", href: string = "", actionLabel: string = "Learn more", variant: string = "brand"
Slots: none
Events: none

### BarChart
Mount: data-component="BarChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### BetaBadge
Mount: data-component="BetaBadge"
Category: feedback
Props: label: string = "Beta", variant: string = "default", class: string = ""
Slots: default
Events: none

### BillingAddressForm
Mount: data-component="BillingAddressForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BillingExample
Mount: data-component="BillingExample"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BillingPeriodToggle
Mount: data-component="BillingPeriodToggle"
Category: forms
Props: label: string = "BillingPeriod", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BlackoutDatePicker
Mount: data-component="BlackoutDatePicker"
Category: forms
Props: label: string = "BlackoutDate", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BlogCard
Mount: data-component="BlogCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BlogGrid
Mount: data-component="BlogGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### BlogList
Mount: data-component="BlogList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### BlogSearch
Mount: data-component="BlogSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BodyText
Mount: data-component="BodyText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### BorderRadiusPicker
Mount: data-component="BorderRadiusPicker"
Category: forms
Props: label: string = "BorderRadius", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BottomNavigation
Mount: data-component="BottomNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### BrandColorPicker
Mount: data-component="BrandColorPicker"
Category: forms
Props: label: string = "BrandColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BrandSelector
Mount: data-component="BrandSelector"
Category: forms
Props: label: string = "Brand", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Breadcrumbs
Mount: data-component="Breadcrumbs"
Category: core
Props: class: string = "", items: string = [], centered: boolean = false, compact: boolean = false, showHome: boolean = true, homeLabel: string = "Home", homeHref: string = "/"
Slots: none
Events: none

### BrowserFrame
Mount: data-component="BrowserFrame"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### BudgetRangeSlider
Mount: data-component="BudgetRangeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BudgetSelector
Mount: data-component="BudgetSelector"
Category: forms
Props: label: string = "Budget", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BusinessHoursPicker
Mount: data-component="BusinessHoursPicker"
Category: forms
Props: label: string = "BusinessHours", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Button
Mount: data-component="Button"
Category: actions
Props: label: string = "Button", type: string = "button", variant: string = "primary", size: string = "md", disabled: boolean = false, loading: boolean = false, icon: string = "", iconPosition: string = "start", fullWidth: boolean = false, className: string = ""
Slots: default
Events: none

### ButtonGroup
Mount: data-component="ButtonGroup"
Category: forms
Props: label: string = "Button", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ButtonSelector
Mount: data-component="ButtonSelector"
Category: forms
Props: label: string = "Button", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Calendar
Mount: data-component="Calendar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CalendarGrid
Mount: data-component="CalendarGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CalendarHeader
Mount: data-component="CalendarHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CalendarNavigation
Mount: data-component="CalendarNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CallbackUrlInput
Mount: data-component="CallbackUrlInput"
Category: forms
Props: label: string = "CallbackUrl", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CampaignCard
Mount: data-component="CampaignCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", icon: string = "icon-[lucide--send]", class: string = ""
Slots: default
Events: none

### CampaignPerformancePreview
Mount: data-component="CampaignPerformancePreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CampaignProgress
Mount: data-component="CampaignProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### CapabilityGrid
Mount: data-component="CapabilityGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CaptchaField
Mount: data-component="CaptchaField"
Category: forms
Props: label: string = "Captcha", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### card
Mount: data-component="card"
Category: core
Props: variant: string = "default", padding: string = "md", interactive: boolean = false, className: string = ""
Slots: default
Events: none

### CardPaymentForm
Mount: data-component="CardPaymentForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CardSelector
Mount: data-component="CardSelector"
Category: forms
Props: label: string = "Card", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CardSkeleton
Mount: data-component="CardSkeleton"
Category: feedback
Props: label: string = "Card", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### CareerApplicationForm
Mount: data-component="CareerApplicationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CareerBenefitsGrid
Mount: data-component="CareerBenefitsGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### Carousel
Mount: data-component="Carousel"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CaseStudyCard
Mount: data-component="CaseStudyCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CaseStudyHero
Mount: data-component="CaseStudyHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CaseStudyPreview
Mount: data-component="CaseStudyPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CenteredCTA
Mount: data-component="CenteredCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### CenteredHero
Mount: data-component="CenteredHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CenteredSectionHeader
Mount: data-component="CenteredSectionHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CertificateUpload
Mount: data-component="CertificateUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CertificationBadge
Mount: data-component="CertificationBadge"
Category: feedback
Props: label: string = "Certification", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChallengeSection
Mount: data-component="ChallengeSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ChannelBadge
Mount: data-component="ChannelBadge"
Category: feedback
Props: label: string = "Channel", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChannelCard
Mount: data-component="ChannelCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", icon: string = "", actionLabel: string = "", class: string = ""
Slots: default
Events: none

### ChannelComparisonChart
Mount: data-component="ChannelComparisonChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ChannelComparisonTable
Mount: data-component="ChannelComparisonTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ChannelFallbackDiagram
Mount: data-component="ChannelFallbackDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ChannelFlow
Mount: data-component="ChannelFlow"
Category: visualization
Props: class: string = ""
Slots: none
Events: none

### ChannelIcon
Mount: data-component="ChannelIcon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ChannelRateTable
Mount: data-component="ChannelRateTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ChannelSelector
Mount: data-component="ChannelSelector"
Category: forms
Props: label: string = "Channel", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CharacterCounter
Mount: data-component="CharacterCounter"
Category: feedback
Props: label: string = "Character", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChartEmptyState
Mount: data-component="ChartEmptyState"
Category: feedback
Props: label: string = "ChartEmpty", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChartTooltip
Mount: data-component="ChartTooltip"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Checkbox
Mount: data-component="Checkbox"
Category: core
Props: class: string = "", id: string = "", name: string = "", label: string = "Checkbox", description: string = "", checked: boolean = false, disabled: boolean = false
Slots: none
Events: none

### CheckboxGroup
Mount: data-component="CheckboxGroup"
Category: forms
Props: label: string = "Checkbox", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Checklist
Mount: data-component="Checklist"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ChecklistProgress
Mount: data-component="ChecklistProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### Chip
Mount: data-component="Chip"
Category: core
Props: label: string = "Chip", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChipInput
Mount: data-component="ChipInput"
Category: forms
Props: label: string = "Chip", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CircularProgress
Mount: data-component="CircularProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### CitySelector
Mount: data-component="CitySelector"
Category: forms
Props: label: string = "City", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ClearFiltersButton
Mount: data-component="ClearFiltersButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ClickableCard
Mount: data-component="ClickableCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### CloseButton
Mount: data-component="CloseButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### Cluster
Mount: data-component="Cluster"
Category: core
Props: class: string = ""
Slots: default
Events: none

### Code
Mount: data-component="Code"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CodeBlock
Mount: data-component="CodeBlock"
Category: content
Props: language: string = "text", title: string = "", code: string = "", copyable: boolean = true, class: string = ""
Slots: none
Events: none

### CodeCopyButton
Mount: data-component="CodeCopyButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### CodeHeader
Mount: data-component="CodeHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CodeInput
Mount: data-component="CodeInput"
Category: forms
Props: label: string = "Code", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CodeLanguageBadge
Mount: data-component="CodeLanguageBadge"
Category: feedback
Props: label: string = "CodeLanguage", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### CodeTabs
Mount: data-component="CodeTabs"
Category: content
Props: class: string = ""
Slots: default
Events: none

### CodeText
Mount: data-component="CodeText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CohortChart
Mount: data-component="CohortChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ColorGrid
Mount: data-component="ColorGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ColorHexInput
Mount: data-component="ColorHexInput"
Category: forms
Props: label: string = "ColorHex", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ColorPicker
Mount: data-component="ColorPicker"
Category: forms
Props: label: string = "Color", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ColorSelector
Mount: data-component="ColorSelector"
Category: forms
Props: label: string = "Color", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ColorSwatch
Mount: data-component="ColorSwatch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Combobox
Mount: data-component="Combobox"
Category: core
Props: id: string = "combobox", name: string = "", label: string = "Choose an option", placeholder: string = "Search options", options: string = [], required: boolean = false, disabled: boolean = false, class: string = ""
Slots: none
Events: none

### ComingSoonBadge
Mount: data-component="ComingSoonBadge"
Category: feedback
Props: label: string = "ComingSoon", variant: string = "default", class: string = ""
Slots: default
Events: none

### ComingSoonState
Mount: data-component="ComingSoonState"
Category: feedback
Props: label: string = "ComingSoon", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### CommandBlock
Mount: data-component="CommandBlock"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CommandMenu
Mount: data-component="CommandMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### CommandSearchInput
Mount: data-component="CommandSearchInput"
Category: forms
Props: label: string = "CommandSearch", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CompanyHero
Mount: data-component="CompanyHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CompanyNameInput
Mount: data-component="CompanyNameInput"
Category: forms
Props: label: string = "CompanyName", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CompanyPageShell
Mount: data-component="CompanyPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CompanySizeSelector
Mount: data-component="CompanySizeSelector"
Category: forms
Props: label: string = "CompanySize", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ComparisonDateRangePicker
Mount: data-component="ComparisonDateRangePicker"
Category: forms
Props: label: string = "ComparisonDateRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ComparisonTable
Mount: data-component="ComparisonTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CompletionMeter
Mount: data-component="CompletionMeter"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ComplianceBadgeList
Mount: data-component="ComplianceBadgeList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ComplianceProgramCard
Mount: data-component="ComplianceProgramCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ConfirmationDialog
Mount: data-component="ConfirmationDialog"
Category: overlays
Props: title: string = "Confirm action", description: string = "Are you sure you want to continue?", confirmLabel: string = "Confirm", cancelLabel: string = "Cancel", danger: boolean = false, open: boolean = false, class: string = ""
Slots: confirm
Events: click

### ConfirmPasswordInput
Mount: data-component="ConfirmPasswordInput"
Category: forms
Props: label: string = "ConfirmPassword", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ConnectedAccountCard
Mount: data-component="ConnectedAccountCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ConnectionCard
Mount: data-component="ConnectionCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### ConsentTimelinePreview
Mount: data-component="ConsentTimelinePreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ContactCard
Mount: data-component="ContactCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### ContactCTA
Mount: data-component="ContactCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ContactForm
Mount: data-component="ContactForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ContactHero
Mount: data-component="ContactHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ContactPageShell
Mount: data-component="ContactPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ContactSalesBanner
Mount: data-component="ContactSalesBanner"
Category: core
Props: class: string = "", eyebrow: string = "Enterprise identity", title: string = "Ready to secure your next application?", description: string = "", primaryLabel: string = "Contact sales", primaryHref: string = "/contact", secondaryLabel: string = "Start free", secondaryHref: string = "/sign-up", iconClass: string = "icon-[lucide--messages-square]", centered: boolean = false, compact: boolean = false, points: string = [], trustPoints: string = []
Slots: none
Events: none

### ContactSalesButton
Mount: data-component="ContactSalesButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ContactSalesForm
Mount: data-component="ContactSalesForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Container
Mount: data-component="Container"
Category: core
Props: size: string = "default", className: string = ""
Slots: default
Events: none

### ContextMenu
Mount: data-component="ContextMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ContextSwitcher
Mount: data-component="ContextSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ConversationList
Mount: data-component="ConversationList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ConversationPreview
Mount: data-component="ConversationPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ConversionChart
Mount: data-component="ConversionChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### CookieBanner
Mount: data-component="CookieBanner"
Category: feedback
Props: class: string = "", title: string = "We use cookies", description: string = "We use essential cookies and optional analytics to improve your experience.", privacyHref: string = "/privacy"
Slots: none
Events: click

### CookieCategoryList
Mount: data-component="CookieCategoryList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CookieCategoryToggle
Mount: data-component="CookieCategoryToggle"
Category: forms
Props: label: string = "CookieCategory", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CookieConsent
Mount: data-component="CookieConsent"
Category: core
Props: class: string = ""
Slots: none
Events: click, change

### CookieDetailsTable
Mount: data-component="CookieDetailsTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CookiePreferencesDialog
Mount: data-component="CookiePreferencesDialog"
Category: overlays
Props: title: string = "Cookie preferences", description: string = "Choose which optional cookies you allow. Essential cookies are always enabled.", saveLabel: string = "Save preferences", acceptLabel: string = "Accept all", rejectLabel: string = "Reject optional", open: boolean = false, class: string = ""
Slots: none
Events: change, click

### CookieTable
Mount: data-component="CookieTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CoordinatesInput
Mount: data-component="CoordinatesInput"
Category: forms
Props: label: string = "Coordinates", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CoordinatesPicker
Mount: data-component="CoordinatesPicker"
Category: forms
Props: label: string = "Coordinates", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CopyButton
Mount: data-component="CopyButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### CopyCodeButton
Mount: data-component="CopyCodeButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### CopySecretField
Mount: data-component="CopySecretField"
Category: forms
Props: label: string = "CopySecret", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CostBreakdownChart
Mount: data-component="CostBreakdownChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### CostSummary
Mount: data-component="CostSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Counter
Mount: data-component="Counter"
Category: feedback
Props: label: string = "Status", variant: string = "default", class: string = ""
Slots: default
Events: none

### CountryCallingCodeInput
Mount: data-component="CountryCallingCodeInput"
Category: forms
Props: label: string = "CountryCallingCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CountryCallingCodeSelector
Mount: data-component="CountryCallingCodeSelector"
Category: forms
Props: label: string = "CountryCallingCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CountrySelector
Mount: data-component="CountrySelector"
Category: forms
Props: label: string = "Country", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CouponInput
Mount: data-component="CouponInput"
Category: forms
Props: label: string = "Coupon", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CreditAmountInput
Mount: data-component="CreditAmountInput"
Category: forms
Props: label: string = "CreditAmount", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CronBuilder
Mount: data-component="CronBuilder"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CronInput
Mount: data-component="CronInput"
Category: forms
Props: label: string = "Cron", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CsvUpload
Mount: data-component="CsvUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CTASection
Mount: data-component="CTASection"
Category: layout
Props: class: string = "", eyebrow: string = "Ready?", title: string = "Start building today", description: string = "", primaryLabel: string = "Get started", primaryHref: string = "#", secondaryLabel: string = "Contact sales", secondaryHref: string = "#"
Slots: none
Events: none

### CurrencyInput
Mount: data-component="CurrencyInput"
Category: forms
Props: label: string = "Currency", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CurrencySelector
Mount: data-component="CurrencySelector"
Category: forms
Props: label: string = "Currency", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CurrentPasswordInput
Mount: data-component="CurrentPasswordInput"
Category: forms
Props: label: string = "CurrentPassword", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CustomerLogo
Mount: data-component="CustomerLogo"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CustomerStoryCard
Mount: data-component="CustomerStoryCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DangerButton
Mount: data-component="DangerButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DataProtectionCard
Mount: data-component="DataProtectionCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DataRetentionTable
Mount: data-component="DataRetentionTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### DataTable
Mount: data-component="DataTable"
Category: data
Props: caption: string = "Data table", columns: string = [], rows: string = [], emptyMessage: string = "No data available.", striped: boolean = false, class: string = ""
Slots: none
Events: none

### DateInput
Mount: data-component="DateInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Date", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### DatePicker
Mount: data-component="DatePicker"
Category: forms
Props: class: string = "", id: string = "date", name: string = "date", label: string = "Date", value: string = "", min: string = "", max: string = "", required: boolean = false
Slots: none
Events: none

### DateRangeCalendar
Mount: data-component="DateRangeCalendar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DateRangePicker
Mount: data-component="DateRangePicker"
Category: forms
Props: class: string = "", label: string = "Date range", startName: string = "startDate", endName: string = "endDate"
Slots: none
Events: none

### DateRangeSlider
Mount: data-component="DateRangeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DateTimeInput
Mount: data-component="DateTimeInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "DateTime", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### DateTimePicker
Mount: data-component="DateTimePicker"
Category: forms
Props: id: string = "datetime-picker", name: string = "datetime", label: string = "Date and time", value: string = "", min: string = "", max: string = "", required: boolean = false, disabled: boolean = false, class: string = ""
Slots: none
Events: none

### DateTimeRangePicker
Mount: data-component="DateTimeRangePicker"
Category: forms
Props: label: string = "DateTimeRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DecimalInput
Mount: data-component="DecimalInput"
Category: forms
Props: label: string = "Decimal", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DefinitionList
Mount: data-component="DefinitionList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### DeleteConfirmationDialog
Mount: data-component="DeleteConfirmationDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### DeliveryPreview
Mount: data-component="DeliveryPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DeliveryStatusChart
Mount: data-component="DeliveryStatusChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### DeliveryStatusTimeline
Mount: data-component="DeliveryStatusTimeline"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### DemoRequestForm
Mount: data-component="DemoRequestForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DepartmentInput
Mount: data-component="DepartmentInput"
Category: forms
Props: label: string = "Department", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DeprecatedFeatureAlert
Mount: data-component="DeprecatedFeatureAlert"
Category: feedback
Props: label: string = "DeprecatedFeature", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### DescriptionList
Mount: data-component="DescriptionList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### DesktopNavigation
Mount: data-component="DesktopNavigation"
Category: layout
Props: label: string = "Primary navigation", items: string = [], class: string = ""
Slots: none
Events: none

### DeveloperCTA
Mount: data-component="DeveloperCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DeveloperHero
Mount: data-component="DeveloperHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### DeveloperPageShell
Mount: data-component="DeveloperPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### DeveloperSearch
Mount: data-component="DeveloperSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DevelopersMegaMenu
Mount: data-component="DevelopersMegaMenu"
Category: core
Props: class: string = ""
Slots: none
Events: none

### DevelopersMenu
Mount: data-component="DevelopersMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### DeviceCard
Mount: data-component="DeviceCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### disclosure
Mount: data-component="disclosure"
Category: core
Props: summary: string = "Details", class: string = ""
Slots: default
Events: none

### DiscountInput
Mount: data-component="DiscountInput"
Category: forms
Props: label: string = "Discount", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DisplayHeading
Mount: data-component="DisplayHeading"
Category: core
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### DisplayNameInput
Mount: data-component="DisplayNameInput"
Category: forms
Props: label: string = "DisplayName", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Divider
Mount: data-component="Divider"
Category: core
Props: className: string = ""
Slots: default
Events: none

### DocumentPreview
Mount: data-component="DocumentPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DocumentUpload
Mount: data-component="DocumentUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DomainInput
Mount: data-component="DomainInput"
Category: forms
Props: label: string = "Domain", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DoNotSellLink
Mount: data-component="DoNotSellLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DonutChart
Mount: data-component="DonutChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### DownloadAction
Mount: data-component="DownloadAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DownloadButton
Mount: data-component="DownloadButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DownloadGateForm
Mount: data-component="DownloadGateForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DownloadPolicyButton
Mount: data-component="DownloadPolicyButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DownloadResourceForm
Mount: data-component="DownloadResourceForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Drawer
Mount: data-component="Drawer"
Category: core
Props: class: string = "", title: string = "Panel", open: boolean = false, side: string = "right"
Slots: default
Events: click

### DropdownMenu
Mount: data-component="DropdownMenu"
Category: overlays
Props: class: string = "", label: string = "Menu"
Slots: default
Events: click

### DropdownNavigation
Mount: data-component="DropdownNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### DurationInput
Mount: data-component="DurationInput"
Category: forms
Props: label: string = "Duration", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DurationPicker
Mount: data-component="DurationPicker"
Category: forms
Props: label: string = "Duration", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DurationSlider
Mount: data-component="DurationSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ElevatedCard
Mount: data-component="ElevatedCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### EmailBodyEditor
Mount: data-component="EmailBodyEditor"
Category: forms
Props: label: string = "EmailBody", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### EmailComposer
Mount: data-component="EmailComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### EmailInput
Mount: data-component="EmailInput"
Category: forms
Props: class: string = "", id: string = "email", name: string = "email", label: string = "Email", value: string = "", placeholder: string = "you@company.com", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = "email"
Slots: none
Events: none

### EmojiPicker
Mount: data-component="EmojiPicker"
Category: forms
Props: label: string = "Emoji", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### EmptyState
Mount: data-component="EmptyState"
Category: feedback
Props: class: string = "", eyebrow: string = "", title: string = "Nothing found", description: string = "", iconClass: string = "icon-[lucide--inbox]", primaryLabel: string = "", primaryHref: string = "", secondaryLabel: string = "", secondaryHref: string = "", compact: boolean = false, centered: boolean = true, suggestions: string = []
Slots: none
Events: none

### EncryptionDiagram
Mount: data-component="EncryptionDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### EnterpriseCTA
Mount: data-component="EnterpriseCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### EnterpriseHero
Mount: data-component="EnterpriseHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### EnterprisePricingCard
Mount: data-component="EnterprisePricingCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### EnvironmentSelector
Mount: data-component="EnvironmentSelector"
Category: forms
Props: label: string = "Environment", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### EnvironmentSwitcher
Mount: data-component="EnvironmentSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ErrorActions
Mount: data-component="ErrorActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ErrorCard
Mount: data-component="ErrorCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### ErrorCode
Mount: data-component="ErrorCode"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ErrorHero
Mount: data-component="ErrorHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ErrorIllustration
Mount: data-component="ErrorIllustration"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ErrorPage
Mount: data-component="ErrorPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ErrorPageShell
Mount: data-component="ErrorPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ErrorState
Mount: data-component="ErrorState"
Category: feedback
Props: class: string = "", type: string = "error", eyebrow: string = "", title: string = "Something went wrong", description: string = "", errorCode: string = "", iconClass: string = "", primaryLabel: string = "", primaryHref: string = "", secondaryLabel: string = "", secondaryHref: string = "", retryLabel: string = "", retryAction: string = "", centered: boolean = true, compact: boolean = false, details: string = []
Slots: none
Events: click

### ErrorSupportLink
Mount: data-component="ErrorSupportLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### EstimatedCostSummary
Mount: data-component="EstimatedCostSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### EventTable
Mount: data-component="EventTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ExpandableText
Mount: data-component="ExpandableText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ExpiryDateTimePicker
Mount: data-component="ExpiryDateTimePicker"
Category: forms
Props: label: string = "ExpiryDateTime", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ExportProgress
Mount: data-component="ExportProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ExternalLink
Mount: data-component="ExternalLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### EyebrowText
Mount: data-component="EyebrowText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### FactorCard
Mount: data-component="FactorCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FallbackRouteBuilder
Mount: data-component="FallbackRouteBuilder"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FallbackRouteDiagram
Mount: data-component="FallbackRouteDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### FAQ
Mount: data-component="FAQ"
Category: core
Props: class: string = "", eyebrow: string = "", title: string = "Frequently asked questions", description: string = "", items: string = [], centered: boolean = true, allowMultiple: boolean = false, defaultOpenIndex: number = 0
Slots: none
Events: none

### FAQAccordion
Mount: data-component="FAQAccordion"
Category: core
Props: class: string = "", eyebrow: string = "", title: string = "Frequently asked questions", description: string = "", items: string = [], centered: boolean = true, compact: boolean = false, allowMultiple: boolean = false, defaultOpenIndex: number = 0, showContact: boolean = false, contactText: string = "Still have questions?", contactLabel: string = "Contact support", contactHref: string = "/support"
Slots: none
Events: click

### FaviconUpload
Mount: data-component="FaviconUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FaxInput
Mount: data-component="FaxInput"
Category: forms
Props: label: string = "Fax", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FeatureCard
Mount: data-component="FeatureCard"
Category: content
Props: class: string = "", icon: string = "icon-[lucide--sparkles]", title: string = "Feature", description: string = "", href: string = ""
Slots: none
Events: none

### FeatureChecklist
Mount: data-component="FeatureChecklist"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FeatureComparisonTable
Mount: data-component="FeatureComparisonTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FeaturedBlogCard
Mount: data-component="FeaturedBlogCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FeatureDetailsPanel
Mount: data-component="FeatureDetailsPanel"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### FeatureGrid
Mount: data-component="FeatureGrid"
Category: data
Props: columns: number = 3, className: string = ""
Slots: default
Events: none

### FeatureIconCard
Mount: data-component="FeatureIconCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FeatureList
Mount: data-component="FeatureList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FeatureTabs
Mount: data-component="FeatureTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FeatureTimeline
Mount: data-component="FeatureTimeline"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### FeatureUnavailableState
Mount: data-component="FeatureUnavailableState"
Category: feedback
Props: label: string = "FeatureUnavailable", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### FieldActions
Mount: data-component="FieldActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### file-upload
Mount: data-component="file-upload"
Category: core
Props: store: string = "public", endpoint: string = "/api/upload", accept: string = "", multiple: boolean = false, max: number = 0, label: string = "Drag files here or click to browse", class: string = ""
Slots: none
Events: none

### FileInput
Mount: data-component="FileInput"
Category: forms
Props: label: string = "File", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FileList
Mount: data-component="FileList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FileSizeInput
Mount: data-component="FileSizeInput"
Category: forms
Props: label: string = "FileSize", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FileSizeLabel
Mount: data-component="FileSizeLabel"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FileTypeBadge
Mount: data-component="FileTypeBadge"
Category: feedback
Props: label: string = "FileType", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### FileUpload
Mount: data-component="FileUpload"
Category: content
Props: class: string = "", id: string = "file", name: string = "file", label: string = "Upload file", accept: string = "", multiple: boolean = false, help: string = "Drag and drop or browse"
Slots: none
Events: none

### FilterableTable
Mount: data-component="FilterableTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FilterBar
Mount: data-component="FilterBar"
Category: core
Props: label: string = "Filters", clearLabel: string = "Clear filters", showClear: boolean = true, class: string = ""
Slots: default
Events: none

### FilterMenu
Mount: data-component="FilterMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### FilterSearchInput
Mount: data-component="FilterSearchInput"
Category: forms
Props: label: string = "FilterSearch", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FinalCTA
Mount: data-component="FinalCTA"
Category: actions
Props: label: string = "Get started", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### FirstNameInput
Mount: data-component="FirstNameInput"
Category: forms
Props: label: string = "FirstName", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Flex
Mount: data-component="Flex"
Category: core
Props: class: string = ""
Slots: default
Events: none

### FontPicker
Mount: data-component="FontPicker"
Category: forms
Props: label: string = "Font", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FontSizePicker
Mount: data-component="FontSizePicker"
Category: forms
Props: label: string = "FontSize", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FontWeightPicker
Mount: data-component="FontWeightPicker"
Category: forms
Props: label: string = "FontWeight", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FooterLanguageSwitcher
Mount: data-component="FooterLanguageSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FooterStatusIndicator
Mount: data-component="FooterStatusIndicator"
Category: feedback
Props: label: string = "FooterStatus", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ForbiddenPage
Mount: data-component="ForbiddenPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ForbiddenState
Mount: data-component="ForbiddenState"
Category: feedback
Props: label: string = "Forbidden", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ForgotPasswordForm
Mount: data-component="ForgotPasswordForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Form
Mount: data-component="Form"
Category: content
Props: action: string = "", method: string = "post", name: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### FormActions
Mount: data-component="FormActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### FormAlert
Mount: data-component="FormAlert"
Category: feedback
Props: label: string = "Form", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### FormDialog
Mount: data-component="FormDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### FormError
Mount: data-component="FormError"
Category: core
Props: id: string = "", message: string = "", class: string = ""
Slots: default
Events: none

### FormErrorSummary
Mount: data-component="FormErrorSummary"
Category: content
Props: class: string = "", title: string = "Please fix the following", visible: boolean = true
Slots: default
Events: none

### FormField
Mount: data-component="FormField"
Category: forms
Props: class: string = "", label: string = "Field", help: string = "", error: string = "", required: boolean = false
Slots: default
Events: none

### FormGrid
Mount: data-component="FormGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FormGroup
Mount: data-component="FormGroup"
Category: forms
Props: label: string = "Form", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FormHelpText
Mount: data-component="FormHelpText"
Category: content
Props: id: string = "", text: string = "", class: string = ""
Slots: default
Events: none

### FormLabel
Mount: data-component="FormLabel"
Category: content
Props: for: string = "", label: string = "Label", required: boolean = false, optional: boolean = false, class: string = ""
Slots: none
Events: none

### FormProgress
Mount: data-component="FormProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### FormRow
Mount: data-component="FormRow"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FormSection
Mount: data-component="FormSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### FullBleed
Mount: data-component="FullBleed"
Category: core
Props: class: string = ""
Slots: default
Events: none

### FullscreenDialog
Mount: data-component="FullscreenDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### FunnelChart
Mount: data-component="FunnelChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### GeoChart
Mount: data-component="GeoChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### GeofenceEditor
Mount: data-component="GeofenceEditor"
Category: forms
Props: label: string = "Geofence", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### GhostButton
Mount: data-component="GhostButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### GlassCard
Mount: data-component="GlassCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### GlobalSearch
Mount: data-component="GlobalSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### GradientCTA
Mount: data-component="GradientCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### GradientPicker
Mount: data-component="GradientPicker"
Category: forms
Props: label: string = "Gradient", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### GradientStopEditor
Mount: data-component="GradientStopEditor"
Category: forms
Props: label: string = "GradientStop", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Grid
Mount: data-component="Grid"
Category: data
Props: gap: string = "4", className: string = ""
Slots: default
Events: none

### GuideCard
Mount: data-component="GuideCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### GuideChecklist
Mount: data-component="GuideChecklist"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### GuideDifficultyBadge
Mount: data-component="GuideDifficultyBadge"
Category: feedback
Props: label: string = "GuideDifficulty", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### GuideGrid
Mount: data-component="GuideGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### GuideStep
Mount: data-component="GuideStep"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Header
Mount: data-component="Header"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### HeaderActions
Mount: data-component="HeaderActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### HealthIndicator
Mount: data-component="HealthIndicator"
Category: feedback
Props: label: string = "Health", variant: string = "default", class: string = ""
Slots: default
Events: none

### Hero
Mount: data-component="Hero"
Category: layout
Props: class: string = "", eyebrow: string = "", title: string = "Build faster with WRNexusJS", highlight: string = "", description: string = "", primaryLabel: string = "Get started", primaryHref: string = "#", secondaryLabel: string = "Learn more", secondaryHref: string = "#", align: string = "center"
Slots: default
Events: none

### HeroActions
Mount: data-component="HeroActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### HeroCodePanel
Mount: data-component="HeroCodePanel"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### HeroGradientText
Mount: data-component="HeroGradientText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HeroPrimaryAction
Mount: data-component="HeroPrimaryAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### HeroProductPreview
Mount: data-component="HeroProductPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HeroSecondaryAction
Mount: data-component="HeroSecondaryAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### HeroTrustText
Mount: data-component="HeroTrustText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HexColorInput
Mount: data-component="HexColorInput"
Category: forms
Props: label: string = "HexColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HiddenField
Mount: data-component="HiddenField"
Category: forms
Props: label: string = "Hidden", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HighlightText
Mount: data-component="HighlightText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HolidayCalendar
Mount: data-component="HolidayCalendar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HostnameInput
Mount: data-component="HostnameInput"
Category: forms
Props: label: string = "Hostname", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HourPicker
Mount: data-component="HourPicker"
Category: forms
Props: label: string = "Hour", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HslColorInput
Mount: data-component="HslColorInput"
Category: forms
Props: label: string = "HslColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### hstack
Mount: data-component="hstack"
Category: core
Props: gap: string = "4", align: string = "center", class: string = ""
Slots: default
Events: none

### HtmlEditor
Mount: data-component="HtmlEditor"
Category: forms
Props: label: string = "Html", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HumanApprovalStep
Mount: data-component="HumanApprovalStep"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Icon
Mount: data-component="Icon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### IconButton
Mount: data-component="IconButton"
Category: actions
Props: class: string = "", label: string = "Action", icon: string = "•", variant: string = "ghost", disabled: boolean = false
Slots: none
Events: none

### IconPicker
Mount: data-component="IconPicker"
Category: forms
Props: label: string = "Icon", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### IconSelector
Mount: data-component="IconSelector"
Category: forms
Props: label: string = "Icon", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### IdentifierInput
Mount: data-component="IdentifierInput"
Category: forms
Props: label: string = "Identifier", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Illustration
Mount: data-component="Illustration"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ImageCompressionPreview
Mount: data-component="ImageCompressionPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ImageEditor
Mount: data-component="ImageEditor"
Category: forms
Props: label: string = "Image", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ImagePreviewDialog
Mount: data-component="ImagePreviewDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ImageSelector
Mount: data-component="ImageSelector"
Category: forms
Props: label: string = "Image", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ImageUpload
Mount: data-component="ImageUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ImportProgress
Mount: data-component="ImportProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### IncidentAlert
Mount: data-component="IncidentAlert"
Category: feedback
Props: label: string = "Incident", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### IncidentBanner
Mount: data-component="IncidentBanner"
Category: feedback
Props: label: string = "Incident", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### IncidentCard
Mount: data-component="IncidentCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### IncidentList
Mount: data-component="IncidentList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### IncidentResponseFlow
Mount: data-component="IncidentResponseFlow"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### IncidentSeverityBadge
Mount: data-component="IncidentSeverityBadge"
Category: feedback
Props: label: string = "IncidentSeverity", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### IncidentTimeline
Mount: data-component="IncidentTimeline"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### IndustryBadge
Mount: data-component="IndustryBadge"
Category: feedback
Props: label: string = "Industry", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### IndustrySelector
Mount: data-component="IndustrySelector"
Category: forms
Props: label: string = "Industry", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### InfoCard
Mount: data-component="InfoCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### Inline
Mount: data-component="Inline"
Category: core
Props: gap: string = "4", className: string = ""
Slots: default
Events: none

### InlineAlert
Mount: data-component="InlineAlert"
Category: feedback
Props: label: string = "Inline", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### InlineCode
Mount: data-component="InlineCode"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### input
Mount: data-component="input"
Category: core
Props: type: string = "text", name: string = "", value: string = "", placeholder: string = "", class: string = ""
Slots: none
Events: none

### InputGroup
Mount: data-component="InputGroup"
Category: forms
Props: label: string = "Input", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### InsetPanel
Mount: data-component="InsetPanel"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### IntegerInput
Mount: data-component="IntegerInput"
Category: forms
Props: label: string = "Integer", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### IntegrationCard
Mount: data-component="IntegrationCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", icon: string = "icon-[lucide--plug-zap]", class: string = ""
Slots: default
Events: none

### InvoiceLineItem
Mount: data-component="InvoiceLineItem"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### InvoiceSummary
Mount: data-component="InvoiceSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### IpAddressInput
Mount: data-component="IpAddressInput"
Category: forms
Props: label: string = "IpAddress", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### JobCard
Mount: data-component="JobCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### JobProgress
Mount: data-component="JobProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### JobTitleInput
Mount: data-component="JobTitleInput"
Category: forms
Props: label: string = "JobTitle", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### JsonInput
Mount: data-component="JsonInput"
Category: forms
Props: label: string = "Json", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### JsonViewer
Mount: data-component="JsonViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### KeyValueTable
Mount: data-component="KeyValueTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### KycDocumentUpload
Mount: data-component="KycDocumentUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LanguageSelector
Mount: data-component="LanguageSelector"
Category: forms
Props: label: string = "Language", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LanguageSwitcher
Mount: data-component="LanguageSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LastNameInput
Mount: data-component="LastNameInput"
Category: forms
Props: label: string = "LastName", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LatencyMetric
Mount: data-component="LatencyMetric"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### LatitudeInput
Mount: data-component="LatitudeInput"
Category: forms
Props: label: string = "Latitude", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LeadershipGrid
Mount: data-component="LeadershipGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LeadText
Mount: data-component="LeadText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### LegalAcceptanceNotice
Mount: data-component="LegalAcceptanceNotice"
Category: feedback
Props: label: string = "LegalAcceptance", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### LegalBulletList
Mount: data-component="LegalBulletList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LegalContactBlock
Mount: data-component="LegalContactBlock"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LegalDefinitionList
Mount: data-component="LegalDefinitionList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LegalDocumentHeader
Mount: data-component="LegalDocumentHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### LegalDocumentLayout
Mount: data-component="LegalDocumentLayout"
Category: layout
Props: class: string = "", title: string = "Legal document", effectiveDate: string = "", updatedDate: string = ""
Slots: toc, default
Events: none

### LegalHero
Mount: data-component="LegalHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### LegalLanguageSelector
Mount: data-component="LegalLanguageSelector"
Category: forms
Props: label: string = "LegalLanguage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LegalNotice
Mount: data-component="LegalNotice"
Category: feedback
Props: label: string = "Legal", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### LegalPageShell
Mount: data-component="LegalPageShell"
Category: layout
Props: class: string = ""
Slots: navigation, default
Events: none

### LegalPrintButton
Mount: data-component="LegalPrintButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### LegalRegionSelector
Mount: data-component="LegalRegionSelector"
Category: forms
Props: label: string = "LegalRegion", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LegalSection
Mount: data-component="LegalSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### LegalSummary
Mount: data-component="LegalSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LegalTable
Mount: data-component="LegalTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LegalTableOfContents
Mount: data-component="LegalTableOfContents"
Category: core
Props: title: string = "On this page", items: string = [], class: string = ""
Slots: none
Events: none

### LegalVersionBadge
Mount: data-component="LegalVersionBadge"
Category: feedback
Props: label: string = "LegalVersion", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### LetterSpacingPicker
Mount: data-component="LetterSpacingPicker"
Category: forms
Props: label: string = "LetterSpacing", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LicenseKeyInput
Mount: data-component="LicenseKeyInput"
Category: forms
Props: label: string = "LicenseKey", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Lightbox
Mount: data-component="Lightbox"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### LineChart
Mount: data-component="LineChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### LineHeightPicker
Mount: data-component="LineHeightPicker"
Category: forms
Props: label: string = "LineHeight", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Link
Mount: data-component="Link"
Category: core
Props: href: string = "#", label: string = "Link", external: boolean = false, className: string = ""
Slots: none
Events: none

### LinkButton
Mount: data-component="LinkButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### List
Mount: data-component="List"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LoadingButton
Mount: data-component="LoadingButton"
Category: actions
Props: label: string = "Continue", loadingLabel: string = "Loading…", loading: boolean = false, disabled: boolean = false, type: string = "button", variant: string = "primary", class: string = ""
Slots: none
Events: none

### LocaleSelector
Mount: data-component="LocaleSelector"
Category: forms
Props: label: string = "Locale", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LocalizedRouteLink
Mount: data-component="LocalizedRouteLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### LocationPicker
Mount: data-component="LocationPicker"
Category: forms
Props: label: string = "Location", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Logo
Mount: data-component="Logo"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LogoCloud
Mount: data-component="LogoCloud"
Category: core
Props: class: string = "", eyebrow: string = "", title: string = "Trusted by teams building modern products", description: string = "", logos: string = [], centered: boolean = true, compact: boolean = false, variant: string = "strip", grayscale: boolean = true, showNames: boolean = false, maxItems: number = 8
Slots: none
Events: none

### LogoUpload
Mount: data-component="LogoUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LogoutDialog
Mount: data-component="LogoutDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### LogTable
Mount: data-component="LogTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LongitudeInput
Mount: data-component="LongitudeInput"
Category: forms
Props: label: string = "Longitude", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MaintenanceAlert
Mount: data-component="MaintenanceAlert"
Category: feedback
Props: label: string = "Maintenance", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### MaintenanceBanner
Mount: data-component="MaintenanceBanner"
Category: feedback
Props: label: string = "Maintenance", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### MaintenanceCard
Mount: data-component="MaintenanceCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MaintenancePage
Mount: data-component="MaintenancePage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MaintenanceState
Mount: data-component="MaintenanceState"
Category: feedback
Props: label: string = "Maintenance", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### MaintenanceWindowPicker
Mount: data-component="MaintenanceWindowPicker"
Category: forms
Props: label: string = "MaintenanceWindow", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MapPicker
Mount: data-component="MapPicker"
Category: forms
Props: label: string = "Map", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MarkdownEditor
Mount: data-component="MarkdownEditor"
Category: forms
Props: label: string = "Markdown", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MarketingPageShell
Mount: data-component="MarketingPageShell"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### MarketingSectionHeader
Mount: data-component="MarketingSectionHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### MaskedSecretField
Mount: data-component="MaskedSecretField"
Category: forms
Props: label: string = "MaskedSecret", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MegaMenu
Mount: data-component="MegaMenu"
Category: overlays
Props: label: string = "Explore", sections: string = [], class: string = ""
Slots: none
Events: click

### MemberList
Mount: data-component="MemberList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### MentionInput
Mount: data-component="MentionInput"
Category: forms
Props: label: string = "Mention", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MessageCharacterCounter
Mount: data-component="MessageCharacterCounter"
Category: feedback
Props: label: string = "MessageCharacter", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### MessageComposer
Mount: data-component="MessageComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MessageComposerPreview
Mount: data-component="MessageComposerPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MessageLimitInput
Mount: data-component="MessageLimitInput"
Category: forms
Props: label: string = "MessageLimit", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MessagePreview
Mount: data-component="MessagePreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MessageVolumeSlider
Mount: data-component="MessageVolumeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Metric
Mount: data-component="Metric"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### MetricCard
Mount: data-component="MetricCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MetricGrid
Mount: data-component="MetricGrid"
Category: data
Props: label: string = "Platform metrics", metrics: string = [], compact: boolean = false, columns: number = 4, class: string = ""
Slots: none
Events: none

### MetricText
Mount: data-component="MetricText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### MinutePicker
Mount: data-component="MinutePicker"
Category: forms
Props: label: string = "Minute", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MissionSection
Mount: data-component="MissionSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### MobileDeviceFrame
Mount: data-component="MobileDeviceFrame"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### MobileInput
Mount: data-component="MobileInput"
Category: forms
Props: label: string = "Mobile", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MobileMenuButton
Mount: data-component="MobileMenuButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### MobileNavigation
Mount: data-component="MobileNavigation"
Category: layout
Props: label: string = "Menu", closeLabel: string = "Close menu", items: string = [], class: string = ""
Slots: none
Events: click

### MobileTableCard
Mount: data-component="MobileTableCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Modal
Mount: data-component="Modal"
Category: core
Props: class: string = "", title: string = "Dialog", description: string = "", open: boolean = false, size: string = "md", closeLabel: string = "Close"
Slots: default
Events: click

### MonthlyVolumeSelector
Mount: data-component="MonthlyVolumeSelector"
Category: forms
Props: label: string = "MonthlyVolume", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MonthPicker
Mount: data-component="MonthPicker"
Category: forms
Props: label: string = "Month", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MonthYearPicker
Mount: data-component="MonthYearPicker"
Category: forms
Props: label: string = "MonthYear", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MultiFileUpload
Mount: data-component="MultiFileUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MultipleEmailInput
Mount: data-component="MultipleEmailInput"
Category: forms
Props: label: string = "MultipleEmail", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MultiSelect
Mount: data-component="MultiSelect"
Category: core
Props: id: string = "multi-select", name: string = "", label: string = "Choose options", options: string = [], required: boolean = false, disabled: boolean = false, size: number = 5, class: string = ""
Slots: none
Events: none

### MutedText
Mount: data-component="MutedText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### NameInput
Mount: data-component="NameInput"
Category: forms
Props: label: string = "Name", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### NarrowContainer
Mount: data-component="NarrowContainer"
Category: core
Props: class: string = ""
Slots: default
Events: none

### Navigation
Mount: data-component="Navigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### NavigationItem
Mount: data-component="NavigationItem"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### NavigationMegaMenu
Mount: data-component="NavigationMegaMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### NewBadge
Mount: data-component="NewBadge"
Category: feedback
Props: label: string = "New", variant: string = "default", class: string = ""
Slots: default
Events: none

### NewPasswordInput
Mount: data-component="NewPasswordInput"
Category: forms
Props: label: string = "NewPassword", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### NewsletterCTA
Mount: data-component="NewsletterCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### NewsletterForm
Mount: data-component="NewsletterForm"
Category: content
Props: class: string = "", eyebrow: string = "", title: string = "Stay up to date", description: string = "", placeholder: string = "Enter your email", buttonLabel: string = "Subscribe", action: string = "/newsletter/subscribe", method: string = "post", emailName: string = "email", privacyLabel: string = "", privacyHref: string = "/privacy", successMessage: string = "You are subscribed.", errorMessage: string = "Something went wrong. Please try again.", iconClass: string = "icon-[lucide--mail]", centered: boolean = false, compact: boolean = false, showIcon: boolean = true, showPrivacy: boolean = true, fullWidth: boolean = false
Slots: none
Events: submit, input

### NoResultsState
Mount: data-component="NoResultsState"
Category: feedback
Props: label: string = "NoResults", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### NotFoundPage
Mount: data-component="NotFoundPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### NotFoundState
Mount: data-component="NotFoundState"
Category: feedback
Props: label: string = "NotFound", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### NotificationCard
Mount: data-component="NotificationCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### NotificationDot
Mount: data-component="NotificationDot"
Category: core
Props: label: string = "Notification", variant: string = "default", class: string = ""
Slots: default
Events: none

### NotificationList
Mount: data-component="NotificationList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### NumberInput
Mount: data-component="NumberInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Number", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### OfficeCard
Mount: data-component="OfficeCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OfflinePage
Mount: data-component="OfflinePage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OfflineState
Mount: data-component="OfflineState"
Category: feedback
Props: label: string = "Offline", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### OnboardingProgress
Mount: data-component="OnboardingProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### OneTimeSecretDisplay
Mount: data-component="OneTimeSecretDisplay"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OnlineIndicator
Mount: data-component="OnlineIndicator"
Category: feedback
Props: label: string = "Online", variant: string = "default", class: string = ""
Slots: default
Events: none

### OpacitySlider
Mount: data-component="OpacitySlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OpenAPICTA
Mount: data-component="OpenAPICTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### OptionalIndicator
Mount: data-component="OptionalIndicator"
Category: feedback
Props: label: string = "Optional", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### OrganizationSelector
Mount: data-component="OrganizationSelector"
Category: forms
Props: label: string = "Organization", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### OtpInput
Mount: data-component="OtpInput"
Category: forms
Props: class: string = "", name: string = "otp", length: number = 6, label: string = "Verification code"
Slots: none
Events: none

### OtpVerificationForm
Mount: data-component="OtpVerificationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OutlinedCard
Mount: data-component="OutlinedCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### PageAlert
Mount: data-component="PageAlert"
Category: feedback
Props: label: string = "Page", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### PageHeader
Mount: data-component="PageHeader"
Category: core
Props: class: string = "", eyebrow: string = "", title: string = "", description: string = "", primaryLabel: string = "", primaryHref: string = "", secondaryLabel: string = "", secondaryHref: string = "", icon: string = "sparkles", centered: boolean = false, compact: boolean = false, showBreadcrumbs: boolean = false, breadcrumbParent: string = "", breadcrumbParentHref: string = "", breadcrumbCurrent: string = "", highlights: string = []
Slots: none
Events: none

### PageHeading
Mount: data-component="PageHeading"
Category: core
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PageShell
Mount: data-component="PageShell"
Category: core
Props: className: string = ""
Slots: default
Events: none

### PageSkeleton
Mount: data-component="PageSkeleton"
Category: feedback
Props: label: string = "Page", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### Pagination
Mount: data-component="Pagination"
Category: core
Props: class: string = "", currentPage: number = 1, totalPages: number = 1, previousHref: string = "", nextHref: string = "", pages: string = [], showNumbers: boolean = true, showSummary: boolean = true, totalItems: number = 0, pageSize: number = 10, compact: boolean = false, centered: boolean = false
Slots: none
Events: none

### Panel
Mount: data-component="Panel"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### PartnerApplicationForm
Mount: data-component="PartnerApplicationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PartnerLogoGrid
Mount: data-component="PartnerLogoGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PartnerProgramCard
Mount: data-component="PartnerProgramCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PasskeyButton
Mount: data-component="PasskeyButton"
Category: actions
Props: label: string = "Continue with a passkey", description: string = "Use fingerprint, face recognition, or device PIN", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: none
Events: none

### PasswordInput
Mount: data-component="PasswordInput"
Category: forms
Props: class: string = "", id: string = "password", name: string = "password", label: string = "Password", value: string = "", placeholder: string = "Enter your password", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = "current-password", revealable: boolean = true
Slots: none
Events: click

### PasswordRequirementList
Mount: data-component="PasswordRequirementList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PasswordStrengthMeter
Mount: data-component="PasswordStrengthMeter"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### PasswordVisibilityToggle
Mount: data-component="PasswordVisibilityToggle"
Category: forms
Props: label: string = "PasswordVisibility", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PathInput
Mount: data-component="PathInput"
Category: forms
Props: label: string = "Path", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PaymentMethodCard
Mount: data-component="PaymentMethodCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PdfPreview
Mount: data-component="PdfPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PercentageInput
Mount: data-component="PercentageInput"
Category: forms
Props: label: string = "Percentage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PermissionSelector
Mount: data-component="PermissionSelector"
Category: forms
Props: label: string = "Permission", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PhoneInput
Mount: data-component="PhoneInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Phone", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### PieChart
Mount: data-component="PieChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### Pill
Mount: data-component="Pill"
Category: core
Props: label: string = "Pill", variant: string = "default", class: string = ""
Slots: default
Events: none

### PinInput
Mount: data-component="PinInput"
Category: forms
Props: label: string = "Pin", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PlainTextEditor
Mount: data-component="PlainTextEditor"
Category: forms
Props: label: string = "PlainText", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PlanCTA
Mount: data-component="PlanCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PlanFeatureList
Mount: data-component="PlanFeatureList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PlanLimitList
Mount: data-component="PlanLimitList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PlanSelector
Mount: data-component="PlanSelector"
Category: forms
Props: label: string = "Plan", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PlatformPillarCard
Mount: data-component="PlatformPillarCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PolicyVersionTable
Mount: data-component="PolicyVersionTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### Popover
Mount: data-component="Popover"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### PortInput
Mount: data-component="PortInput"
Category: forms
Props: label: string = "Port", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PortNumberInput
Mount: data-component="PortNumberInput"
Category: forms
Props: label: string = "PortNumber", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PositiveNumberInput
Mount: data-component="PositiveNumberInput"
Category: forms
Props: label: string = "PositiveNumber", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PostalCodeInput
Mount: data-component="PostalCodeInput"
Category: forms
Props: label: string = "PostalCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PostmanCTA
Mount: data-component="PostmanCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PresetDateRangePicker
Mount: data-component="PresetDateRangePicker"
Category: forms
Props: label: string = "PresetDateRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PressReleaseCard
Mount: data-component="PressReleaseCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PreviewBadge
Mount: data-component="PreviewBadge"
Category: feedback
Props: label: string = "Preview", variant: string = "default", class: string = ""
Slots: default
Events: none

### PreviousNextNavigation
Mount: data-component="PreviousNextNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PriceInput
Mount: data-component="PriceInput"
Category: forms
Props: label: string = "Price", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PriceRangeSlider
Mount: data-component="PriceRangeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PriceText
Mount: data-component="PriceText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PricingCard
Mount: data-component="PricingCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PricingComparisonTable
Mount: data-component="PricingComparisonTable"
Category: data
Props: caption: string = "Plan comparison", plans: string = [], features: string = [], featuredPlan: string = "", class: string = ""
Slots: none
Events: none

### PricingContactForm
Mount: data-component="PricingContactForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PricingFeatureGroup
Mount: data-component="PricingFeatureGroup"
Category: forms
Props: label: string = "PricingFeature", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PricingGrid
Mount: data-component="PricingGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PricingHero
Mount: data-component="PricingHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PricingPlanCard
Mount: data-component="PricingPlanCard"
Category: content
Props: class: string = "", name: string = "Starter", description: string = "", price: string = "₹0", period: string = "/month", featured: boolean = false, badgeLabel: string = "Most popular", ctaLabel: string = "Choose plan", ctaHref: string = "#"
Slots: default
Events: none

### PricingTable
Mount: data-component="PricingTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PricingToggle
Mount: data-component="PricingToggle"
Category: forms
Props: label: string = "Pricing", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PrimaryButton
Mount: data-component="PrimaryButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PrintAction
Mount: data-component="PrintAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PrintPolicyButton
Mount: data-component="PrintPolicyButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PrioritySelector
Mount: data-component="PrioritySelector"
Category: forms
Props: label: string = "Priority", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PrivacyNotice
Mount: data-component="PrivacyNotice"
Category: feedback
Props: label: string = "Privacy", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ProductArchitectureDiagram
Mount: data-component="ProductArchitectureDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ProductCard
Mount: data-component="ProductCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", status: string = "", class: string = ""
Slots: none
Events: none

### ProductCategorySection
Mount: data-component="ProductCategorySection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ProductCTA
Mount: data-component="ProductCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ProductFeatureList
Mount: data-component="ProductFeatureList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ProductGrid
Mount: data-component="ProductGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ProductHero
Mount: data-component="ProductHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ProductIcon
Mount: data-component="ProductIcon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProductIntegrationList
Mount: data-component="ProductIntegrationList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ProductList
Mount: data-component="ProductList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ProductLogo
Mount: data-component="ProductLogo"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProductMegaMenu
Mount: data-component="ProductMegaMenu"
Category: core
Props: class: string = ""
Slots: none
Events: none

### ProductMiniCard
Mount: data-component="ProductMiniCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProductNavigationCard
Mount: data-component="ProductNavigationCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProductPageShell
Mount: data-component="ProductPageShell"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### ProductSelector
Mount: data-component="ProductSelector"
Category: forms
Props: label: string = "Product", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ProductsMegaMenu
Mount: data-component="ProductsMegaMenu"
Category: overlays
Props: label: string = "Products", sections: string = [], class: string = ""
Slots: none
Events: none

### ProductStatusBadge
Mount: data-component="ProductStatusBadge"
Category: feedback
Props: label: string = "Available", status: string = "", class: string = ""
Slots: none
Events: none

### ProductUseCaseList
Mount: data-component="ProductUseCaseList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### progress
Mount: data-component="progress"
Category: core
Props: value: number = 0, max: number = 100, class: string = ""
Slots: none
Events: none

### ProgressBar
Mount: data-component="ProgressBar"
Category: core
Props: class: string = "", value: number = 0, max: number = 100, label: string = "Progress", showValue: boolean = true
Slots: none
Events: none

### ProgressChart
Mount: data-component="ProgressChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ProgressRing
Mount: data-component="ProgressRing"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ProgressSlider
Mount: data-component="ProgressSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProjectCard
Mount: data-component="ProjectCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### ProjectSelector
Mount: data-component="ProjectSelector"
Category: forms
Props: label: string = "Project", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ProjectSwitcher
Mount: data-component="ProjectSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PromoCodeInput
Mount: data-component="PromoCodeInput"
Category: forms
Props: label: string = "PromoCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PromptDialog
Mount: data-component="PromptDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ProviderSelector
Mount: data-component="ProviderSelector"
Category: forms
Props: label: string = "Provider", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PublicFooter
Mount: data-component="PublicFooter"
Category: core
Props: class: string = "", homeHref: string = "/", brandName: string = "WrNexus", brandTagline: string = "Identity Cloud", brandAriaLabel: string = "WrNexus home", brandIcon: string = "icon-[lucide--blocks]", brandDescription: string = "Secure authentication, user management, organizations, authorization, and enterprise identity for modern applications.", statusLabel: string = "All systems operational", statusHref: string = "/status", newsletterEyebrow: string = "WrNexus updates", newsletterTitle: string = "Identity insights delivered to your inbox", newsletterDescription: string = "Get product updates, security guidance, implementation strategies, and practical identity architecture resources.", newsletterAction: string = "/api/newsletter/subscribe", newsletterButtonLabel: string = "Subscribe", newsletterPlaceholder: string = "Enter your work email", newsletterSuccessMessage: string = "Thanks. Please check your inbox to confirm your subscription.", newsletterPrivacyLabel: string = "privacy policy", newsletterPrivacyHref: string = "/privacy", newsletterFinePrintPrefix: string = "No spam. Unsubscribe at any time. Read our", newsletterFinePrintSuffix: string = ".", newsletterEmailLabel: string = "Work email address", newsletterEmailName: string = "email", copyrightText: string = "© 2026 WrNexus. All rights reserved.", attributionText: string = "Built by WorkRoot Workspace.", showNewsletter: boolean = true, showSocialLinks: boolean = true, showThemeToggle: boolean = true, showStatus: boolean = true, showCookiePreferences: boolean = true, cookiePreferencesLabel: string = "Cookie preferences", themeLabel: string = "Theme", themeToggleLabel: string = "Toggle color theme", legalTitle: string = "Legal", socialLinks: PublicFooterLink[] = [], navigationColumns: PublicFooterColumn[] = [], legalLinks: PublicFooterLink[] = [], navigationAriaLabel: string = "Footer navigation"
Slots: navigation
Events: submit

### PublicHeader
Mount: data-component="PublicHeader"
Category: layout
Props: class: string = "", homeHref: string = "/", brandName: string = "WrNexus", brandTagline: string = "Identity Cloud", brandAriaLabel: string = "WrNexus home", brandIcon: string = "icon-[lucide--blocks]", pricingLabel: string = "Pricing", pricingHref: string = "/pricing", statusLabel: string = "All systems operational", statusHref: string = "/status", signInLabel: string = "Sign in", signInHref: string = "/sign-in", primaryLabel: string = "Start free", primaryHref: string = "/sign-up", showStatus: boolean = true, showThemeToggle: boolean = true, showSignIn: boolean = true, showPrimaryAction: boolean = true, productLabel: string = "Product", solutionsLabel: string = "Solutions", developersLabel: string = "Developers", resourcesLabel: string = "Resources", navigationAriaLabel: string = "Main navigation", themeToggleLabel: string = "Toggle color theme", mobileMenuOpenLabel: string = "Open navigation menu", mobileMenuCloseLabel: string = "Close navigation menu", navigationItems: PublicHeaderNavigationItem[] = [], actionItems: PublicHeaderActionItem[] = [], showNavigation: boolean = true, showMobileThemeToggle: boolean = true
Slots: navigation, actions
Events: click

### PublicHeaderLogo
Mount: data-component="PublicHeaderLogo"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PublicMobileNavigation
Mount: data-component="PublicMobileNavigation"
Category: core
Props: class: string = ""
Slots: none
Events: click

### PublicPageShell
Mount: data-component="PublicPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PublicSearch
Mount: data-component="PublicSearch"
Category: core
Props: class: string = "", query: string = "", placeholder: string = "Search...", label: string = "Search", action: string = "", method: string = "get", name: string = "q", buttonLabel: string = "", clearLabel: string = "Clear search", size: string = "default", centered: boolean = false, fullWidth: boolean = false, showShortcut: boolean = false, shortcutLabel: string = "⌘ K", suggestions: string = []
Slots: none
Events: input, focus, blur, click

### PublishDateTimePicker
Mount: data-component="PublishDateTimePicker"
Category: forms
Props: label: string = "PublishDateTime", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PushComposer
Mount: data-component="PushComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PushNotificationEditor
Mount: data-component="PushNotificationEditor"
Category: forms
Props: label: string = "PushNotification", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### QrCode
Mount: data-component="QrCode"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### QuantityInput
Mount: data-component="QuantityInput"
Category: forms
Props: label: string = "Quantity", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### QuantityStepper
Mount: data-component="QuantityStepper"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### QuietHoursPicker
Mount: data-component="QuietHoursPicker"
Category: forms
Props: label: string = "Quiet hours", startName: string = "quietStart", endName: string = "quietEnd", start: string = "22:00", end: string = "08:00", timezone: string = "UTC", disabled: boolean = false, class: string = ""
Slots: none
Events: none

### QuoteText
Mount: data-component="QuoteText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### Radio
Mount: data-component="Radio"
Category: core
Props: class: string = "", id: string = "", name: string = "choice", value: string = "", label: string = "Option", description: string = "", checked: boolean = false, disabled: boolean = false
Slots: none
Events: none

### RadioGroup
Mount: data-component="RadioGroup"
Category: forms
Props: class: string = "", label: string = "Choose one", name: string = "choice"
Slots: default
Events: none

### RangeInput
Mount: data-component="RangeInput"
Category: forms
Props: label: string = "Range", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RangeSlider
Mount: data-component="RangeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RateLimitedState
Mount: data-component="RateLimitedState"
Category: feedback
Props: label: string = "RateLimited", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### RateLimitInput
Mount: data-component="RateLimitInput"
Category: forms
Props: label: string = "RateLimit", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RateLimitPage
Mount: data-component="RateLimitPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RateTable
Mount: data-component="RateTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### RatingSlider
Mount: data-component="RatingSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RecipientSelector
Mount: data-component="RecipientSelector"
Category: forms
Props: label: string = "Recipient", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RecoveryCodeForm
Mount: data-component="RecoveryCodeForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RecoveryCodeInput
Mount: data-component="RecoveryCodeInput"
Category: forms
Props: label: string = "RecoveryCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RecurrenceRuleBuilder
Mount: data-component="RecurrenceRuleBuilder"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RecurringSchedulePicker
Mount: data-component="RecurringSchedulePicker"
Category: forms
Props: id: string = "recurring-schedule", name: string = "recurrence", label: string = "Repeat", value: string = "none", disabled: boolean = false, class: string = ""
Slots: none
Events: none

### RedirectUriInput
Mount: data-component="RedirectUriInput"
Category: forms
Props: label: string = "RedirectUri", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ReferenceInput
Mount: data-component="ReferenceInput"
Category: forms
Props: label: string = "Reference", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RegexInput
Mount: data-component="RegexInput"
Category: forms
Props: label: string = "Regex", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RegionalPrivacyBanner
Mount: data-component="RegionalPrivacyBanner"
Category: feedback
Props: label: string = "RegionalPrivacy", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### RegionAvailabilityTable
Mount: data-component="RegionAvailabilityTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### RegionSelector
Mount: data-component="RegionSelector"
Category: forms
Props: label: string = "Region", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RegionUnavailableAlert
Mount: data-component="RegionUnavailableAlert"
Category: feedback
Props: label: string = "RegionUnavailable", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### RegionUnavailableState
Mount: data-component="RegionUnavailableState"
Category: feedback
Props: label: string = "RegionUnavailable", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### RejectOptionalCookiesButton
Mount: data-component="RejectOptionalCookiesButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ReopenCookieSettingsButton
Mount: data-component="ReopenCookieSettingsButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ReportCard
Mount: data-component="ReportCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RequestResponseViewer
Mount: data-component="RequestResponseViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RequestViewer
Mount: data-component="RequestViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RequiredIndicator
Mount: data-component="RequiredIndicator"
Category: feedback
Props: label: string = "Required", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ResetPasswordForm
Mount: data-component="ResetPasswordForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResizablePanel
Mount: data-component="ResizablePanel"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ResourceCard
Mount: data-component="ResourceCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResourceDownloadCard
Mount: data-component="ResourceDownloadCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResourcePageShell
Mount: data-component="ResourcePageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ResourceSearch
Mount: data-component="ResourceSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResourcesMegaMenu
Mount: data-component="ResourcesMegaMenu"
Category: overlays
Props: class: string = ""
Slots: none
Events: none

### ResourceTypeBadge
Mount: data-component="ResourceTypeBadge"
Category: feedback
Props: label: string = "ResourceType", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ResponseViewer
Mount: data-component="ResponseViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResponsibleDisclosureCTA
Mount: data-component="ResponsibleDisclosureCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ResponsiveTable
Mount: data-component="ResponsiveTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ResultsSection
Mount: data-component="ResultsSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### RetentionTable
Mount: data-component="RetentionTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### RetryCountInput
Mount: data-component="RetryCountInput"
Category: forms
Props: label: string = "RetryCount", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RevenueChart
Mount: data-component="RevenueChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### RgbColorInput
Mount: data-component="RgbColorInput"
Category: forms
Props: label: string = "RgbColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RichTextEditor
Mount: data-component="RichTextEditor"
Category: forms
Props: label: string = "RichText", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RichTextInput
Mount: data-component="RichTextInput"
Category: forms
Props: label: string = "RichText", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RoleSelector
Mount: data-component="RoleSelector"
Category: forms
Props: label: string = "Role", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RollingDateRangePicker
Mount: data-component="RollingDateRangePicker"
Category: forms
Props: label: string = "RollingDateRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SaveCookiePreferencesButton
Mount: data-component="SaveCookiePreferencesButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SavedFilterSelector
Mount: data-component="SavedFilterSelector"
Category: forms
Props: label: string = "SavedFilter", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ScheduledDateTimePicker
Mount: data-component="ScheduledDateTimePicker"
Category: forms
Props: label: string = "ScheduledDateTime", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ScheduleMessagePicker
Mount: data-component="ScheduleMessagePicker"
Category: forms
Props: label: string = "ScheduleMessage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SchedulePicker
Mount: data-component="SchedulePicker"
Category: forms
Props: class: string = "", label: string = "Schedule"
Slots: none
Events: none

### ScreenshotFrame
Mount: data-component="ScreenshotFrame"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ScrollArea
Mount: data-component="ScrollArea"
Category: core
Props: class: string = ""
Slots: default
Events: none

### SDKCard
Mount: data-component="SDKCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SdkLanguageSelector
Mount: data-component="SdkLanguageSelector"
Category: forms
Props: label: string = "SdkLanguage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SDKLanguageTabs
Mount: data-component="SDKLanguageTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SDKTabs
Mount: data-component="SDKTabs"
Category: core
Props: label: string = "SDK languages", tabs: string = [], defaultIndex: number = 0, class: string = ""
Slots: none
Events: click

### SearchButton
Mount: data-component="SearchButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SearchCategoryTabs
Mount: data-component="SearchCategoryTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SearchDialog
Mount: data-component="SearchDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### SearchEmptyState
Mount: data-component="SearchEmptyState"
Category: feedback
Props: label: string = "SearchEmpty", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SearchInput
Mount: data-component="SearchInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Search", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### SearchLoadingState
Mount: data-component="SearchLoadingState"
Category: feedback
Props: label: string = "SearchLoading", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SearchResultItem
Mount: data-component="SearchResultItem"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SecondaryButton
Mount: data-component="SecondaryButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SecondPicker
Mount: data-component="SecondPicker"
Category: forms
Props: label: string = "Second", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SecretDisplay
Mount: data-component="SecretDisplay"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SecretInput
Mount: data-component="SecretInput"
Category: forms
Props: label: string = "Secret", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SecretRevealDialog
Mount: data-component="SecretRevealDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### Section
Mount: data-component="Section"
Category: layout
Props: id: string = "", size: string = "default", surface: string = "default", className: string = ""
Slots: default
Events: none

### SectionActions
Mount: data-component="SectionActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SectionHeader
Mount: data-component="SectionHeader"
Category: layout
Props: class: string = "", eyebrow: string = "", title: string = "Section title", description: string = "", align: string = "left"
Slots: default
Events: none

### SectionHeading
Mount: data-component="SectionHeading"
Category: core
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SecurityAlert
Mount: data-component="SecurityAlert"
Category: feedback
Props: label: string = "Security", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SecurityContactCard
Mount: data-component="SecurityContactCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SecurityFeatureCard
Mount: data-component="SecurityFeatureCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SecurityHero
Mount: data-component="SecurityHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SecurityPillarGrid
Mount: data-component="SecurityPillarGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### SecurityPracticeList
Mount: data-component="SecurityPracticeList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### SecurityReportForm
Mount: data-component="SecurityReportForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SegmentedButtonGroup
Mount: data-component="SegmentedButtonGroup"
Category: core
Props: label: string = "Options", items: string = [], active: string = "", size: string = "md", fullWidth: boolean = false, class: string = ""
Slots: none
Events: click

### Select
Mount: data-component="Select"
Category: core
Props: class: string = "", id: string = "", name: string = "", label: string = "Select", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false
Slots: default
Events: none

### SenderIdInput
Mount: data-component="SenderIdInput"
Category: forms
Props: label: string = "SenderId", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ServerErrorPage
Mount: data-component="ServerErrorPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ServiceLevelTable
Mount: data-component="ServiceLevelTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ServiceStatusBadge
Mount: data-component="ServiceStatusBadge"
Category: feedback
Props: label: string = "ServiceStatus", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ServiceStatusList
Mount: data-component="ServiceStatusList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ServiceStatusRow
Mount: data-component="ServiceStatusRow"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### SessionCard
Mount: data-component="SessionCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SessionExpiredDialog
Mount: data-component="SessionExpiredDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### SetupChecklist
Mount: data-component="SetupChecklist"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SeveritySelector
Mount: data-component="SeveritySelector"
Category: forms
Props: label: string = "Severity", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ShadowPicker
Mount: data-component="ShadowPicker"
Category: forms
Props: label: string = "Shadow", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ShareAction
Mount: data-component="ShareAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ShareButton
Mount: data-component="ShareButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SidebarLayout
Mount: data-component="SidebarLayout"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### SidePanel
Mount: data-component="SidePanel"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SignInForm
Mount: data-component="SignInForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SignInLink
Mount: data-component="SignInLink"
Category: actions
Props: label: string = "Sign in with password", description: string = "Use your username or email and password", href: string = "", type: string = "button", variant: string = "secondary", disabled: boolean = false, icon: string = "icon-[lucide--lock-keyhole]", tone: string = "password", class: string = ""
Slots: none
Events: none

### SignUpForm
Mount: data-component="SignUpForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SiteSearch
Mount: data-component="SiteSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Skeleton
Mount: data-component="Skeleton"
Category: feedback
Props: height: string = "4", rounded: string = "lg", className: string = ""
Slots: none
Events: none

### SkipLink
Mount: data-component="SkipLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SlaTable
Mount: data-component="SlaTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### Slider
Mount: data-component="Slider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SlugInput
Mount: data-component="SlugInput"
Category: forms
Props: label: string = "Slug", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SmallText
Mount: data-component="SmallText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SmartRouteDiagram
Mount: data-component="SmartRouteDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### SmsComposer
Mount: data-component="SmsComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SmsMessageEditor
Mount: data-component="SmsMessageEditor"
Category: forms
Props: label: string = "SmsMessage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SmsSegmentCounter
Mount: data-component="SmsSegmentCounter"
Category: feedback
Props: label: string = "SmsSegment", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SocialShare
Mount: data-component="SocialShare"
Category: core
Props: class: string = "", title: string = "Share this page", description: string = "", url: string = "", shareText: string = "", centered: boolean = false, compact: boolean = false, showTitle: boolean = true, showCopy: boolean = true, networks: string = []
Slots: none
Events: click

### SolutionHero
Mount: data-component="SolutionHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SolutionPageShell
Mount: data-component="SolutionPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SolutionSection
Mount: data-component="SolutionSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SolutionsMegaMenu
Mount: data-component="SolutionsMegaMenu"
Category: overlays
Props: class: string = ""
Slots: none
Events: none

### SortableTable
Mount: data-component="SortableTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### spacer
Mount: data-component="spacer"
Category: core
Props: class: string = ""
Slots: none
Events: none

### Spinner
Mount: data-component="Spinner"
Category: core
Props: class: string = "", label: string = "Loading", size: string = "md"
Slots: none
Events: none

### SplitButton
Mount: data-component="SplitButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SplitCTA
Mount: data-component="SplitCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SplitHero
Mount: data-component="SplitHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SplitLayout
Mount: data-component="SplitLayout"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### SplitSectionHeader
Mount: data-component="SplitSectionHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### Stack
Mount: data-component="Stack"
Category: core
Props: gap: string = "4", className: string = ""
Slots: default
Events: none

### StartFreeButton
Mount: data-component="StartFreeButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### StatCard
Mount: data-component="StatCard"
Category: content
Props: class: string = "", label: string = "Metric", value: string = "0", change: string = "", trend: string = "neutral"
Slots: none
Events: none

### StateSelector
Mount: data-component="StateSelector"
Category: forms
Props: label: string = "State", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### StatusBadge
Mount: data-component="StatusBadge"
Category: feedback
Props: class: string = "", status: string = "operational"
Slots: none
Events: none

### StatusBanner
Mount: data-component="StatusBanner"
Category: core
Props: class: string = "", type: string = "info", title: string = "", description: string = "", actionLabel: string = "", actionHref: string = "", dismissible: boolean = true, compact: boolean = false, details: string = []
Slots: none
Events: click

### StatusPageShell
Mount: data-component="StatusPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### StatusSelector
Mount: data-component="StatusSelector"
Category: forms
Props: label: string = "Status", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### StatusSubscribeForm
Mount: data-component="StatusSubscribeForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### StatusTable
Mount: data-component="StatusTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### StepNavigation
Mount: data-component="StepNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### Stepper
Mount: data-component="Stepper"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### StepperInput
Mount: data-component="StepperInput"
Category: forms
Props: label: string = "Stepper", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### StepUpAuthenticationDialog
Mount: data-component="StepUpAuthenticationDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### StickerPicker
Mount: data-component="StickerPicker"
Category: forms
Props: label: string = "Sticker", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Sticky
Mount: data-component="Sticky"
Category: core
Props: class: string = ""
Slots: default
Events: none

### StickyLayout
Mount: data-component="StickyLayout"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### StreetAddressInput
Mount: data-component="StreetAddressInput"
Category: forms
Props: label: string = "StreetAddress", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SubdomainInput
Mount: data-component="SubdomainInput"
Category: forms
Props: label: string = "Subdomain", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SubjectInput
Mount: data-component="SubjectInput"
Category: forms
Props: label: string = "Subject", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SubprocessorTable
Mount: data-component="SubprocessorTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### SubsectionHeading
Mount: data-component="SubsectionHeading"
Category: core
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SuccessCard
Mount: data-component="SuccessCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### SuccessState
Mount: data-component="SuccessState"
Category: feedback
Props: label: string = "Success", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SupportRequestForm
Mount: data-component="SupportRequestForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Surface
Mount: data-component="Surface"
Category: core
Props: class: string = ""
Slots: default
Events: none

### Switch
Mount: data-component="Switch"
Category: core
Props: class: string = "", id: string = "", name: string = "", label: string = "Switch", description: string = "", checked: boolean = false, disabled: boolean = false
Slots: none
Events: click

### Table
Mount: data-component="Table"
Category: data
Props: class: string = "", caption: string = "Data table", responsive: boolean = true, striped: boolean = false, hoverable: boolean = true, compact: boolean = false
Slots: default
Events: none

### TableHeader
Mount: data-component="TableHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### TableRow
Mount: data-component="TableRow"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### TableSkeleton
Mount: data-component="TableSkeleton"
Category: feedback
Props: label: string = "Table", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### Tabs
Mount: data-component="Tabs"
Category: content
Props: class: string = "", active: string = "first"
Slots: first, second
Events: click

### tag
Mount: data-component="tag"
Category: core
Props: label: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### TagInput
Mount: data-component="TagInput"
Category: forms
Props: label: string = "Tag", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TaxNotice
Mount: data-component="TaxNotice"
Category: feedback
Props: label: string = "Tax", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### TaxRateInput
Mount: data-component="TaxRateInput"
Category: forms
Props: label: string = "TaxRate", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TeamMemberCard
Mount: data-component="TeamMemberCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TeamSizeSelector
Mount: data-component="TeamSizeSelector"
Category: forms
Props: label: string = "TeamSize", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TemplateCard
Mount: data-component="TemplateCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### TemplateSelector
Mount: data-component="TemplateSelector"
Category: forms
Props: label: string = "Template", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TemplateVariableInput
Mount: data-component="TemplateVariableInput"
Category: forms
Props: label: string = "TemplateVariable", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TenantIsolationDiagram
Mount: data-component="TenantIsolationDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### TerminalBlock
Mount: data-component="TerminalBlock"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TertiaryButton
Mount: data-component="TertiaryButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### TestimonialCard
Mount: data-component="TestimonialCard"
Category: content
Props: class: string = "", quote: string = "Great product.", name: string = "Customer", role: string = "", company: string = "", avatar: string = ""
Slots: none
Events: none

### TestimonialCarousel
Mount: data-component="TestimonialCarousel"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TestMessageDialog
Mount: data-component="TestMessageDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### Textarea
Mount: data-component="Textarea"
Category: core
Props: class: string = "", id: string = "", name: string = "", label: string = "Message", value: string = "", placeholder: string = "", rows: number = 5, help: string = "", error: string = "", required: boolean = false, disabled: boolean = false
Slots: none
Events: none

### TextInput
Mount: data-component="TextInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Text", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### TextLink
Mount: data-component="TextLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### TextSkeleton
Mount: data-component="TextSkeleton"
Category: feedback
Props: label: string = "Text", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### theme-toggle
Mount: data-component="theme-toggle"
Category: core
Props: label: string = "Toggle theme", class: string = ""
Slots: default
Events: none

### ThemeColorPicker
Mount: data-component="ThemeColorPicker"
Category: forms
Props: label: string = "ThemeColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ThemeSwitcher
Mount: data-component="ThemeSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TimeInput
Mount: data-component="TimeInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Time", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### Timeline
Mount: data-component="Timeline"
Category: visualization
Props: class: string = "", title: string = "Timeline"
Slots: default
Events: none

### TimelineChart
Mount: data-component="TimelineChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### TimelineItem
Mount: data-component="TimelineItem"
Category: content
Props: class: string = "", title: string = "Event", date: string = "", description: string = "", status: string = "default"
Slots: none
Events: none

### TimeoutInput
Mount: data-component="TimeoutInput"
Category: forms
Props: label: string = "Timeout", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TimePicker
Mount: data-component="TimePicker"
Category: forms
Props: id: string = "time-picker", name: string = "time", label: string = "Time", value: string = "", min: string = "", max: string = "", step: number = 60, required: boolean = false, disabled: boolean = false, class: string = ""
Slots: none
Events: none

### TimeRangePicker
Mount: data-component="TimeRangePicker"
Category: forms
Props: label: string = "TimeRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TimezoneAwareTimePicker
Mount: data-component="TimezoneAwareTimePicker"
Category: forms
Props: label: string = "TimezoneAwareTime", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TimezoneSelector
Mount: data-component="TimezoneSelector"
Category: forms
Props: class: string = "", id: string = "timezone", name: string = "timezone", label: string = "Timezone"
Slots: none
Events: none

### Toast
Mount: data-component="Toast"
Category: core
Props: class: string = "", title: string = "Saved", description: string = "", variant: string = "success", duration: number = 5000
Slots: none
Events: click

### ToastAction
Mount: data-component="ToastAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ToastHost
Mount: data-component="ToastHost"
Category: core
Props: class: string = ""
Slots: none
Events: click

### ToastIcon
Mount: data-component="ToastIcon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ToastProgress
Mount: data-component="ToastProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### Toggle
Mount: data-component="Toggle"
Category: forms
Props: label: string = "", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ToggleGroup
Mount: data-component="ToggleGroup"
Category: forms
Props: label: string = "Toggle", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TokenInput
Mount: data-component="TokenInput"
Category: forms
Props: label: string = "Token", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Tooltip
Mount: data-component="Tooltip"
Category: content
Props: class: string = "", text: string = "Helpful information", position: string = "top"
Slots: default
Events: none

### TotpVerificationForm
Mount: data-component="TotpVerificationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TranslatedText
Mount: data-component="TranslatedText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TreeTable
Mount: data-component="TreeTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### TrendIndicator
Mount: data-component="TrendIndicator"
Category: feedback
Props: label: string = "Trend", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### TruncatedText
Mount: data-component="TruncatedText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TrustBadgeList
Mount: data-component="TrustBadgeList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### Typography
Mount: data-component="Typography"
Category: core
Props: as: string = "p", variant: string = "body", align: string = "start", class: string = ""
Slots: default
Events: none

### UnavailableRegionState
Mount: data-component="UnavailableRegionState"
Category: feedback
Props: label: string = "UnavailableRegion", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### UnifiedTimelinePreview
Mount: data-component="UnifiedTimelinePreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### UnsavedChangesDialog
Mount: data-component="UnsavedChangesDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### UploadItem
Mount: data-component="UploadItem"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### UploadPreview
Mount: data-component="UploadPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### UploadProgress
Mount: data-component="UploadProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### UptimeChart
Mount: data-component="UptimeChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### UptimeMetric
Mount: data-component="UptimeMetric"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### UrlInput
Mount: data-component="UrlInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Url", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### UsagePricingTable
Mount: data-component="UsagePricingTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### UseCaseSelector
Mount: data-component="UseCaseSelector"
Category: forms
Props: label: string = "UseCase", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### UserCard
Mount: data-component="UserCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### UsernameInput
Mount: data-component="UsernameInput"
Category: forms
Props: label: string = "Username", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ValueCard
Mount: data-component="ValueCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ValuesGrid
Mount: data-component="ValuesGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### VerificationCodeInput
Mount: data-component="VerificationCodeInput"
Category: forms
Props: label: string = "VerificationCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### VerifiedBadge
Mount: data-component="VerifiedBadge"
Category: feedback
Props: label: string = "Verified", variant: string = "default", class: string = ""
Slots: default
Events: none

### VersionSelector
Mount: data-component="VersionSelector"
Category: forms
Props: label: string = "Version", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### VerticalTabs
Mount: data-component="VerticalTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### VideoCard
Mount: data-component="VideoCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### VideoPreviewDialog
Mount: data-component="VideoPreviewDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### VideoUpload
Mount: data-component="VideoUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### VirtualizedTable
Mount: data-component="VirtualizedTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### VisionSection
Mount: data-component="VisionSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### VisuallyHidden
Mount: data-component="VisuallyHidden"
Category: core
Props: className: string = ""
Slots: default
Events: none

### VoiceScriptComposer
Mount: data-component="VoiceScriptComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### VoiceScriptEditor
Mount: data-component="VoiceScriptEditor"
Category: forms
Props: label: string = "VoiceScript", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### VolumeInput
Mount: data-component="VolumeInput"
Category: forms
Props: label: string = "Volume", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### VolumeSlider
Mount: data-component="VolumeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WarningCard
Mount: data-component="WarningCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### WebhookEventCard
Mount: data-component="WebhookEventCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WebhookFlowDiagram
Mount: data-component="WebhookFlowDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### WebhookPayloadViewer
Mount: data-component="WebhookPayloadViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WebhookUrlInput
Mount: data-component="WebhookUrlInput"
Category: forms
Props: label: string = "WebhookUrl", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### WebinarCard
Mount: data-component="WebinarCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WebinarRegistrationForm
Mount: data-component="WebinarRegistrationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Well
Mount: data-component="Well"
Category: core
Props: class: string = ""
Slots: default
Events: none

### WhatsAppComposer
Mount: data-component="WhatsAppComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WhatsAppNumberInput
Mount: data-component="WhatsAppNumberInput"
Category: forms
Props: label: string = "WhatsAppNumber", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### WhatsAppTemplateEditor
Mount: data-component="WhatsAppTemplateEditor"
Category: forms
Props: label: string = "WhatsAppTemplate", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### WideContainer
Mount: data-component="WideContainer"
Category: core
Props: class: string = ""
Slots: default
Events: none

### Wizard
Mount: data-component="Wizard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WizardHeader
Mount: data-component="WizardHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### WizardNavigation
Mount: data-component="WizardNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### WorkflowCanvasPreview
Mount: data-component="WorkflowCanvasPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WorkflowProgress
Mount: data-component="WorkflowProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### WorkspaceCard
Mount: data-component="WorkspaceCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### WorkspaceSelector
Mount: data-component="WorkspaceSelector"
Category: forms
Props: label: string = "Workspace", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### WorkspaceSwitcher
Mount: data-component="WorkspaceSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### YearPicker
Mount: data-component="YearPicker"
Category: forms
Props: label: string = "Year", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ZoomSlider
Mount: data-component="ZoomSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

# UI component catalog

The installed @wrnexus/ui release contains 902 documented components. Every mount name, prop type, required/default status, slot, and event is included below and in llms-full.txt.

### AcceptAllCookiesButton
Mount: data-component="AcceptAllCookiesButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### AccessibleAccordion
Mount: data-component="AccessibleAccordion"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleCarousel
Mount: data-component="AccessibleCarousel"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleChartSummary
Mount: data-component="AccessibleChartSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleDialog
Mount: data-component="AccessibleDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### AccessibleErrorSummary
Mount: data-component="AccessibleErrorSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleIcon
Mount: data-component="AccessibleIcon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleMenu
Mount: data-component="AccessibleMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### AccessibleTabs
Mount: data-component="AccessibleTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AccessibleTooltip
Mount: data-component="AccessibleTooltip"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Accordion
Mount: data-component="Accordion"
Category: content
Props: class: string = "", title: string = "Question", open: boolean = false
Slots: default
Events: click

### AccountMenu
Mount: data-component="AccountMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### AccountStatusBanner
Mount: data-component="AccountStatusBanner"
Category: feedback
Props: label: string = "AccountStatus", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ActionMenu
Mount: data-component="ActionMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ActiveFilterList
Mount: data-component="ActiveFilterList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ActivityList
Mount: data-component="ActivityList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### AddOnCard
Mount: data-component="AddOnCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AddressInput
Mount: data-component="AddressInput"
Category: forms
Props: label: string = "Address", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AddressPreview
Mount: data-component="AddressPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AdvancedFilterBuilder
Mount: data-component="AdvancedFilterBuilder"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### alert
Mount: data-component="alert"
Category: core
Props: class: string = "", title: string = "Notice", description: string = "", variant: string = "info", dismissible: boolean = false
Slots: default
Events: click

### AlertDialog
Mount: data-component="AlertDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### AmountInput
Mount: data-component="AmountInput"
Category: forms
Props: label: string = "Amount", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AnalyticsDashboardPreview
Mount: data-component="AnalyticsDashboardPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AnchorNavigation
Mount: data-component="AnchorNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### AnnouncementBar
Mount: data-component="AnnouncementBar"
Category: core
Props: class: string = "", badge: string = "New", message: string = "WrNexus Organizations is now available.", description: string = "Build secure multi-tenant applications with teams, roles, domains, and enterprise SSO.", href: string = "/organizations", actionLabel: string = "Explore organizations", ariaLabel: string = "Announcement", badgeIcon: string = "icon-[lucide--sparkles]", actionIcon: string = "icon-[lucide--arrow-right]", dismissLabel: string = "Dismiss announcement", showBadge: boolean = true, showDescription: boolean = true, showAction: boolean = true, dismissible: boolean = true
Slots: none
Events: click

### ApartmentInput
Mount: data-component="ApartmentInput"
Category: forms
Props: label: string = "Apartment", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ApiAuthenticationNotice
Mount: data-component="ApiAuthenticationNotice"
Category: feedback
Props: label: string = "ApiAuthentication", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ApiEndpointCard
Mount: data-component="ApiEndpointCard"
Category: content
Props: class: string = "", method: string = "GET", path: string = "/api/example", eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "View endpoint"
Slots: default
Events: none

### ApiErrorExample
Mount: data-component="ApiErrorExample"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiHeaderTable
Mount: data-component="ApiHeaderTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ApiKeyCreateDialog
Mount: data-component="ApiKeyCreateDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ApiKeyDisplay
Mount: data-component="ApiKeyDisplay"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiKeyInput
Mount: data-component="ApiKeyInput"
Category: forms
Props: label: string = "ApiKey", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ApiMethodBadge
Mount: data-component="ApiMethodBadge"
Category: feedback
Props: label: string = "ApiMethod", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ApiParameterTable
Mount: data-component="ApiParameterTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ApiRateLimitNotice
Mount: data-component="ApiRateLimitNotice"
Category: feedback
Props: label: string = "ApiRateLimit", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ApiRequestExample
Mount: data-component="ApiRequestExample"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiResponseExample
Mount: data-component="ApiResponseExample"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiSchemaTable
Mount: data-component="ApiSchemaTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ApiSchemaViewer
Mount: data-component="ApiSchemaViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ApiVersionBadge
Mount: data-component="ApiVersionBadge"
Category: feedback
Props: label: string = "ApiVersion", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### AppHeader
Mount: data-component="AppHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ArchitectureSection
Mount: data-component="ArchitectureSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### AreaChart
Mount: data-component="AreaChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ArticleHero
Mount: data-component="ArticleHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ArticleLayout
Mount: data-component="ArticleLayout"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ArticleNewsletterCTA
Mount: data-component="ArticleNewsletterCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ArticlePageShell
Mount: data-component="ArticlePageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ArticleShareActions
Mount: data-component="ArticleShareActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### AspectRatio
Mount: data-component="AspectRatio"
Category: core
Props: class: string = ""
Slots: default
Events: none

### AssetCard
Mount: data-component="AssetCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### AttachmentPicker
Mount: data-component="AttachmentPicker"
Category: forms
Props: label: string = "Attachment", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AttachmentUpload
Mount: data-component="AttachmentUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AudioUpload
Mount: data-component="AudioUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AuditLogPreview
Mount: data-component="AuditLogPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AuditTable
Mount: data-component="AuditTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### AuthenticatorCodeInput
Mount: data-component="AuthenticatorCodeInput"
Category: forms
Props: label: string = "AuthenticatorCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AuthorAvatar
Mount: data-component="AuthorAvatar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AuthorCard
Mount: data-component="AuthorCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AuthorizedApplicationCard
Mount: data-component="AuthorizedApplicationCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AutoGrid
Mount: data-component="AutoGrid"
Category: data
Props: class: string = ""
Slots: default
Events: none

### AutomationExampleCard
Mount: data-component="AutomationExampleCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### AvailabilityCalendar
Mount: data-component="AvailabilityCalendar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Avatar
Mount: data-component="Avatar"
Category: content
Props: class: string = "", src: string = "", alt: string = "", initials: string = "WR", size: string = "md"
Slots: none
Events: none

### AvatarGroup
Mount: data-component="AvatarGroup"
Category: forms
Props: label: string = "Avatar", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### AvatarUpload
Mount: data-component="AvatarUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BackButton
Mount: data-component="BackButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### BackToTop
Mount: data-component="BackToTop"
Category: core
Props: class: string = "", label: string = "Back to top", assistiveLabel: string = "Return to the top of the page", threshold: number = 500
Slots: none
Events: click

### Badge
Mount: data-component="Badge"
Category: feedback
Props: class: string = "", label: string = "", variant: string = "neutral", size: string = "md"
Slots: default
Events: none

### BankTransferDetails
Mount: data-component="BankTransferDetails"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Banner
Mount: data-component="Banner"
Category: feedback
Props: class: string = "", text: string = "Announcement", href: string = "", actionLabel: string = "Learn more", variant: string = "brand"
Slots: none
Events: none

### BarChart
Mount: data-component="BarChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### BetaBadge
Mount: data-component="BetaBadge"
Category: feedback
Props: label: string = "Beta", variant: string = "default", class: string = ""
Slots: default
Events: none

### BillingAddressForm
Mount: data-component="BillingAddressForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BillingExample
Mount: data-component="BillingExample"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BillingPeriodToggle
Mount: data-component="BillingPeriodToggle"
Category: forms
Props: label: string = "BillingPeriod", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BlackoutDatePicker
Mount: data-component="BlackoutDatePicker"
Category: forms
Props: label: string = "BlackoutDate", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BlogCard
Mount: data-component="BlogCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BlogGrid
Mount: data-component="BlogGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### BlogList
Mount: data-component="BlogList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### BlogSearch
Mount: data-component="BlogSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BodyText
Mount: data-component="BodyText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### BorderRadiusPicker
Mount: data-component="BorderRadiusPicker"
Category: forms
Props: label: string = "BorderRadius", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BottomNavigation
Mount: data-component="BottomNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### BrandColorPicker
Mount: data-component="BrandColorPicker"
Category: forms
Props: label: string = "BrandColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BrandSelector
Mount: data-component="BrandSelector"
Category: forms
Props: label: string = "Brand", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Breadcrumbs
Mount: data-component="Breadcrumbs"
Category: core
Props: class: string = "", items: string = [], centered: boolean = false, compact: boolean = false, showHome: boolean = true, homeLabel: string = "Home", homeHref: string = "/"
Slots: none
Events: none

### BrowserFrame
Mount: data-component="BrowserFrame"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### BudgetRangeSlider
Mount: data-component="BudgetRangeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### BudgetSelector
Mount: data-component="BudgetSelector"
Category: forms
Props: label: string = "Budget", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### BusinessHoursPicker
Mount: data-component="BusinessHoursPicker"
Category: forms
Props: label: string = "BusinessHours", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Button
Mount: data-component="Button"
Category: actions
Props: label: string = "Button", type: string = "button", variant: string = "primary", size: string = "md", disabled: boolean = false, loading: boolean = false, icon: string = "", iconPosition: string = "start", fullWidth: boolean = false, className: string = ""
Slots: default
Events: none

### ButtonGroup
Mount: data-component="ButtonGroup"
Category: forms
Props: label: string = "Button", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ButtonSelector
Mount: data-component="ButtonSelector"
Category: forms
Props: label: string = "Button", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Calendar
Mount: data-component="Calendar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CalendarGrid
Mount: data-component="CalendarGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CalendarHeader
Mount: data-component="CalendarHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CalendarNavigation
Mount: data-component="CalendarNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CallbackUrlInput
Mount: data-component="CallbackUrlInput"
Category: forms
Props: label: string = "CallbackUrl", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CampaignCard
Mount: data-component="CampaignCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", icon: string = "icon-[lucide--send]", class: string = ""
Slots: default
Events: none

### CampaignPerformancePreview
Mount: data-component="CampaignPerformancePreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CampaignProgress
Mount: data-component="CampaignProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### CapabilityGrid
Mount: data-component="CapabilityGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CaptchaField
Mount: data-component="CaptchaField"
Category: forms
Props: label: string = "Captcha", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### card
Mount: data-component="card"
Category: core
Props: variant: string = "default", padding: string = "md", interactive: boolean = false, className: string = ""
Slots: default
Events: none

### CardPaymentForm
Mount: data-component="CardPaymentForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CardSelector
Mount: data-component="CardSelector"
Category: forms
Props: label: string = "Card", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CardSkeleton
Mount: data-component="CardSkeleton"
Category: feedback
Props: label: string = "Card", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### CareerApplicationForm
Mount: data-component="CareerApplicationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CareerBenefitsGrid
Mount: data-component="CareerBenefitsGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### Carousel
Mount: data-component="Carousel"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CaseStudyCard
Mount: data-component="CaseStudyCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CaseStudyHero
Mount: data-component="CaseStudyHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CaseStudyPreview
Mount: data-component="CaseStudyPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CenteredCTA
Mount: data-component="CenteredCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### CenteredHero
Mount: data-component="CenteredHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CenteredSectionHeader
Mount: data-component="CenteredSectionHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CertificateUpload
Mount: data-component="CertificateUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CertificationBadge
Mount: data-component="CertificationBadge"
Category: feedback
Props: label: string = "Certification", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChallengeSection
Mount: data-component="ChallengeSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ChannelBadge
Mount: data-component="ChannelBadge"
Category: feedback
Props: label: string = "Channel", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChannelCard
Mount: data-component="ChannelCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", icon: string = "", actionLabel: string = "", class: string = ""
Slots: default
Events: none

### ChannelComparisonChart
Mount: data-component="ChannelComparisonChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ChannelComparisonTable
Mount: data-component="ChannelComparisonTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ChannelFallbackDiagram
Mount: data-component="ChannelFallbackDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ChannelFlow
Mount: data-component="ChannelFlow"
Category: visualization
Props: class: string = ""
Slots: none
Events: none

### ChannelIcon
Mount: data-component="ChannelIcon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ChannelRateTable
Mount: data-component="ChannelRateTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ChannelSelector
Mount: data-component="ChannelSelector"
Category: forms
Props: label: string = "Channel", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CharacterCounter
Mount: data-component="CharacterCounter"
Category: feedback
Props: label: string = "Character", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChartEmptyState
Mount: data-component="ChartEmptyState"
Category: feedback
Props: label: string = "ChartEmpty", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChartTooltip
Mount: data-component="ChartTooltip"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Checkbox
Mount: data-component="Checkbox"
Category: core
Props: class: string = "", id: string = "", name: string = "", label: string = "Checkbox", description: string = "", checked: boolean = false, disabled: boolean = false
Slots: none
Events: none

### CheckboxGroup
Mount: data-component="CheckboxGroup"
Category: forms
Props: label: string = "Checkbox", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Checklist
Mount: data-component="Checklist"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ChecklistProgress
Mount: data-component="ChecklistProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### Chip
Mount: data-component="Chip"
Category: core
Props: label: string = "Chip", variant: string = "default", class: string = ""
Slots: default
Events: none

### ChipInput
Mount: data-component="ChipInput"
Category: forms
Props: label: string = "Chip", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CircularProgress
Mount: data-component="CircularProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### CitySelector
Mount: data-component="CitySelector"
Category: forms
Props: label: string = "City", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ClearFiltersButton
Mount: data-component="ClearFiltersButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ClickableCard
Mount: data-component="ClickableCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### CloseButton
Mount: data-component="CloseButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### Cluster
Mount: data-component="Cluster"
Category: core
Props: class: string = ""
Slots: default
Events: none

### Code
Mount: data-component="Code"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CodeBlock
Mount: data-component="CodeBlock"
Category: content
Props: language: string = "text", title: string = "", code: string = "", copyable: boolean = true, class: string = ""
Slots: none
Events: none

### CodeCopyButton
Mount: data-component="CodeCopyButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### CodeHeader
Mount: data-component="CodeHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CodeInput
Mount: data-component="CodeInput"
Category: forms
Props: label: string = "Code", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CodeLanguageBadge
Mount: data-component="CodeLanguageBadge"
Category: feedback
Props: label: string = "CodeLanguage", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### CodeTabs
Mount: data-component="CodeTabs"
Category: content
Props: class: string = ""
Slots: default
Events: none

### CodeText
Mount: data-component="CodeText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CohortChart
Mount: data-component="CohortChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ColorGrid
Mount: data-component="ColorGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ColorHexInput
Mount: data-component="ColorHexInput"
Category: forms
Props: label: string = "ColorHex", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ColorPicker
Mount: data-component="ColorPicker"
Category: forms
Props: label: string = "Color", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ColorSelector
Mount: data-component="ColorSelector"
Category: forms
Props: label: string = "Color", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ColorSwatch
Mount: data-component="ColorSwatch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Combobox
Mount: data-component="Combobox"
Category: core
Props: id: string = "combobox", name: string = "", label: string = "Choose an option", placeholder: string = "Search options", options: string = [], required: boolean = false, disabled: boolean = false, class: string = ""
Slots: none
Events: none

### ComingSoonBadge
Mount: data-component="ComingSoonBadge"
Category: feedback
Props: label: string = "ComingSoon", variant: string = "default", class: string = ""
Slots: default
Events: none

### ComingSoonState
Mount: data-component="ComingSoonState"
Category: feedback
Props: label: string = "ComingSoon", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### CommandBlock
Mount: data-component="CommandBlock"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CommandMenu
Mount: data-component="CommandMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### CommandSearchInput
Mount: data-component="CommandSearchInput"
Category: forms
Props: label: string = "CommandSearch", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CompanyHero
Mount: data-component="CompanyHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CompanyNameInput
Mount: data-component="CompanyNameInput"
Category: forms
Props: label: string = "CompanyName", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CompanyPageShell
Mount: data-component="CompanyPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### CompanySizeSelector
Mount: data-component="CompanySizeSelector"
Category: forms
Props: label: string = "CompanySize", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ComparisonDateRangePicker
Mount: data-component="ComparisonDateRangePicker"
Category: forms
Props: label: string = "ComparisonDateRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ComparisonTable
Mount: data-component="ComparisonTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CompletionMeter
Mount: data-component="CompletionMeter"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ComplianceBadgeList
Mount: data-component="ComplianceBadgeList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ComplianceProgramCard
Mount: data-component="ComplianceProgramCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ConfirmationDialog
Mount: data-component="ConfirmationDialog"
Category: overlays
Props: title: string = "Confirm action", description: string = "Are you sure you want to continue?", confirmLabel: string = "Confirm", cancelLabel: string = "Cancel", danger: boolean = false, open: boolean = false, class: string = ""
Slots: confirm
Events: click

### ConfirmPasswordInput
Mount: data-component="ConfirmPasswordInput"
Category: forms
Props: label: string = "ConfirmPassword", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ConnectedAccountCard
Mount: data-component="ConnectedAccountCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ConnectionCard
Mount: data-component="ConnectionCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### ConsentTimelinePreview
Mount: data-component="ConsentTimelinePreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ContactCard
Mount: data-component="ContactCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### ContactCTA
Mount: data-component="ContactCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ContactForm
Mount: data-component="ContactForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ContactHero
Mount: data-component="ContactHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ContactPageShell
Mount: data-component="ContactPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ContactSalesBanner
Mount: data-component="ContactSalesBanner"
Category: core
Props: class: string = "", eyebrow: string = "Enterprise identity", title: string = "Ready to secure your next application?", description: string = "", primaryLabel: string = "Contact sales", primaryHref: string = "/contact", secondaryLabel: string = "Start free", secondaryHref: string = "/sign-up", iconClass: string = "icon-[lucide--messages-square]", centered: boolean = false, compact: boolean = false, points: string = [], trustPoints: string = []
Slots: none
Events: none

### ContactSalesButton
Mount: data-component="ContactSalesButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ContactSalesForm
Mount: data-component="ContactSalesForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Container
Mount: data-component="Container"
Category: core
Props: size: string = "default", className: string = ""
Slots: default
Events: none

### ContextMenu
Mount: data-component="ContextMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ContextSwitcher
Mount: data-component="ContextSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ConversationList
Mount: data-component="ConversationList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ConversationPreview
Mount: data-component="ConversationPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ConversionChart
Mount: data-component="ConversionChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### CookieBanner
Mount: data-component="CookieBanner"
Category: feedback
Props: class: string = "", title: string = "We use cookies", description: string = "We use essential cookies and optional analytics to improve your experience.", privacyHref: string = "/privacy"
Slots: none
Events: click

### CookieCategoryList
Mount: data-component="CookieCategoryList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CookieCategoryToggle
Mount: data-component="CookieCategoryToggle"
Category: forms
Props: label: string = "CookieCategory", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CookieConsent
Mount: data-component="CookieConsent"
Category: core
Props: class: string = ""
Slots: none
Events: click, change

### CookieDetailsTable
Mount: data-component="CookieDetailsTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CookiePreferencesDialog
Mount: data-component="CookiePreferencesDialog"
Category: overlays
Props: title: string = "Cookie preferences", description: string = "Choose which optional cookies you allow. Essential cookies are always enabled.", saveLabel: string = "Save preferences", acceptLabel: string = "Accept all", rejectLabel: string = "Reject optional", open: boolean = false, class: string = ""
Slots: none
Events: change, click

### CookieTable
Mount: data-component="CookieTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### CoordinatesInput
Mount: data-component="CoordinatesInput"
Category: forms
Props: label: string = "Coordinates", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CoordinatesPicker
Mount: data-component="CoordinatesPicker"
Category: forms
Props: label: string = "Coordinates", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CopyButton
Mount: data-component="CopyButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### CopyCodeButton
Mount: data-component="CopyCodeButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### CopySecretField
Mount: data-component="CopySecretField"
Category: forms
Props: label: string = "CopySecret", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CostBreakdownChart
Mount: data-component="CostBreakdownChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### CostSummary
Mount: data-component="CostSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Counter
Mount: data-component="Counter"
Category: feedback
Props: label: string = "Status", variant: string = "default", class: string = ""
Slots: default
Events: none

### CountryCallingCodeInput
Mount: data-component="CountryCallingCodeInput"
Category: forms
Props: label: string = "CountryCallingCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CountryCallingCodeSelector
Mount: data-component="CountryCallingCodeSelector"
Category: forms
Props: label: string = "CountryCallingCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CountrySelector
Mount: data-component="CountrySelector"
Category: forms
Props: label: string = "Country", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CouponInput
Mount: data-component="CouponInput"
Category: forms
Props: label: string = "Coupon", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CreditAmountInput
Mount: data-component="CreditAmountInput"
Category: forms
Props: label: string = "CreditAmount", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CronBuilder
Mount: data-component="CronBuilder"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CronInput
Mount: data-component="CronInput"
Category: forms
Props: label: string = "Cron", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CsvUpload
Mount: data-component="CsvUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CTASection
Mount: data-component="CTASection"
Category: layout
Props: class: string = "", eyebrow: string = "Ready?", title: string = "Start building today", description: string = "", primaryLabel: string = "Get started", primaryHref: string = "#", secondaryLabel: string = "Contact sales", secondaryHref: string = "#"
Slots: none
Events: none

### CurrencyInput
Mount: data-component="CurrencyInput"
Category: forms
Props: label: string = "Currency", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CurrencySelector
Mount: data-component="CurrencySelector"
Category: forms
Props: label: string = "Currency", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CurrentPasswordInput
Mount: data-component="CurrentPasswordInput"
Category: forms
Props: label: string = "CurrentPassword", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### CustomerLogo
Mount: data-component="CustomerLogo"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### CustomerStoryCard
Mount: data-component="CustomerStoryCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DangerButton
Mount: data-component="DangerButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DataProtectionCard
Mount: data-component="DataProtectionCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DataRetentionTable
Mount: data-component="DataRetentionTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### DataTable
Mount: data-component="DataTable"
Category: data
Props: caption: string = "Data table", columns: string = [], rows: string = [], emptyMessage: string = "No data available.", striped: boolean = false, class: string = ""
Slots: none
Events: none

### DateInput
Mount: data-component="DateInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Date", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### DatePicker
Mount: data-component="DatePicker"
Category: forms
Props: class: string = "", id: string = "date", name: string = "date", label: string = "Date", value: string = "", min: string = "", max: string = "", required: boolean = false
Slots: none
Events: none

### DateRangeCalendar
Mount: data-component="DateRangeCalendar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DateRangePicker
Mount: data-component="DateRangePicker"
Category: forms
Props: class: string = "", label: string = "Date range", startName: string = "startDate", endName: string = "endDate"
Slots: none
Events: none

### DateRangeSlider
Mount: data-component="DateRangeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DateTimeInput
Mount: data-component="DateTimeInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "DateTime", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### DateTimePicker
Mount: data-component="DateTimePicker"
Category: forms
Props: id: string = "datetime-picker", name: string = "datetime", label: string = "Date and time", value: string = "", min: string = "", max: string = "", required: boolean = false, disabled: boolean = false, class: string = ""
Slots: none
Events: none

### DateTimeRangePicker
Mount: data-component="DateTimeRangePicker"
Category: forms
Props: label: string = "DateTimeRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DecimalInput
Mount: data-component="DecimalInput"
Category: forms
Props: label: string = "Decimal", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DefinitionList
Mount: data-component="DefinitionList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### DeleteConfirmationDialog
Mount: data-component="DeleteConfirmationDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### DeliveryPreview
Mount: data-component="DeliveryPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DeliveryStatusChart
Mount: data-component="DeliveryStatusChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### DeliveryStatusTimeline
Mount: data-component="DeliveryStatusTimeline"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### DemoRequestForm
Mount: data-component="DemoRequestForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DepartmentInput
Mount: data-component="DepartmentInput"
Category: forms
Props: label: string = "Department", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DeprecatedFeatureAlert
Mount: data-component="DeprecatedFeatureAlert"
Category: feedback
Props: label: string = "DeprecatedFeature", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### DescriptionList
Mount: data-component="DescriptionList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### DesktopNavigation
Mount: data-component="DesktopNavigation"
Category: layout
Props: label: string = "Primary navigation", items: string = [], class: string = ""
Slots: none
Events: none

### DeveloperCTA
Mount: data-component="DeveloperCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DeveloperHero
Mount: data-component="DeveloperHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### DeveloperPageShell
Mount: data-component="DeveloperPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### DeveloperSearch
Mount: data-component="DeveloperSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DevelopersMegaMenu
Mount: data-component="DevelopersMegaMenu"
Category: core
Props: class: string = ""
Slots: none
Events: none

### DevelopersMenu
Mount: data-component="DevelopersMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### DeviceCard
Mount: data-component="DeviceCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### disclosure
Mount: data-component="disclosure"
Category: core
Props: summary: string = "Details", class: string = ""
Slots: default
Events: none

### DiscountInput
Mount: data-component="DiscountInput"
Category: forms
Props: label: string = "Discount", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DisplayHeading
Mount: data-component="DisplayHeading"
Category: core
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### DisplayNameInput
Mount: data-component="DisplayNameInput"
Category: forms
Props: label: string = "DisplayName", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Divider
Mount: data-component="Divider"
Category: core
Props: className: string = ""
Slots: default
Events: none

### DocumentPreview
Mount: data-component="DocumentPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DocumentUpload
Mount: data-component="DocumentUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DomainInput
Mount: data-component="DomainInput"
Category: forms
Props: label: string = "Domain", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DoNotSellLink
Mount: data-component="DoNotSellLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DonutChart
Mount: data-component="DonutChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### DownloadAction
Mount: data-component="DownloadAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DownloadButton
Mount: data-component="DownloadButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DownloadGateForm
Mount: data-component="DownloadGateForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### DownloadPolicyButton
Mount: data-component="DownloadPolicyButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### DownloadResourceForm
Mount: data-component="DownloadResourceForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Drawer
Mount: data-component="Drawer"
Category: core
Props: class: string = "", title: string = "Panel", open: boolean = false, side: string = "right"
Slots: default
Events: click

### DropdownMenu
Mount: data-component="DropdownMenu"
Category: overlays
Props: class: string = "", label: string = "Menu"
Slots: default
Events: click

### DropdownNavigation
Mount: data-component="DropdownNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### DurationInput
Mount: data-component="DurationInput"
Category: forms
Props: label: string = "Duration", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DurationPicker
Mount: data-component="DurationPicker"
Category: forms
Props: label: string = "Duration", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### DurationSlider
Mount: data-component="DurationSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ElevatedCard
Mount: data-component="ElevatedCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### EmailBodyEditor
Mount: data-component="EmailBodyEditor"
Category: forms
Props: label: string = "EmailBody", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### EmailComposer
Mount: data-component="EmailComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### EmailInput
Mount: data-component="EmailInput"
Category: forms
Props: class: string = "", id: string = "email", name: string = "email", label: string = "Email", value: string = "", placeholder: string = "you@company.com", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = "email"
Slots: none
Events: none

### EmojiPicker
Mount: data-component="EmojiPicker"
Category: forms
Props: label: string = "Emoji", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### EmptyState
Mount: data-component="EmptyState"
Category: feedback
Props: class: string = "", eyebrow: string = "", title: string = "Nothing found", description: string = "", iconClass: string = "icon-[lucide--inbox]", primaryLabel: string = "", primaryHref: string = "", secondaryLabel: string = "", secondaryHref: string = "", compact: boolean = false, centered: boolean = true, suggestions: string = []
Slots: none
Events: none

### EncryptionDiagram
Mount: data-component="EncryptionDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### EnterpriseCTA
Mount: data-component="EnterpriseCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### EnterpriseHero
Mount: data-component="EnterpriseHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### EnterprisePricingCard
Mount: data-component="EnterprisePricingCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### EnvironmentSelector
Mount: data-component="EnvironmentSelector"
Category: forms
Props: label: string = "Environment", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### EnvironmentSwitcher
Mount: data-component="EnvironmentSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ErrorActions
Mount: data-component="ErrorActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ErrorCard
Mount: data-component="ErrorCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### ErrorCode
Mount: data-component="ErrorCode"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ErrorHero
Mount: data-component="ErrorHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ErrorIllustration
Mount: data-component="ErrorIllustration"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ErrorPage
Mount: data-component="ErrorPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ErrorPageShell
Mount: data-component="ErrorPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ErrorState
Mount: data-component="ErrorState"
Category: feedback
Props: class: string = "", type: string = "error", eyebrow: string = "", title: string = "Something went wrong", description: string = "", errorCode: string = "", iconClass: string = "", primaryLabel: string = "", primaryHref: string = "", secondaryLabel: string = "", secondaryHref: string = "", retryLabel: string = "", retryAction: string = "", centered: boolean = true, compact: boolean = false, details: string = []
Slots: none
Events: click

### ErrorSupportLink
Mount: data-component="ErrorSupportLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### EstimatedCostSummary
Mount: data-component="EstimatedCostSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### EventTable
Mount: data-component="EventTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ExpandableText
Mount: data-component="ExpandableText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ExpiryDateTimePicker
Mount: data-component="ExpiryDateTimePicker"
Category: forms
Props: label: string = "ExpiryDateTime", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ExportProgress
Mount: data-component="ExportProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ExternalLink
Mount: data-component="ExternalLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### EyebrowText
Mount: data-component="EyebrowText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### FactorCard
Mount: data-component="FactorCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FallbackRouteBuilder
Mount: data-component="FallbackRouteBuilder"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FallbackRouteDiagram
Mount: data-component="FallbackRouteDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### FAQ
Mount: data-component="FAQ"
Category: core
Props: class: string = "", eyebrow: string = "", title: string = "Frequently asked questions", description: string = "", items: string = [], centered: boolean = true, allowMultiple: boolean = false, defaultOpenIndex: number = 0
Slots: none
Events: none

### FAQAccordion
Mount: data-component="FAQAccordion"
Category: core
Props: class: string = "", eyebrow: string = "", title: string = "Frequently asked questions", description: string = "", items: string = [], centered: boolean = true, compact: boolean = false, allowMultiple: boolean = false, defaultOpenIndex: number = 0, showContact: boolean = false, contactText: string = "Still have questions?", contactLabel: string = "Contact support", contactHref: string = "/support"
Slots: none
Events: click

### FaviconUpload
Mount: data-component="FaviconUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FaxInput
Mount: data-component="FaxInput"
Category: forms
Props: label: string = "Fax", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FeatureCard
Mount: data-component="FeatureCard"
Category: content
Props: class: string = "", icon: string = "icon-[lucide--sparkles]", title: string = "Feature", description: string = "", href: string = ""
Slots: none
Events: none

### FeatureChecklist
Mount: data-component="FeatureChecklist"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FeatureComparisonTable
Mount: data-component="FeatureComparisonTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FeaturedBlogCard
Mount: data-component="FeaturedBlogCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FeatureDetailsPanel
Mount: data-component="FeatureDetailsPanel"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### FeatureGrid
Mount: data-component="FeatureGrid"
Category: data
Props: columns: number = 3, className: string = ""
Slots: default
Events: none

### FeatureIconCard
Mount: data-component="FeatureIconCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FeatureList
Mount: data-component="FeatureList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FeatureTabs
Mount: data-component="FeatureTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FeatureTimeline
Mount: data-component="FeatureTimeline"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### FeatureUnavailableState
Mount: data-component="FeatureUnavailableState"
Category: feedback
Props: label: string = "FeatureUnavailable", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### FieldActions
Mount: data-component="FieldActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### file-upload
Mount: data-component="file-upload"
Category: core
Props: store: string = "public", endpoint: string = "/api/upload", accept: string = "", multiple: boolean = false, max: number = 0, label: string = "Drag files here or click to browse", class: string = ""
Slots: none
Events: none

### FileInput
Mount: data-component="FileInput"
Category: forms
Props: label: string = "File", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FileList
Mount: data-component="FileList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FileSizeInput
Mount: data-component="FileSizeInput"
Category: forms
Props: label: string = "FileSize", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FileSizeLabel
Mount: data-component="FileSizeLabel"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FileTypeBadge
Mount: data-component="FileTypeBadge"
Category: feedback
Props: label: string = "FileType", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### FileUpload
Mount: data-component="FileUpload"
Category: content
Props: class: string = "", id: string = "file", name: string = "file", label: string = "Upload file", accept: string = "", multiple: boolean = false, help: string = "Drag and drop or browse"
Slots: none
Events: none

### FilterableTable
Mount: data-component="FilterableTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FilterBar
Mount: data-component="FilterBar"
Category: core
Props: label: string = "Filters", clearLabel: string = "Clear filters", showClear: boolean = true, class: string = ""
Slots: default
Events: none

### FilterMenu
Mount: data-component="FilterMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### FilterSearchInput
Mount: data-component="FilterSearchInput"
Category: forms
Props: label: string = "FilterSearch", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FinalCTA
Mount: data-component="FinalCTA"
Category: actions
Props: label: string = "Get started", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### FirstNameInput
Mount: data-component="FirstNameInput"
Category: forms
Props: label: string = "FirstName", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Flex
Mount: data-component="Flex"
Category: core
Props: class: string = ""
Slots: default
Events: none

### FontPicker
Mount: data-component="FontPicker"
Category: forms
Props: label: string = "Font", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FontSizePicker
Mount: data-component="FontSizePicker"
Category: forms
Props: label: string = "FontSize", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FontWeightPicker
Mount: data-component="FontWeightPicker"
Category: forms
Props: label: string = "FontWeight", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FooterLanguageSwitcher
Mount: data-component="FooterLanguageSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### FooterStatusIndicator
Mount: data-component="FooterStatusIndicator"
Category: feedback
Props: label: string = "FooterStatus", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ForbiddenPage
Mount: data-component="ForbiddenPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ForbiddenState
Mount: data-component="ForbiddenState"
Category: feedback
Props: label: string = "Forbidden", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ForgotPasswordForm
Mount: data-component="ForgotPasswordForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Form
Mount: data-component="Form"
Category: content
Props: action: string = "", method: string = "post", name: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### FormActions
Mount: data-component="FormActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### FormAlert
Mount: data-component="FormAlert"
Category: feedback
Props: label: string = "Form", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### FormDialog
Mount: data-component="FormDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### FormError
Mount: data-component="FormError"
Category: core
Props: id: string = "", message: string = "", class: string = ""
Slots: default
Events: none

### FormErrorSummary
Mount: data-component="FormErrorSummary"
Category: content
Props: class: string = "", title: string = "Please fix the following", visible: boolean = true
Slots: default
Events: none

### FormField
Mount: data-component="FormField"
Category: forms
Props: class: string = "", label: string = "Field", help: string = "", error: string = "", required: boolean = false
Slots: default
Events: none

### FormGrid
Mount: data-component="FormGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FormGroup
Mount: data-component="FormGroup"
Category: forms
Props: label: string = "Form", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### FormHelpText
Mount: data-component="FormHelpText"
Category: content
Props: id: string = "", text: string = "", class: string = ""
Slots: default
Events: none

### FormLabel
Mount: data-component="FormLabel"
Category: content
Props: for: string = "", label: string = "Label", required: boolean = false, optional: boolean = false, class: string = ""
Slots: none
Events: none

### FormProgress
Mount: data-component="FormProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### FormRow
Mount: data-component="FormRow"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### FormSection
Mount: data-component="FormSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### FullBleed
Mount: data-component="FullBleed"
Category: core
Props: class: string = ""
Slots: default
Events: none

### FullscreenDialog
Mount: data-component="FullscreenDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### FunnelChart
Mount: data-component="FunnelChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### GeoChart
Mount: data-component="GeoChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### GeofenceEditor
Mount: data-component="GeofenceEditor"
Category: forms
Props: label: string = "Geofence", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### GhostButton
Mount: data-component="GhostButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### GlassCard
Mount: data-component="GlassCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### GlobalSearch
Mount: data-component="GlobalSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### GradientCTA
Mount: data-component="GradientCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### GradientPicker
Mount: data-component="GradientPicker"
Category: forms
Props: label: string = "Gradient", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### GradientStopEditor
Mount: data-component="GradientStopEditor"
Category: forms
Props: label: string = "GradientStop", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Grid
Mount: data-component="Grid"
Category: data
Props: gap: string = "4", className: string = ""
Slots: default
Events: none

### GuideCard
Mount: data-component="GuideCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### GuideChecklist
Mount: data-component="GuideChecklist"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### GuideDifficultyBadge
Mount: data-component="GuideDifficultyBadge"
Category: feedback
Props: label: string = "GuideDifficulty", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### GuideGrid
Mount: data-component="GuideGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### GuideStep
Mount: data-component="GuideStep"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Header
Mount: data-component="Header"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### HeaderActions
Mount: data-component="HeaderActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### HealthIndicator
Mount: data-component="HealthIndicator"
Category: feedback
Props: label: string = "Health", variant: string = "default", class: string = ""
Slots: default
Events: none

### Hero
Mount: data-component="Hero"
Category: layout
Props: class: string = "", eyebrow: string = "", title: string = "Build faster with WRNexusJS", highlight: string = "", description: string = "", primaryLabel: string = "Get started", primaryHref: string = "#", secondaryLabel: string = "Learn more", secondaryHref: string = "#", align: string = "center"
Slots: default
Events: none

### HeroActions
Mount: data-component="HeroActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### HeroCodePanel
Mount: data-component="HeroCodePanel"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### HeroGradientText
Mount: data-component="HeroGradientText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HeroPrimaryAction
Mount: data-component="HeroPrimaryAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### HeroProductPreview
Mount: data-component="HeroProductPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HeroSecondaryAction
Mount: data-component="HeroSecondaryAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### HeroTrustText
Mount: data-component="HeroTrustText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HexColorInput
Mount: data-component="HexColorInput"
Category: forms
Props: label: string = "HexColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HiddenField
Mount: data-component="HiddenField"
Category: forms
Props: label: string = "Hidden", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HighlightText
Mount: data-component="HighlightText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HolidayCalendar
Mount: data-component="HolidayCalendar"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### HostnameInput
Mount: data-component="HostnameInput"
Category: forms
Props: label: string = "Hostname", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HourPicker
Mount: data-component="HourPicker"
Category: forms
Props: label: string = "Hour", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HslColorInput
Mount: data-component="HslColorInput"
Category: forms
Props: label: string = "HslColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### hstack
Mount: data-component="hstack"
Category: core
Props: gap: string = "4", align: string = "center", class: string = ""
Slots: default
Events: none

### HtmlEditor
Mount: data-component="HtmlEditor"
Category: forms
Props: label: string = "Html", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### HumanApprovalStep
Mount: data-component="HumanApprovalStep"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Icon
Mount: data-component="Icon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### IconButton
Mount: data-component="IconButton"
Category: actions
Props: class: string = "", label: string = "Action", icon: string = "•", variant: string = "ghost", disabled: boolean = false
Slots: none
Events: none

### IconPicker
Mount: data-component="IconPicker"
Category: forms
Props: label: string = "Icon", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### IconSelector
Mount: data-component="IconSelector"
Category: forms
Props: label: string = "Icon", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### IdentifierInput
Mount: data-component="IdentifierInput"
Category: forms
Props: label: string = "Identifier", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Illustration
Mount: data-component="Illustration"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ImageCompressionPreview
Mount: data-component="ImageCompressionPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ImageEditor
Mount: data-component="ImageEditor"
Category: forms
Props: label: string = "Image", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ImagePreviewDialog
Mount: data-component="ImagePreviewDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ImageSelector
Mount: data-component="ImageSelector"
Category: forms
Props: label: string = "Image", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ImageUpload
Mount: data-component="ImageUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ImportProgress
Mount: data-component="ImportProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### IncidentAlert
Mount: data-component="IncidentAlert"
Category: feedback
Props: label: string = "Incident", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### IncidentBanner
Mount: data-component="IncidentBanner"
Category: feedback
Props: label: string = "Incident", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### IncidentCard
Mount: data-component="IncidentCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### IncidentList
Mount: data-component="IncidentList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### IncidentResponseFlow
Mount: data-component="IncidentResponseFlow"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### IncidentSeverityBadge
Mount: data-component="IncidentSeverityBadge"
Category: feedback
Props: label: string = "IncidentSeverity", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### IncidentTimeline
Mount: data-component="IncidentTimeline"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### IndustryBadge
Mount: data-component="IndustryBadge"
Category: feedback
Props: label: string = "Industry", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### IndustrySelector
Mount: data-component="IndustrySelector"
Category: forms
Props: label: string = "Industry", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### InfoCard
Mount: data-component="InfoCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### Inline
Mount: data-component="Inline"
Category: core
Props: gap: string = "4", className: string = ""
Slots: default
Events: none

### InlineAlert
Mount: data-component="InlineAlert"
Category: feedback
Props: label: string = "Inline", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### InlineCode
Mount: data-component="InlineCode"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### input
Mount: data-component="input"
Category: core
Props: type: string = "text", name: string = "", value: string = "", placeholder: string = "", class: string = ""
Slots: none
Events: none

### InputGroup
Mount: data-component="InputGroup"
Category: forms
Props: label: string = "Input", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### InsetPanel
Mount: data-component="InsetPanel"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### IntegerInput
Mount: data-component="IntegerInput"
Category: forms
Props: label: string = "Integer", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### IntegrationCard
Mount: data-component="IntegrationCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", icon: string = "icon-[lucide--plug-zap]", class: string = ""
Slots: default
Events: none

### InvoiceLineItem
Mount: data-component="InvoiceLineItem"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### InvoiceSummary
Mount: data-component="InvoiceSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### IpAddressInput
Mount: data-component="IpAddressInput"
Category: forms
Props: label: string = "IpAddress", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### JobCard
Mount: data-component="JobCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### JobProgress
Mount: data-component="JobProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### JobTitleInput
Mount: data-component="JobTitleInput"
Category: forms
Props: label: string = "JobTitle", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### JsonInput
Mount: data-component="JsonInput"
Category: forms
Props: label: string = "Json", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### JsonViewer
Mount: data-component="JsonViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### KeyValueTable
Mount: data-component="KeyValueTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### KycDocumentUpload
Mount: data-component="KycDocumentUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LanguageSelector
Mount: data-component="LanguageSelector"
Category: forms
Props: label: string = "Language", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LanguageSwitcher
Mount: data-component="LanguageSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LastNameInput
Mount: data-component="LastNameInput"
Category: forms
Props: label: string = "LastName", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LatencyMetric
Mount: data-component="LatencyMetric"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### LatitudeInput
Mount: data-component="LatitudeInput"
Category: forms
Props: label: string = "Latitude", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LeadershipGrid
Mount: data-component="LeadershipGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LeadText
Mount: data-component="LeadText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### LegalAcceptanceNotice
Mount: data-component="LegalAcceptanceNotice"
Category: feedback
Props: label: string = "LegalAcceptance", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### LegalBulletList
Mount: data-component="LegalBulletList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LegalContactBlock
Mount: data-component="LegalContactBlock"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LegalDefinitionList
Mount: data-component="LegalDefinitionList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LegalDocumentHeader
Mount: data-component="LegalDocumentHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### LegalDocumentLayout
Mount: data-component="LegalDocumentLayout"
Category: layout
Props: class: string = "", title: string = "Legal document", effectiveDate: string = "", updatedDate: string = ""
Slots: toc, default
Events: none

### LegalHero
Mount: data-component="LegalHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### LegalLanguageSelector
Mount: data-component="LegalLanguageSelector"
Category: forms
Props: label: string = "LegalLanguage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LegalNotice
Mount: data-component="LegalNotice"
Category: feedback
Props: label: string = "Legal", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### LegalPageShell
Mount: data-component="LegalPageShell"
Category: layout
Props: class: string = ""
Slots: navigation, default
Events: none

### LegalPrintButton
Mount: data-component="LegalPrintButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### LegalRegionSelector
Mount: data-component="LegalRegionSelector"
Category: forms
Props: label: string = "LegalRegion", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LegalSection
Mount: data-component="LegalSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### LegalSummary
Mount: data-component="LegalSummary"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LegalTable
Mount: data-component="LegalTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LegalTableOfContents
Mount: data-component="LegalTableOfContents"
Category: core
Props: title: string = "On this page", items: string = [], class: string = ""
Slots: none
Events: none

### LegalVersionBadge
Mount: data-component="LegalVersionBadge"
Category: feedback
Props: label: string = "LegalVersion", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### LetterSpacingPicker
Mount: data-component="LetterSpacingPicker"
Category: forms
Props: label: string = "LetterSpacing", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LicenseKeyInput
Mount: data-component="LicenseKeyInput"
Category: forms
Props: label: string = "LicenseKey", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Lightbox
Mount: data-component="Lightbox"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### LineChart
Mount: data-component="LineChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### LineHeightPicker
Mount: data-component="LineHeightPicker"
Category: forms
Props: label: string = "LineHeight", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Link
Mount: data-component="Link"
Category: core
Props: href: string = "#", label: string = "Link", external: boolean = false, className: string = ""
Slots: none
Events: none

### LinkButton
Mount: data-component="LinkButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### List
Mount: data-component="List"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LoadingButton
Mount: data-component="LoadingButton"
Category: actions
Props: label: string = "Continue", loadingLabel: string = "Loading…", loading: boolean = false, disabled: boolean = false, type: string = "button", variant: string = "primary", class: string = ""
Slots: none
Events: none

### LocaleSelector
Mount: data-component="LocaleSelector"
Category: forms
Props: label: string = "Locale", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### LocalizedRouteLink
Mount: data-component="LocalizedRouteLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### LocationPicker
Mount: data-component="LocationPicker"
Category: forms
Props: label: string = "Location", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Logo
Mount: data-component="Logo"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LogoCloud
Mount: data-component="LogoCloud"
Category: core
Props: class: string = "", eyebrow: string = "", title: string = "Trusted by teams building modern products", description: string = "", logos: string = [], centered: boolean = true, compact: boolean = false, variant: string = "strip", grayscale: boolean = true, showNames: boolean = false, maxItems: number = 8
Slots: none
Events: none

### LogoUpload
Mount: data-component="LogoUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### LogoutDialog
Mount: data-component="LogoutDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### LogTable
Mount: data-component="LogTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### LongitudeInput
Mount: data-component="LongitudeInput"
Category: forms
Props: label: string = "Longitude", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MaintenanceAlert
Mount: data-component="MaintenanceAlert"
Category: feedback
Props: label: string = "Maintenance", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### MaintenanceBanner
Mount: data-component="MaintenanceBanner"
Category: feedback
Props: label: string = "Maintenance", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### MaintenanceCard
Mount: data-component="MaintenanceCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MaintenancePage
Mount: data-component="MaintenancePage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MaintenanceState
Mount: data-component="MaintenanceState"
Category: feedback
Props: label: string = "Maintenance", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### MaintenanceWindowPicker
Mount: data-component="MaintenanceWindowPicker"
Category: forms
Props: label: string = "MaintenanceWindow", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MapPicker
Mount: data-component="MapPicker"
Category: forms
Props: label: string = "Map", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MarkdownEditor
Mount: data-component="MarkdownEditor"
Category: forms
Props: label: string = "Markdown", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MarketingPageShell
Mount: data-component="MarketingPageShell"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### MarketingSectionHeader
Mount: data-component="MarketingSectionHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### MaskedSecretField
Mount: data-component="MaskedSecretField"
Category: forms
Props: label: string = "MaskedSecret", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MegaMenu
Mount: data-component="MegaMenu"
Category: overlays
Props: label: string = "Explore", sections: string = [], class: string = ""
Slots: none
Events: click

### MemberList
Mount: data-component="MemberList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### MentionInput
Mount: data-component="MentionInput"
Category: forms
Props: label: string = "Mention", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MessageCharacterCounter
Mount: data-component="MessageCharacterCounter"
Category: feedback
Props: label: string = "MessageCharacter", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### MessageComposer
Mount: data-component="MessageComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MessageComposerPreview
Mount: data-component="MessageComposerPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MessageLimitInput
Mount: data-component="MessageLimitInput"
Category: forms
Props: label: string = "MessageLimit", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MessagePreview
Mount: data-component="MessagePreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MessageVolumeSlider
Mount: data-component="MessageVolumeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Metric
Mount: data-component="Metric"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### MetricCard
Mount: data-component="MetricCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MetricGrid
Mount: data-component="MetricGrid"
Category: data
Props: label: string = "Platform metrics", metrics: string = [], compact: boolean = false, columns: number = 4, class: string = ""
Slots: none
Events: none

### MetricText
Mount: data-component="MetricText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### MinutePicker
Mount: data-component="MinutePicker"
Category: forms
Props: label: string = "Minute", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MissionSection
Mount: data-component="MissionSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### MobileDeviceFrame
Mount: data-component="MobileDeviceFrame"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### MobileInput
Mount: data-component="MobileInput"
Category: forms
Props: label: string = "Mobile", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MobileMenuButton
Mount: data-component="MobileMenuButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### MobileNavigation
Mount: data-component="MobileNavigation"
Category: layout
Props: label: string = "Menu", closeLabel: string = "Close menu", items: string = [], class: string = ""
Slots: none
Events: click

### MobileTableCard
Mount: data-component="MobileTableCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Modal
Mount: data-component="Modal"
Category: core
Props: class: string = "", title: string = "Dialog", description: string = "", open: boolean = false, size: string = "md", closeLabel: string = "Close"
Slots: default
Events: click

### MonthlyVolumeSelector
Mount: data-component="MonthlyVolumeSelector"
Category: forms
Props: label: string = "MonthlyVolume", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MonthPicker
Mount: data-component="MonthPicker"
Category: forms
Props: label: string = "Month", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MonthYearPicker
Mount: data-component="MonthYearPicker"
Category: forms
Props: label: string = "MonthYear", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MultiFileUpload
Mount: data-component="MultiFileUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### MultipleEmailInput
Mount: data-component="MultipleEmailInput"
Category: forms
Props: label: string = "MultipleEmail", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### MultiSelect
Mount: data-component="MultiSelect"
Category: core
Props: id: string = "multi-select", name: string = "", label: string = "Choose options", options: string = [], required: boolean = false, disabled: boolean = false, size: number = 5, class: string = ""
Slots: none
Events: none

### MutedText
Mount: data-component="MutedText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### NameInput
Mount: data-component="NameInput"
Category: forms
Props: label: string = "Name", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### NarrowContainer
Mount: data-component="NarrowContainer"
Category: core
Props: class: string = ""
Slots: default
Events: none

### Navigation
Mount: data-component="Navigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### NavigationItem
Mount: data-component="NavigationItem"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### NavigationMegaMenu
Mount: data-component="NavigationMegaMenu"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### NewBadge
Mount: data-component="NewBadge"
Category: feedback
Props: label: string = "New", variant: string = "default", class: string = ""
Slots: default
Events: none

### NewPasswordInput
Mount: data-component="NewPasswordInput"
Category: forms
Props: label: string = "NewPassword", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### NewsletterCTA
Mount: data-component="NewsletterCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### NewsletterForm
Mount: data-component="NewsletterForm"
Category: content
Props: class: string = "", eyebrow: string = "", title: string = "Stay up to date", description: string = "", placeholder: string = "Enter your email", buttonLabel: string = "Subscribe", action: string = "/newsletter/subscribe", method: string = "post", emailName: string = "email", privacyLabel: string = "", privacyHref: string = "/privacy", successMessage: string = "You are subscribed.", errorMessage: string = "Something went wrong. Please try again.", iconClass: string = "icon-[lucide--mail]", centered: boolean = false, compact: boolean = false, showIcon: boolean = true, showPrivacy: boolean = true, fullWidth: boolean = false
Slots: none
Events: submit, input

### NoResultsState
Mount: data-component="NoResultsState"
Category: feedback
Props: label: string = "NoResults", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### NotFoundPage
Mount: data-component="NotFoundPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### NotFoundState
Mount: data-component="NotFoundState"
Category: feedback
Props: label: string = "NotFound", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### NotificationCard
Mount: data-component="NotificationCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### NotificationDot
Mount: data-component="NotificationDot"
Category: core
Props: label: string = "Notification", variant: string = "default", class: string = ""
Slots: default
Events: none

### NotificationList
Mount: data-component="NotificationList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### NumberInput
Mount: data-component="NumberInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Number", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### OfficeCard
Mount: data-component="OfficeCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OfflinePage
Mount: data-component="OfflinePage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OfflineState
Mount: data-component="OfflineState"
Category: feedback
Props: label: string = "Offline", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### OnboardingProgress
Mount: data-component="OnboardingProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### OneTimeSecretDisplay
Mount: data-component="OneTimeSecretDisplay"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OnlineIndicator
Mount: data-component="OnlineIndicator"
Category: feedback
Props: label: string = "Online", variant: string = "default", class: string = ""
Slots: default
Events: none

### OpacitySlider
Mount: data-component="OpacitySlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OpenAPICTA
Mount: data-component="OpenAPICTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### OptionalIndicator
Mount: data-component="OptionalIndicator"
Category: feedback
Props: label: string = "Optional", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### OrganizationSelector
Mount: data-component="OrganizationSelector"
Category: forms
Props: label: string = "Organization", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### OtpInput
Mount: data-component="OtpInput"
Category: forms
Props: class: string = "", name: string = "otp", length: number = 6, label: string = "Verification code"
Slots: none
Events: none

### OtpVerificationForm
Mount: data-component="OtpVerificationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### OutlinedCard
Mount: data-component="OutlinedCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### PageAlert
Mount: data-component="PageAlert"
Category: feedback
Props: label: string = "Page", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### PageHeader
Mount: data-component="PageHeader"
Category: core
Props: class: string = "", eyebrow: string = "", title: string = "", description: string = "", primaryLabel: string = "", primaryHref: string = "", secondaryLabel: string = "", secondaryHref: string = "", icon: string = "sparkles", centered: boolean = false, compact: boolean = false, showBreadcrumbs: boolean = false, breadcrumbParent: string = "", breadcrumbParentHref: string = "", breadcrumbCurrent: string = "", highlights: string = []
Slots: none
Events: none

### PageHeading
Mount: data-component="PageHeading"
Category: core
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PageShell
Mount: data-component="PageShell"
Category: core
Props: className: string = ""
Slots: default
Events: none

### PageSkeleton
Mount: data-component="PageSkeleton"
Category: feedback
Props: label: string = "Page", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### Pagination
Mount: data-component="Pagination"
Category: core
Props: class: string = "", currentPage: number = 1, totalPages: number = 1, previousHref: string = "", nextHref: string = "", pages: string = [], showNumbers: boolean = true, showSummary: boolean = true, totalItems: number = 0, pageSize: number = 10, compact: boolean = false, centered: boolean = false
Slots: none
Events: none

### Panel
Mount: data-component="Panel"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### PartnerApplicationForm
Mount: data-component="PartnerApplicationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PartnerLogoGrid
Mount: data-component="PartnerLogoGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PartnerProgramCard
Mount: data-component="PartnerProgramCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PasskeyButton
Mount: data-component="PasskeyButton"
Category: actions
Props: label: string = "Continue with a passkey", description: string = "Use fingerprint, face recognition, or device PIN", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: none
Events: none

### PasswordInput
Mount: data-component="PasswordInput"
Category: forms
Props: class: string = "", id: string = "password", name: string = "password", label: string = "Password", value: string = "", placeholder: string = "Enter your password", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = "current-password", revealable: boolean = true
Slots: none
Events: click

### PasswordRequirementList
Mount: data-component="PasswordRequirementList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PasswordStrengthMeter
Mount: data-component="PasswordStrengthMeter"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### PasswordVisibilityToggle
Mount: data-component="PasswordVisibilityToggle"
Category: forms
Props: label: string = "PasswordVisibility", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PathInput
Mount: data-component="PathInput"
Category: forms
Props: label: string = "Path", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PaymentMethodCard
Mount: data-component="PaymentMethodCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PdfPreview
Mount: data-component="PdfPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PercentageInput
Mount: data-component="PercentageInput"
Category: forms
Props: label: string = "Percentage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PermissionSelector
Mount: data-component="PermissionSelector"
Category: forms
Props: label: string = "Permission", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PhoneInput
Mount: data-component="PhoneInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Phone", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### PieChart
Mount: data-component="PieChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### Pill
Mount: data-component="Pill"
Category: core
Props: label: string = "Pill", variant: string = "default", class: string = ""
Slots: default
Events: none

### PinInput
Mount: data-component="PinInput"
Category: forms
Props: label: string = "Pin", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PlainTextEditor
Mount: data-component="PlainTextEditor"
Category: forms
Props: label: string = "PlainText", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PlanCTA
Mount: data-component="PlanCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PlanFeatureList
Mount: data-component="PlanFeatureList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PlanLimitList
Mount: data-component="PlanLimitList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PlanSelector
Mount: data-component="PlanSelector"
Category: forms
Props: label: string = "Plan", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PlatformPillarCard
Mount: data-component="PlatformPillarCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PolicyVersionTable
Mount: data-component="PolicyVersionTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### Popover
Mount: data-component="Popover"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### PortInput
Mount: data-component="PortInput"
Category: forms
Props: label: string = "Port", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PortNumberInput
Mount: data-component="PortNumberInput"
Category: forms
Props: label: string = "PortNumber", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PositiveNumberInput
Mount: data-component="PositiveNumberInput"
Category: forms
Props: label: string = "PositiveNumber", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PostalCodeInput
Mount: data-component="PostalCodeInput"
Category: forms
Props: label: string = "PostalCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PostmanCTA
Mount: data-component="PostmanCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PresetDateRangePicker
Mount: data-component="PresetDateRangePicker"
Category: forms
Props: label: string = "PresetDateRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PressReleaseCard
Mount: data-component="PressReleaseCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PreviewBadge
Mount: data-component="PreviewBadge"
Category: feedback
Props: label: string = "Preview", variant: string = "default", class: string = ""
Slots: default
Events: none

### PreviousNextNavigation
Mount: data-component="PreviousNextNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PriceInput
Mount: data-component="PriceInput"
Category: forms
Props: label: string = "Price", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PriceRangeSlider
Mount: data-component="PriceRangeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PriceText
Mount: data-component="PriceText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PricingCard
Mount: data-component="PricingCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PricingComparisonTable
Mount: data-component="PricingComparisonTable"
Category: data
Props: caption: string = "Plan comparison", plans: string = [], features: string = [], featuredPlan: string = "", class: string = ""
Slots: none
Events: none

### PricingContactForm
Mount: data-component="PricingContactForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PricingFeatureGroup
Mount: data-component="PricingFeatureGroup"
Category: forms
Props: label: string = "PricingFeature", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PricingGrid
Mount: data-component="PricingGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PricingHero
Mount: data-component="PricingHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PricingPlanCard
Mount: data-component="PricingPlanCard"
Category: content
Props: class: string = "", name: string = "Starter", description: string = "", price: string = "₹0", period: string = "/month", featured: boolean = false, badgeLabel: string = "Most popular", ctaLabel: string = "Choose plan", ctaHref: string = "#"
Slots: default
Events: none

### PricingTable
Mount: data-component="PricingTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### PricingToggle
Mount: data-component="PricingToggle"
Category: forms
Props: label: string = "Pricing", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PrimaryButton
Mount: data-component="PrimaryButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PrintAction
Mount: data-component="PrintAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PrintPolicyButton
Mount: data-component="PrintPolicyButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### PrioritySelector
Mount: data-component="PrioritySelector"
Category: forms
Props: label: string = "Priority", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PrivacyNotice
Mount: data-component="PrivacyNotice"
Category: feedback
Props: label: string = "Privacy", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ProductArchitectureDiagram
Mount: data-component="ProductArchitectureDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ProductCard
Mount: data-component="ProductCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", status: string = "", class: string = ""
Slots: none
Events: none

### ProductCategorySection
Mount: data-component="ProductCategorySection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ProductCTA
Mount: data-component="ProductCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ProductFeatureList
Mount: data-component="ProductFeatureList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ProductGrid
Mount: data-component="ProductGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ProductHero
Mount: data-component="ProductHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ProductIcon
Mount: data-component="ProductIcon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProductIntegrationList
Mount: data-component="ProductIntegrationList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ProductList
Mount: data-component="ProductList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ProductLogo
Mount: data-component="ProductLogo"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProductMegaMenu
Mount: data-component="ProductMegaMenu"
Category: core
Props: class: string = ""
Slots: none
Events: none

### ProductMiniCard
Mount: data-component="ProductMiniCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProductNavigationCard
Mount: data-component="ProductNavigationCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProductPageShell
Mount: data-component="ProductPageShell"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### ProductSelector
Mount: data-component="ProductSelector"
Category: forms
Props: label: string = "Product", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ProductsMegaMenu
Mount: data-component="ProductsMegaMenu"
Category: overlays
Props: label: string = "Products", sections: string = [], class: string = ""
Slots: none
Events: none

### ProductStatusBadge
Mount: data-component="ProductStatusBadge"
Category: feedback
Props: label: string = "Available", status: string = "", class: string = ""
Slots: none
Events: none

### ProductUseCaseList
Mount: data-component="ProductUseCaseList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### progress
Mount: data-component="progress"
Category: core
Props: value: number = 0, max: number = 100, class: string = ""
Slots: none
Events: none

### ProgressBar
Mount: data-component="ProgressBar"
Category: core
Props: class: string = "", value: number = 0, max: number = 100, label: string = "Progress", showValue: boolean = true
Slots: none
Events: none

### ProgressChart
Mount: data-component="ProgressChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ProgressRing
Mount: data-component="ProgressRing"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### ProgressSlider
Mount: data-component="ProgressSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ProjectCard
Mount: data-component="ProjectCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### ProjectSelector
Mount: data-component="ProjectSelector"
Category: forms
Props: label: string = "Project", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ProjectSwitcher
Mount: data-component="ProjectSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PromoCodeInput
Mount: data-component="PromoCodeInput"
Category: forms
Props: label: string = "PromoCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PromptDialog
Mount: data-component="PromptDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### ProviderSelector
Mount: data-component="ProviderSelector"
Category: forms
Props: label: string = "Provider", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PublicFooter
Mount: data-component="PublicFooter"
Category: core
Props: class: string = "", homeHref: string = "/", brandName: string = "WrNexus", brandTagline: string = "Identity Cloud", brandAriaLabel: string = "WrNexus home", brandIcon: string = "icon-[lucide--blocks]", brandDescription: string = "Secure authentication, user management, organizations, authorization, and enterprise identity for modern applications.", statusLabel: string = "All systems operational", statusHref: string = "/status", newsletterEyebrow: string = "WrNexus updates", newsletterTitle: string = "Identity insights delivered to your inbox", newsletterDescription: string = "Get product updates, security guidance, implementation strategies, and practical identity architecture resources.", newsletterAction: string = "/api/newsletter/subscribe", newsletterButtonLabel: string = "Subscribe", newsletterPlaceholder: string = "Enter your work email", newsletterSuccessMessage: string = "Thanks. Please check your inbox to confirm your subscription.", newsletterPrivacyLabel: string = "privacy policy", newsletterPrivacyHref: string = "/privacy", newsletterFinePrintPrefix: string = "No spam. Unsubscribe at any time. Read our", newsletterFinePrintSuffix: string = ".", newsletterEmailLabel: string = "Work email address", newsletterEmailName: string = "email", copyrightText: string = "© 2026 WrNexus. All rights reserved.", attributionText: string = "Built by WorkRoot Workspace.", showNewsletter: boolean = true, showSocialLinks: boolean = true, showThemeToggle: boolean = true, showStatus: boolean = true, showCookiePreferences: boolean = true, cookiePreferencesLabel: string = "Cookie preferences", themeLabel: string = "Theme", themeToggleLabel: string = "Toggle color theme", legalTitle: string = "Legal", socialLinks: PublicFooterLink[] = [], navigationColumns: PublicFooterColumn[] = [], legalLinks: PublicFooterLink[] = [], navigationAriaLabel: string = "Footer navigation"
Slots: navigation
Events: submit

### PublicHeader
Mount: data-component="PublicHeader"
Category: layout
Props: class: string = "", homeHref: string = "/", brandName: string = "WrNexus", brandTagline: string = "Identity Cloud", brandAriaLabel: string = "WrNexus home", brandIcon: string = "icon-[lucide--blocks]", pricingLabel: string = "Pricing", pricingHref: string = "/pricing", statusLabel: string = "All systems operational", statusHref: string = "/status", signInLabel: string = "Sign in", signInHref: string = "/sign-in", primaryLabel: string = "Start free", primaryHref: string = "/sign-up", showStatus: boolean = true, showThemeToggle: boolean = true, showSignIn: boolean = true, showPrimaryAction: boolean = true, productLabel: string = "Product", solutionsLabel: string = "Solutions", developersLabel: string = "Developers", resourcesLabel: string = "Resources", navigationAriaLabel: string = "Main navigation", themeToggleLabel: string = "Toggle color theme", mobileMenuOpenLabel: string = "Open navigation menu", mobileMenuCloseLabel: string = "Close navigation menu", navigationItems: PublicHeaderNavigationItem[] = [], actionItems: PublicHeaderActionItem[] = [], showNavigation: boolean = true, showMobileThemeToggle: boolean = true
Slots: navigation, actions
Events: click

### PublicHeaderLogo
Mount: data-component="PublicHeaderLogo"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PublicMobileNavigation
Mount: data-component="PublicMobileNavigation"
Category: core
Props: class: string = ""
Slots: none
Events: click

### PublicPageShell
Mount: data-component="PublicPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### PublicSearch
Mount: data-component="PublicSearch"
Category: core
Props: class: string = "", query: string = "", placeholder: string = "Search...", label: string = "Search", action: string = "", method: string = "get", name: string = "q", buttonLabel: string = "", clearLabel: string = "Clear search", size: string = "default", centered: boolean = false, fullWidth: boolean = false, showShortcut: boolean = false, shortcutLabel: string = "⌘ K", suggestions: string = []
Slots: none
Events: input, focus, blur, click

### PublishDateTimePicker
Mount: data-component="PublishDateTimePicker"
Category: forms
Props: label: string = "PublishDateTime", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### PushComposer
Mount: data-component="PushComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### PushNotificationEditor
Mount: data-component="PushNotificationEditor"
Category: forms
Props: label: string = "PushNotification", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### QrCode
Mount: data-component="QrCode"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### QuantityInput
Mount: data-component="QuantityInput"
Category: forms
Props: label: string = "Quantity", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### QuantityStepper
Mount: data-component="QuantityStepper"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### QuietHoursPicker
Mount: data-component="QuietHoursPicker"
Category: forms
Props: label: string = "Quiet hours", startName: string = "quietStart", endName: string = "quietEnd", start: string = "22:00", end: string = "08:00", timezone: string = "UTC", disabled: boolean = false, class: string = ""
Slots: none
Events: none

### QuoteText
Mount: data-component="QuoteText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### Radio
Mount: data-component="Radio"
Category: core
Props: class: string = "", id: string = "", name: string = "choice", value: string = "", label: string = "Option", description: string = "", checked: boolean = false, disabled: boolean = false
Slots: none
Events: none

### RadioGroup
Mount: data-component="RadioGroup"
Category: forms
Props: class: string = "", label: string = "Choose one", name: string = "choice"
Slots: default
Events: none

### RangeInput
Mount: data-component="RangeInput"
Category: forms
Props: label: string = "Range", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RangeSlider
Mount: data-component="RangeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RateLimitedState
Mount: data-component="RateLimitedState"
Category: feedback
Props: label: string = "RateLimited", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### RateLimitInput
Mount: data-component="RateLimitInput"
Category: forms
Props: label: string = "RateLimit", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RateLimitPage
Mount: data-component="RateLimitPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RateTable
Mount: data-component="RateTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### RatingSlider
Mount: data-component="RatingSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RecipientSelector
Mount: data-component="RecipientSelector"
Category: forms
Props: label: string = "Recipient", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RecoveryCodeForm
Mount: data-component="RecoveryCodeForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RecoveryCodeInput
Mount: data-component="RecoveryCodeInput"
Category: forms
Props: label: string = "RecoveryCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RecurrenceRuleBuilder
Mount: data-component="RecurrenceRuleBuilder"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RecurringSchedulePicker
Mount: data-component="RecurringSchedulePicker"
Category: forms
Props: id: string = "recurring-schedule", name: string = "recurrence", label: string = "Repeat", value: string = "none", disabled: boolean = false, class: string = ""
Slots: none
Events: none

### RedirectUriInput
Mount: data-component="RedirectUriInput"
Category: forms
Props: label: string = "RedirectUri", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ReferenceInput
Mount: data-component="ReferenceInput"
Category: forms
Props: label: string = "Reference", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RegexInput
Mount: data-component="RegexInput"
Category: forms
Props: label: string = "Regex", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RegionalPrivacyBanner
Mount: data-component="RegionalPrivacyBanner"
Category: feedback
Props: label: string = "RegionalPrivacy", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### RegionAvailabilityTable
Mount: data-component="RegionAvailabilityTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### RegionSelector
Mount: data-component="RegionSelector"
Category: forms
Props: label: string = "Region", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RegionUnavailableAlert
Mount: data-component="RegionUnavailableAlert"
Category: feedback
Props: label: string = "RegionUnavailable", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### RegionUnavailableState
Mount: data-component="RegionUnavailableState"
Category: feedback
Props: label: string = "RegionUnavailable", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### RejectOptionalCookiesButton
Mount: data-component="RejectOptionalCookiesButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ReopenCookieSettingsButton
Mount: data-component="ReopenCookieSettingsButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ReportCard
Mount: data-component="ReportCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RequestResponseViewer
Mount: data-component="RequestResponseViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RequestViewer
Mount: data-component="RequestViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### RequiredIndicator
Mount: data-component="RequiredIndicator"
Category: feedback
Props: label: string = "Required", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ResetPasswordForm
Mount: data-component="ResetPasswordForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResizablePanel
Mount: data-component="ResizablePanel"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ResourceCard
Mount: data-component="ResourceCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResourceDownloadCard
Mount: data-component="ResourceDownloadCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResourcePageShell
Mount: data-component="ResourcePageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ResourceSearch
Mount: data-component="ResourceSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResourcesMegaMenu
Mount: data-component="ResourcesMegaMenu"
Category: overlays
Props: class: string = ""
Slots: none
Events: none

### ResourceTypeBadge
Mount: data-component="ResourceTypeBadge"
Category: feedback
Props: label: string = "ResourceType", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ResponseViewer
Mount: data-component="ResponseViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ResponsibleDisclosureCTA
Mount: data-component="ResponsibleDisclosureCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ResponsiveTable
Mount: data-component="ResponsiveTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ResultsSection
Mount: data-component="ResultsSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### RetentionTable
Mount: data-component="RetentionTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### RetryCountInput
Mount: data-component="RetryCountInput"
Category: forms
Props: label: string = "RetryCount", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RevenueChart
Mount: data-component="RevenueChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### RgbColorInput
Mount: data-component="RgbColorInput"
Category: forms
Props: label: string = "RgbColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RichTextEditor
Mount: data-component="RichTextEditor"
Category: forms
Props: label: string = "RichText", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RichTextInput
Mount: data-component="RichTextInput"
Category: forms
Props: label: string = "RichText", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RoleSelector
Mount: data-component="RoleSelector"
Category: forms
Props: label: string = "Role", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### RollingDateRangePicker
Mount: data-component="RollingDateRangePicker"
Category: forms
Props: label: string = "RollingDateRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SaveCookiePreferencesButton
Mount: data-component="SaveCookiePreferencesButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SavedFilterSelector
Mount: data-component="SavedFilterSelector"
Category: forms
Props: label: string = "SavedFilter", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ScheduledDateTimePicker
Mount: data-component="ScheduledDateTimePicker"
Category: forms
Props: label: string = "ScheduledDateTime", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ScheduleMessagePicker
Mount: data-component="ScheduleMessagePicker"
Category: forms
Props: label: string = "ScheduleMessage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SchedulePicker
Mount: data-component="SchedulePicker"
Category: forms
Props: class: string = "", label: string = "Schedule"
Slots: none
Events: none

### ScreenshotFrame
Mount: data-component="ScreenshotFrame"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### ScrollArea
Mount: data-component="ScrollArea"
Category: core
Props: class: string = ""
Slots: default
Events: none

### SDKCard
Mount: data-component="SDKCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SdkLanguageSelector
Mount: data-component="SdkLanguageSelector"
Category: forms
Props: label: string = "SdkLanguage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SDKLanguageTabs
Mount: data-component="SDKLanguageTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SDKTabs
Mount: data-component="SDKTabs"
Category: core
Props: label: string = "SDK languages", tabs: string = [], defaultIndex: number = 0, class: string = ""
Slots: none
Events: click

### SearchButton
Mount: data-component="SearchButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SearchCategoryTabs
Mount: data-component="SearchCategoryTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SearchDialog
Mount: data-component="SearchDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### SearchEmptyState
Mount: data-component="SearchEmptyState"
Category: feedback
Props: label: string = "SearchEmpty", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SearchInput
Mount: data-component="SearchInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Search", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### SearchLoadingState
Mount: data-component="SearchLoadingState"
Category: feedback
Props: label: string = "SearchLoading", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SearchResultItem
Mount: data-component="SearchResultItem"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SecondaryButton
Mount: data-component="SecondaryButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SecondPicker
Mount: data-component="SecondPicker"
Category: forms
Props: label: string = "Second", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SecretDisplay
Mount: data-component="SecretDisplay"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SecretInput
Mount: data-component="SecretInput"
Category: forms
Props: label: string = "Secret", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SecretRevealDialog
Mount: data-component="SecretRevealDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### Section
Mount: data-component="Section"
Category: layout
Props: id: string = "", size: string = "default", surface: string = "default", className: string = ""
Slots: default
Events: none

### SectionActions
Mount: data-component="SectionActions"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SectionHeader
Mount: data-component="SectionHeader"
Category: layout
Props: class: string = "", eyebrow: string = "", title: string = "Section title", description: string = "", align: string = "left"
Slots: default
Events: none

### SectionHeading
Mount: data-component="SectionHeading"
Category: core
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SecurityAlert
Mount: data-component="SecurityAlert"
Category: feedback
Props: label: string = "Security", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SecurityContactCard
Mount: data-component="SecurityContactCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SecurityFeatureCard
Mount: data-component="SecurityFeatureCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SecurityHero
Mount: data-component="SecurityHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SecurityPillarGrid
Mount: data-component="SecurityPillarGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### SecurityPracticeList
Mount: data-component="SecurityPracticeList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### SecurityReportForm
Mount: data-component="SecurityReportForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SegmentedButtonGroup
Mount: data-component="SegmentedButtonGroup"
Category: core
Props: label: string = "Options", items: string = [], active: string = "", size: string = "md", fullWidth: boolean = false, class: string = ""
Slots: none
Events: click

### Select
Mount: data-component="Select"
Category: core
Props: class: string = "", id: string = "", name: string = "", label: string = "Select", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false
Slots: default
Events: none

### SenderIdInput
Mount: data-component="SenderIdInput"
Category: forms
Props: label: string = "SenderId", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ServerErrorPage
Mount: data-component="ServerErrorPage"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ServiceLevelTable
Mount: data-component="ServiceLevelTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ServiceStatusBadge
Mount: data-component="ServiceStatusBadge"
Category: feedback
Props: label: string = "ServiceStatus", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### ServiceStatusList
Mount: data-component="ServiceStatusList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### ServiceStatusRow
Mount: data-component="ServiceStatusRow"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### SessionCard
Mount: data-component="SessionCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SessionExpiredDialog
Mount: data-component="SessionExpiredDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### SetupChecklist
Mount: data-component="SetupChecklist"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SeveritySelector
Mount: data-component="SeveritySelector"
Category: forms
Props: label: string = "Severity", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ShadowPicker
Mount: data-component="ShadowPicker"
Category: forms
Props: label: string = "Shadow", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ShareAction
Mount: data-component="ShareAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ShareButton
Mount: data-component="ShareButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SidebarLayout
Mount: data-component="SidebarLayout"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### SidePanel
Mount: data-component="SidePanel"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SignInForm
Mount: data-component="SignInForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SignInLink
Mount: data-component="SignInLink"
Category: actions
Props: label: string = "Sign in with password", description: string = "Use your username or email and password", href: string = "", type: string = "button", variant: string = "secondary", disabled: boolean = false, icon: string = "icon-[lucide--lock-keyhole]", tone: string = "password", class: string = ""
Slots: none
Events: none

### SignUpForm
Mount: data-component="SignUpForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SiteSearch
Mount: data-component="SiteSearch"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Skeleton
Mount: data-component="Skeleton"
Category: feedback
Props: height: string = "4", rounded: string = "lg", className: string = ""
Slots: none
Events: none

### SkipLink
Mount: data-component="SkipLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SlaTable
Mount: data-component="SlaTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### Slider
Mount: data-component="Slider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SlugInput
Mount: data-component="SlugInput"
Category: forms
Props: label: string = "Slug", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SmallText
Mount: data-component="SmallText"
Category: content
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SmartRouteDiagram
Mount: data-component="SmartRouteDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### SmsComposer
Mount: data-component="SmsComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### SmsMessageEditor
Mount: data-component="SmsMessageEditor"
Category: forms
Props: label: string = "SmsMessage", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SmsSegmentCounter
Mount: data-component="SmsSegmentCounter"
Category: feedback
Props: label: string = "SmsSegment", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SocialShare
Mount: data-component="SocialShare"
Category: core
Props: class: string = "", title: string = "Share this page", description: string = "", url: string = "", shareText: string = "", centered: boolean = false, compact: boolean = false, showTitle: boolean = true, showCopy: boolean = true, networks: string = []
Slots: none
Events: click

### SolutionHero
Mount: data-component="SolutionHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SolutionPageShell
Mount: data-component="SolutionPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SolutionSection
Mount: data-component="SolutionSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SolutionsMegaMenu
Mount: data-component="SolutionsMegaMenu"
Category: overlays
Props: class: string = ""
Slots: none
Events: none

### SortableTable
Mount: data-component="SortableTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### spacer
Mount: data-component="spacer"
Category: core
Props: class: string = ""
Slots: none
Events: none

### Spinner
Mount: data-component="Spinner"
Category: core
Props: class: string = "", label: string = "Loading", size: string = "md"
Slots: none
Events: none

### SplitButton
Mount: data-component="SplitButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SplitCTA
Mount: data-component="SplitCTA"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### SplitHero
Mount: data-component="SplitHero"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SplitLayout
Mount: data-component="SplitLayout"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### SplitSectionHeader
Mount: data-component="SplitSectionHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### Stack
Mount: data-component="Stack"
Category: core
Props: gap: string = "4", className: string = ""
Slots: default
Events: none

### StartFreeButton
Mount: data-component="StartFreeButton"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### StatCard
Mount: data-component="StatCard"
Category: content
Props: class: string = "", label: string = "Metric", value: string = "0", change: string = "", trend: string = "neutral"
Slots: none
Events: none

### StateSelector
Mount: data-component="StateSelector"
Category: forms
Props: label: string = "State", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### StatusBadge
Mount: data-component="StatusBadge"
Category: feedback
Props: class: string = "", status: string = "operational"
Slots: none
Events: none

### StatusBanner
Mount: data-component="StatusBanner"
Category: core
Props: class: string = "", type: string = "info", title: string = "", description: string = "", actionLabel: string = "", actionHref: string = "", dismissible: boolean = true, compact: boolean = false, details: string = []
Slots: none
Events: click

### StatusPageShell
Mount: data-component="StatusPageShell"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### StatusSelector
Mount: data-component="StatusSelector"
Category: forms
Props: label: string = "Status", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### StatusSubscribeForm
Mount: data-component="StatusSubscribeForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### StatusTable
Mount: data-component="StatusTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### StepNavigation
Mount: data-component="StepNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### Stepper
Mount: data-component="Stepper"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### StepperInput
Mount: data-component="StepperInput"
Category: forms
Props: label: string = "Stepper", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### StepUpAuthenticationDialog
Mount: data-component="StepUpAuthenticationDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### StickerPicker
Mount: data-component="StickerPicker"
Category: forms
Props: label: string = "Sticker", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Sticky
Mount: data-component="Sticky"
Category: core
Props: class: string = ""
Slots: default
Events: none

### StickyLayout
Mount: data-component="StickyLayout"
Category: layout
Props: class: string = ""
Slots: default
Events: none

### StreetAddressInput
Mount: data-component="StreetAddressInput"
Category: forms
Props: label: string = "StreetAddress", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SubdomainInput
Mount: data-component="SubdomainInput"
Category: forms
Props: label: string = "Subdomain", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SubjectInput
Mount: data-component="SubjectInput"
Category: forms
Props: label: string = "Subject", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### SubprocessorTable
Mount: data-component="SubprocessorTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### SubsectionHeading
Mount: data-component="SubsectionHeading"
Category: core
Props: text: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### SuccessCard
Mount: data-component="SuccessCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### SuccessState
Mount: data-component="SuccessState"
Category: feedback
Props: label: string = "Success", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### SupportRequestForm
Mount: data-component="SupportRequestForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Surface
Mount: data-component="Surface"
Category: core
Props: class: string = ""
Slots: default
Events: none

### Switch
Mount: data-component="Switch"
Category: core
Props: class: string = "", id: string = "", name: string = "", label: string = "Switch", description: string = "", checked: boolean = false, disabled: boolean = false
Slots: none
Events: click

### Table
Mount: data-component="Table"
Category: data
Props: class: string = "", caption: string = "Data table", responsive: boolean = true, striped: boolean = false, hoverable: boolean = true, compact: boolean = false
Slots: default
Events: none

### TableHeader
Mount: data-component="TableHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### TableRow
Mount: data-component="TableRow"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### TableSkeleton
Mount: data-component="TableSkeleton"
Category: feedback
Props: label: string = "Table", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### Tabs
Mount: data-component="Tabs"
Category: content
Props: class: string = "", active: string = "first"
Slots: first, second
Events: click

### tag
Mount: data-component="tag"
Category: core
Props: label: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### TagInput
Mount: data-component="TagInput"
Category: forms
Props: label: string = "Tag", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TaxNotice
Mount: data-component="TaxNotice"
Category: feedback
Props: label: string = "Tax", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### TaxRateInput
Mount: data-component="TaxRateInput"
Category: forms
Props: label: string = "TaxRate", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TeamMemberCard
Mount: data-component="TeamMemberCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TeamSizeSelector
Mount: data-component="TeamSizeSelector"
Category: forms
Props: label: string = "TeamSize", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TemplateCard
Mount: data-component="TemplateCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### TemplateSelector
Mount: data-component="TemplateSelector"
Category: forms
Props: label: string = "Template", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TemplateVariableInput
Mount: data-component="TemplateVariableInput"
Category: forms
Props: label: string = "TemplateVariable", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TenantIsolationDiagram
Mount: data-component="TenantIsolationDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### TerminalBlock
Mount: data-component="TerminalBlock"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TertiaryButton
Mount: data-component="TertiaryButton"
Category: actions
Props: label: string = "Action", type: string = "button", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### TestimonialCard
Mount: data-component="TestimonialCard"
Category: content
Props: class: string = "", quote: string = "Great product.", name: string = "Customer", role: string = "", company: string = "", avatar: string = ""
Slots: none
Events: none

### TestimonialCarousel
Mount: data-component="TestimonialCarousel"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TestMessageDialog
Mount: data-component="TestMessageDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### Textarea
Mount: data-component="Textarea"
Category: core
Props: class: string = "", id: string = "", name: string = "", label: string = "Message", value: string = "", placeholder: string = "", rows: number = 5, help: string = "", error: string = "", required: boolean = false, disabled: boolean = false
Slots: none
Events: none

### TextInput
Mount: data-component="TextInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Text", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### TextLink
Mount: data-component="TextLink"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### TextSkeleton
Mount: data-component="TextSkeleton"
Category: feedback
Props: label: string = "Text", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### theme-toggle
Mount: data-component="theme-toggle"
Category: core
Props: label: string = "Toggle theme", class: string = ""
Slots: default
Events: none

### ThemeColorPicker
Mount: data-component="ThemeColorPicker"
Category: forms
Props: label: string = "ThemeColor", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ThemeSwitcher
Mount: data-component="ThemeSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TimeInput
Mount: data-component="TimeInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Time", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### Timeline
Mount: data-component="Timeline"
Category: visualization
Props: class: string = "", title: string = "Timeline"
Slots: default
Events: none

### TimelineChart
Mount: data-component="TimelineChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### TimelineItem
Mount: data-component="TimelineItem"
Category: content
Props: class: string = "", title: string = "Event", date: string = "", description: string = "", status: string = "default"
Slots: none
Events: none

### TimeoutInput
Mount: data-component="TimeoutInput"
Category: forms
Props: label: string = "Timeout", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TimePicker
Mount: data-component="TimePicker"
Category: forms
Props: id: string = "time-picker", name: string = "time", label: string = "Time", value: string = "", min: string = "", max: string = "", step: number = 60, required: boolean = false, disabled: boolean = false, class: string = ""
Slots: none
Events: none

### TimeRangePicker
Mount: data-component="TimeRangePicker"
Category: forms
Props: label: string = "TimeRange", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TimezoneAwareTimePicker
Mount: data-component="TimezoneAwareTimePicker"
Category: forms
Props: label: string = "TimezoneAwareTime", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TimezoneSelector
Mount: data-component="TimezoneSelector"
Category: forms
Props: class: string = "", id: string = "timezone", name: string = "timezone", label: string = "Timezone"
Slots: none
Events: none

### Toast
Mount: data-component="Toast"
Category: core
Props: class: string = "", title: string = "Saved", description: string = "", variant: string = "success", duration: number = 5000
Slots: none
Events: click

### ToastAction
Mount: data-component="ToastAction"
Category: actions
Props: label: string = "Action", href: string = "", type: string = "button", variant: string = "primary", disabled: boolean = false, class: string = ""
Slots: default
Events: none

### ToastHost
Mount: data-component="ToastHost"
Category: core
Props: class: string = ""
Slots: none
Events: click

### ToastIcon
Mount: data-component="ToastIcon"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ToastProgress
Mount: data-component="ToastProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### Toggle
Mount: data-component="Toggle"
Category: forms
Props: label: string = "", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ToggleGroup
Mount: data-component="ToggleGroup"
Category: forms
Props: label: string = "Toggle", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### TokenInput
Mount: data-component="TokenInput"
Category: forms
Props: label: string = "Token", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### Tooltip
Mount: data-component="Tooltip"
Category: content
Props: class: string = "", text: string = "Helpful information", position: string = "top"
Slots: default
Events: none

### TotpVerificationForm
Mount: data-component="TotpVerificationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TranslatedText
Mount: data-component="TranslatedText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TreeTable
Mount: data-component="TreeTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### TrendIndicator
Mount: data-component="TrendIndicator"
Category: feedback
Props: label: string = "Trend", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### TruncatedText
Mount: data-component="TruncatedText"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### TrustBadgeList
Mount: data-component="TrustBadgeList"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### Typography
Mount: data-component="Typography"
Category: core
Props: as: string = "p", variant: string = "body", align: string = "start", class: string = ""
Slots: default
Events: none

### UnavailableRegionState
Mount: data-component="UnavailableRegionState"
Category: feedback
Props: label: string = "UnavailableRegion", title: string = "", description: string = "", value: string = "", variant: string = "default", class: string = ""
Slots: default
Events: none

### UnifiedTimelinePreview
Mount: data-component="UnifiedTimelinePreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### UnsavedChangesDialog
Mount: data-component="UnsavedChangesDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### UploadItem
Mount: data-component="UploadItem"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### UploadPreview
Mount: data-component="UploadPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### UploadProgress
Mount: data-component="UploadProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### UptimeChart
Mount: data-component="UptimeChart"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### UptimeMetric
Mount: data-component="UptimeMetric"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### UrlInput
Mount: data-component="UrlInput"
Category: forms
Props: class: string = "", id: string = "", name: string = "", label: string = "Url", value: string = "", placeholder: string = "", help: string = "", error: string = "", required: boolean = false, disabled: boolean = false, readonly: boolean = false, autocomplete: string = ""
Slots: none
Events: none

### UsagePricingTable
Mount: data-component="UsagePricingTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### UseCaseSelector
Mount: data-component="UseCaseSelector"
Category: forms
Props: label: string = "UseCase", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### UserCard
Mount: data-component="UserCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### UsernameInput
Mount: data-component="UsernameInput"
Category: forms
Props: label: string = "Username", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ValueCard
Mount: data-component="ValueCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### ValuesGrid
Mount: data-component="ValuesGrid"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### VerificationCodeInput
Mount: data-component="VerificationCodeInput"
Category: forms
Props: label: string = "VerificationCode", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### VerifiedBadge
Mount: data-component="VerifiedBadge"
Category: feedback
Props: label: string = "Verified", variant: string = "default", class: string = ""
Slots: default
Events: none

### VersionSelector
Mount: data-component="VersionSelector"
Category: forms
Props: label: string = "Version", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### VerticalTabs
Mount: data-component="VerticalTabs"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### VideoCard
Mount: data-component="VideoCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### VideoPreviewDialog
Mount: data-component="VideoPreviewDialog"
Category: overlays
Props: title: string = "", description: string = "", open: boolean = false, closeLabel: string = "Close", class: string = ""
Slots: default
Events: none

### VideoUpload
Mount: data-component="VideoUpload"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### VirtualizedTable
Mount: data-component="VirtualizedTable"
Category: data
Props: title: string = "", description: string = "", empty: boolean = false, emptyText: string = "No items available.", class: string = ""
Slots: default
Events: none

### VisionSection
Mount: data-component="VisionSection"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### VisuallyHidden
Mount: data-component="VisuallyHidden"
Category: core
Props: className: string = ""
Slots: default
Events: none

### VoiceScriptComposer
Mount: data-component="VoiceScriptComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### VoiceScriptEditor
Mount: data-component="VoiceScriptEditor"
Category: forms
Props: label: string = "VoiceScript", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### VolumeInput
Mount: data-component="VolumeInput"
Category: forms
Props: label: string = "Volume", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### VolumeSlider
Mount: data-component="VolumeSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WarningCard
Mount: data-component="WarningCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### WebhookEventCard
Mount: data-component="WebhookEventCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WebhookFlowDiagram
Mount: data-component="WebhookFlowDiagram"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### WebhookPayloadViewer
Mount: data-component="WebhookPayloadViewer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WebhookUrlInput
Mount: data-component="WebhookUrlInput"
Category: forms
Props: label: string = "WebhookUrl", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### WebinarCard
Mount: data-component="WebinarCard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WebinarRegistrationForm
Mount: data-component="WebinarRegistrationForm"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### Well
Mount: data-component="Well"
Category: core
Props: class: string = ""
Slots: default
Events: none

### WhatsAppComposer
Mount: data-component="WhatsAppComposer"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WhatsAppNumberInput
Mount: data-component="WhatsAppNumberInput"
Category: forms
Props: label: string = "WhatsAppNumber", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### WhatsAppTemplateEditor
Mount: data-component="WhatsAppTemplateEditor"
Category: forms
Props: label: string = "WhatsAppTemplate", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### WideContainer
Mount: data-component="WideContainer"
Category: core
Props: class: string = ""
Slots: default
Events: none

### Wizard
Mount: data-component="Wizard"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WizardHeader
Mount: data-component="WizardHeader"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### WizardNavigation
Mount: data-component="WizardNavigation"
Category: layout
Props: eyebrow: string = "", title: string = "", description: string = "", align: string = "start", class: string = ""
Slots: default
Events: none

### WorkflowCanvasPreview
Mount: data-component="WorkflowCanvasPreview"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### WorkflowProgress
Mount: data-component="WorkflowProgress"
Category: visualization
Props: title: string = "", value: string = "", description: string = "", summary: string = "", loading: boolean = false, class: string = ""
Slots: default
Events: none

### WorkspaceCard
Mount: data-component="WorkspaceCard"
Category: content
Props: title: string = "", description: string = "", href: string = "", class: string = ""
Slots: default
Events: none

### WorkspaceSelector
Mount: data-component="WorkspaceSelector"
Category: forms
Props: label: string = "Workspace", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### WorkspaceSwitcher
Mount: data-component="WorkspaceSwitcher"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

### YearPicker
Mount: data-component="YearPicker"
Category: forms
Props: label: string = "Year", name: string = "", value: string = "", placeholder: string = "", type: string = "text", required: boolean = false, disabled: boolean = false, readonly: boolean = false, help: string = "", error: string = "", class: string = ""
Slots: default
Events: none

### ZoomSlider
Mount: data-component="ZoomSlider"
Category: content
Props: eyebrow: string = "", title: string = "", description: string = "", href: string = "", actionLabel: string = "Learn more", image: string = "", alt: string = "", class: string = ""
Slots: default
Events: none

# Installed package documentation

The following README files and declarations come from the installed private 0.3.4 release.

## @wrnexus/ai

Documentation URL: https://wrnexusjs.dev/packages/ai

# @wrnexus/ai

> A tiny, zero-dependency Claude (Anthropic) client for WrNexus apps — generate and stream text with Claude from any server-side code.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/ai` is a thin, dependency-free wrapper over the Anthropic **Messages API**,
built on `fetch` (Bun-native, no SDK). Use it in API routes, jobs, or middleware to
call Claude. It defaults to the most capable model, **`claude-opus-4-8`**, reads your
key from `ANTHROPIC_API_KEY`, and supports both one-shot generation and streaming.

## Installation

```bash
bun add @wrnexus/ai
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

Set your key in the environment (e.g. `.env`):

```
ANTHROPIC_API_KEY=sk-ant-...
```

## API

### `createAI(config?)`

Creates a client. The key is read at call time, so it's safe to create at import.

```ts
import { createAI } from "@wrnexus/ai";
const ai = createAI(); // or createAI({ apiKey, model, maxTokens, baseURL, version })
```

`AIConfig` fields (all optional):

| Field       | Default                     | Description                |
| ----------- | --------------------------- | -------------------------- |
| `apiKey`    | `ANTHROPIC_API_KEY`         | Anthropic API key          |
| `model`     | `"claude-opus-4-8"`         | Model id                   |
| `maxTokens` | `4096`                      | Default max output tokens  |
| `baseURL`   | `https://api.anthropic.com` | API base URL               |
| `version`   | `"2023-06-01"`              | `anthropic-version` header |

### `ai.generate(prompt, opts?): Promise<string>`

One-shot text generation. `prompt` is a string or a `Message[]` history.

```ts
const text = await ai.generate("Write a haiku about Bun.");

const reply = await ai.generate(
  [
    { role: "user", content: "My name is Ada." },
    { role: "assistant", content: "Hi Ada!" },
    { role: "user", content: "What's my name?" },
  ],
  { system: "You are concise." },
);
```

### `ai.stream(prompt, opts?): AsyncGenerator<string>`

Yields text deltas as they arrive.

```ts
for await (const chunk of ai.stream("Tell me a story.")) {
  process.stdout.write(chunk);
}
```

### `ai.streamResponse(prompt, opts?): Response`

Returns a streaming `text/plain` `Response` — drop it straight into an API route.

```ts
// app/api/chat.ts
import { createAI } from "@wrnexus/ai";
const ai = createAI();

export const POST = async (ctx) => {
  const { prompt } = await ctx.req.json();
  return ai.streamResponse(prompt);
};
```

### `GenerateOptions`

| Option      | Type                                              | Description                                          |
| ----------- | ------------------------------------------------- | ---------------------------------------------------- |
| `system`    | `string`                                          | System prompt                                        |
| `model`     | `string`                                          | Override the model for this call                     |
| `maxTokens` | `number`                                          | Override max output tokens                           |
| `thinking`  | `boolean`                                         | Enable adaptive extended thinking (deeper reasoning) |
| `effort`    | `"low" \| "medium" \| "high" \| "xhigh" \| "max"` | Reasoning effort / token spend                       |
| `messages`  | `Message[]`                                       | Full history — supersedes `prompt`                   |
| `signal`    | `AbortSignal`                                     | Cancel the request                                   |

> `temperature` / `top_p` are intentionally **not** exposed — the current Claude
> models reject them (400). Steer output with prompting instead.

### `AIError`

Thrown on non-2xx responses or a model refusal. Carries `.status` and `.type`
(e.g. `"authentication_error"`, `"rate_limit_error"`, `"refusal"`).

```ts
import { AIError } from "@wrnexus/ai";
try {
  await ai.generate("...");
} catch (e) {
  if (e instanceof AIError && e.type === "rate_limit_error") {
    /* back off */
  }
}
```

## Usage

### Return generated JSON from an API route

```ts
// app/api/summarize.ts — summarize posted text
import { createAI } from "@wrnexus/ai";
const ai = createAI();

export const POST = async (ctx) => {
  const { text } = await ctx.req.json().catch(() => ({}));
  if (!text) return Response.json({ error: "Provide 'text'." }, { status: 400 });
  const summary = await ai.generate(`Summarize in one sentence:\n\n${text}`, {
    system: "You are a precise summarizer.",
  });
  return Response.json({ summary });
};
```

### Stream a chat response to the browser

```ts
// app/api/chat.ts
import { createAI } from "@wrnexus/ai";

const ai = createAI({ model: "claude-sonnet-5" });

export const POST = async (ctx) => {
  const { messages } = await ctx.req.json();
  return ai.streamResponse(messages, {
    system: "Answer using concise Markdown.",
    maxTokens: 1_500,
  });
};
```

## Requirements / Notes

- **Bun-only.** Uses `fetch`, `ReadableStream`, `TextDecoder`/`TextEncoder`, and
  reads `ANTHROPIC_API_KEY` from `Bun.env` (falls back to `process.env`).
- **Zero dependencies** — no `@anthropic-ai/sdk`; talks to the Messages API directly.
- Defaults to `claude-opus-4-8`. Pass `{ model }` for a different model (e.g.
  `"claude-sonnet-5"` for speed/cost, `"claude-haiku-4-5"` for the fastest).

### Exported TypeScript declarations

```ts
/**
 * @wrnexus/ai — a tiny, zero-dependency Claude (Anthropic) client for WrNexus apps.
 *
 * Use it in API routes, jobs, or anywhere server-side to generate text with Claude.
 * It talks to the Anthropic Messages API over `fetch` (no SDK dependency, Bun-native),
 * and defaults to the most capable model, `claude-opus-4-8`.
 *
 *   import { createAI } from "@wrnexus/ai";
 *   const ai = createAI();                       // reads ANTHROPIC_API_KEY
 *   const text = await ai.generate("Write a haiku about Bun.");
 *
 * Streaming (great for API routes):
 *   export const POST = async (ctx) => ai.streamResponse(await ctx.req.text());
 */
type Role = "user" | "assistant";
interface Message {
    role: Role;
    content: string;
}
/** Reasoning effort — higher means deeper thinking + more tokens. */
type Effort = "low" | "medium" | "high" | "xhigh" | "max";
interface AIConfig {
    /** Anthropic API key. Default: `ANTHROPIC_API_KEY` from the environment. */
    apiKey?: string;
    /** Model id. Default: `claude-opus-4-8` (the most capable Claude model). */
    model?: string;
    /** Default max output tokens. Default: 4096. */
    maxTokens?: number;
    /** API base URL. Default: `https://api.anthropic.com`. */
    baseURL?: string;
    /** `anthropic-version` header. Default: `2023-06-01`. */
    version?: string;
}
interface GenerateOptions {
    /** System prompt — sets the assistant's role/behavior. */
    system?: string;
    /** Override the model for this call. */
    model?: string;
    /** Override max output tokens for this call. */
    maxTokens?: number;
    /** Enable adaptive extended thinking (slower, deeper reasoning). */
    thinking?: boolean;
    /** Reasoning effort / token spend (`output_config.effort`). */
    effort?: Effort;
    /** Full message history — supersedes the `prompt` argument when provided. */
    messages?: Message[];
    /** Abort the request. */
    signal?: AbortSignal;
}
/** Thrown when the API returns a non-2xx response or refuses the request. */
declare class AIError extends Error {
    readonly status: number;
    readonly type: string;
    constructor(message: string, status?: number, type?: string);
}
interface AI {
    /** Generate a full text response (non-streaming). */
    generate(prompt: string | Message[], opts?: GenerateOptions): Promise<string>;
    /** Stream the response as text deltas, as they arrive. */
    stream(prompt: string | Message[], opts?: GenerateOptions): AsyncGenerator<string, void, unknown>;
    /** Stream straight to a `Response` (text/plain) — drop-in for an API route return. */
    streamResponse(prompt: string | Message[], opts?: GenerateOptions): Response;
}
/** Create a Claude client. Reads `ANTHROPIC_API_KEY` from the environment by default. */
declare function createAI(config?: AIConfig): AI;

export { type AI, type AIConfig, AIError, type Effort, type GenerateOptions, type Message, type Role, createAI };
```

---

## @wrnexus/authz

Documentation URL: https://wrnexusjs.dev/packages/authz

# @wrnexus/authz

> Composable authorization for WrNexus — role-based (RBAC), policy-based (PBAC), and attribute-based (ABAC) access control that reduces to a boolean check plus an `authorize()` guard.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/authz` is a small, server-side authorization toolkit. It gives you three
interchangeable models — RBAC (roles → permissions), PBAC (policy predicates), and
ABAC (attribute matchers) — that all collapse to a `boolean | Promise<boolean>` decision.
Wrap any decision in a `Middleware` guard (`authorize`, `requireRole`, `requirePermission`)
to protect WrNexus routes. Reach for it whenever a route or action needs to be gated on who
the user is, what roles they hold, or attributes of the user and the resource. It plugs into
`@wrnexus/core` by reading `ctx.user` as the authorization subject.

## Installation

```bash
bun add @wrnexus/authz
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

The package has a single entry point (`@wrnexus/authz`) exporting the following.

### Types

| Symbol                             | Description                                                                                   |
| ---------------------------------- | --------------------------------------------------------------------------------------------- |
| `Subject`                          | The authorized principal: `{ id?: string; roles?: string[]; [attribute: string]: unknown }`.  |
| `Rbac`                             | An RBAC checker: `{ can(subject, permission): boolean; permissionsFor(roles): Set<string> }`. |
| `Policy<S = Subject, R = unknown>` | A predicate `(subject: S, resource?: R) => boolean \| Promise<boolean>`.                      |

### RBAC

#### `defineRbac(roles: Record<string, string[]>): Rbac`

Builds an RBAC checker from a role → permissions map. Supported permission forms:

- `"*"` — grants every permission.
- `"ns:*"` — namespace wildcard (e.g. `"post:*"` grants `"post:write"`).
- `"role:<name>"` — inherits all permissions of another role (resolved recursively, cycle-safe).

The returned `Rbac` provides:

- `can(subject, permission)` — `true` if any of `subject.roles` grants `permission` (honouring `*` and namespace wildcards). Returns `false` when the subject has no roles.
- `permissionsFor(roles)` — the resolved `Set<string>` of all permissions granted to a set of roles.

#### `hasRole(subject: Subject | undefined, ...required: string[]): boolean`

`true` if the subject holds **all** of the given roles.

### PBAC / ABAC combinators

- `any<S, R>(...policies: Policy<S, R>[]): Policy<S, R>` — allow if **any** policy passes (OR); awaits async policies.
- `all<S, R>(...policies: Policy<S, R>[]): Policy<S, R>` — allow only if **all** policies pass (AND); awaits async policies.
- `attr<S extends Subject>(name: string, match: unknown | ((value: unknown) => boolean)): Policy<S>` — ABAC helper that allows when `subject[name]` equals `match`, or when `match` is a function, when `match(value)` is truthy.

### Guards (middleware)

Each guard returns a `@wrnexus/core` `Middleware`. A denied request short-circuits with
`Response.json({ ok: false, error: "Forbidden" }, { status: 403 })`.

- `authorize(policy: (ctx: Context) => boolean | Promise<boolean>): Middleware` — runs `policy` against the request `Context`; calls `next()` when it resolves truthy, otherwise returns 403.
- `requireRole(...roles: string[]): Middleware` — allows when `ctx.user` holds **any** of the listed roles.
- `requirePermission(rbac: Rbac, permission: string): Middleware` — allows when `rbac.can(ctx.user, permission)` is `true`.

## Usage

### RBAC

```ts
import { defineRbac, hasRole } from "@wrnexus/authz";

const rbac = defineRbac({
  admin: ["*"],
  editor: ["post:read", "post:write"],
  viewer: ["post:read"],
  // role inheritance: lead gets everything an editor has, plus post:publish
  lead: ["role:editor", "post:publish"],
});

const user = { id: "u1", roles: ["editor"] };

rbac.can(user, "post:write"); // true
rbac.can(user, "post:delete"); // false
rbac.permissionsFor(["lead"]); // Set { "post:read", "post:write", "post:publish" }
hasRole(user, "editor"); // true
```

### Guarding routes

```ts
import { authorize, requireRole, requirePermission, defineRbac } from "@wrnexus/authz";

const rbac = defineRbac({ admin: ["*"], editor: ["post:read", "post:write"] });

// Only admins or editors
app.get("/dashboard", requireRole("admin", "editor"), handler);

// Requires a specific permission
app.post("/posts", requirePermission(rbac, "post:write"), handler);

// Arbitrary policy over the request context
app.delete(
  "/posts/:id",
  authorize((ctx) => hasRole(ctx.user, "admin")),
  handler,
);
```

### PBAC / ABAC policies

```ts
import { any, all, attr, authorize, type Policy } from "@wrnexus/authz";

interface User {
  id: string;
  department?: string;
  roles?: string[];
}
interface Post {
  authorId: string;
}

// Ownership policy (subject + resource)
const ownsPost: Policy<User, Post> = (u, post) => u.id === post?.authorId;

// ABAC: attribute equality, or a predicate
const inEngineering = attr<User>("department", "engineering");
const isVerified = attr<User>("verified", (v) => v === true);

// Compose: allow if the user owns the post OR is in engineering AND verified
const canEdit = any(ownsPost, all(inEngineering, isVerified));

app.put(
  "/posts/:id",
  authorize((ctx) => canEdit(ctx.user as User, loadPost(ctx))),
  handler,
);
```

## Requirements / Notes

- **Bun-only** — like the rest of WrNexus, this package targets the Bun runtime; Node is not supported.
- Works with [`@wrnexus/core`](../core) — the guards return `Middleware` and read the subject from `ctx.user` on the request `Context`. Both types are imported from `@wrnexus/core`.
- Policy combinators (`any`, `all`) and `authorize` are async-aware, so policies may return a `Promise<boolean>` (e.g. for a database ownership check).

### Exported TypeScript declarations

```ts
import { Context, Middleware } from '@wrnexus/core';

/**
 * @wrnexus/authz — authorization: role-based (RBAC), policy-based (PBAC), and
 * attribute-based (ABAC). Compose freely; all three reduce to a boolean check
 * plus an `authorize()` guard middleware.
 *
 *   const rbac = defineRbac({ admin: ["*"], editor: ["post:read", "post:write"] });
 *   rbac.can(user, "post:write");
 *
 *   // PBAC/ABAC: a policy is a predicate over subject + resource + attributes
 *   const ownsPost: Policy<User, Post> = (u, post) => u.id === post.authorId;
 *   authorize((ctx) => ownsPost(ctx.user, resource))  // middleware
 */

interface Subject {
    id?: string;
    roles?: string[];
    [attribute: string]: unknown;
}
interface Rbac {
    /** True if any of the subject's roles grants `permission` (supports "*" and "ns:*"). */
    can(subject: Subject | undefined, permission: string): boolean;
    /** All permissions granted to a set of roles. */
    permissionsFor(roles: string[]): Set<string>;
}
/** Build an RBAC checker from a role → permissions map. */
declare function defineRbac(roles: Record<string, string[]>): Rbac;
/** True if the subject has ALL of the given roles. */
declare function hasRole(subject: Subject | undefined, ...required: string[]): boolean;
/** A policy predicate: subject (+ optional resource/attributes) → allowed. */
type Policy<S = Subject, R = unknown> = (subject: S, resource?: R) => boolean | Promise<boolean>;
/** Combine policies: allow if ANY passes (OR). */
declare function any<S, R>(...policies: Policy<S, R>[]): Policy<S, R>;
/** Combine policies: allow only if ALL pass (AND). */
declare function all<S, R>(...policies: Policy<S, R>[]): Policy<S, R>;
/** ABAC helper: allow when an attribute matches (equality or predicate). */
declare function attr<S extends Subject>(name: string, match: unknown | ((value: unknown) => boolean)): Policy<S>;
/** Guard a route with a policy over `ctx` (reads `ctx.user` as the subject). */
declare function authorize(policy: (ctx: Context) => boolean | Promise<boolean>): Middleware;
/** Guard requiring one of the given roles. */
declare function requireRole(...roles: string[]): Middleware;
/** Guard requiring an RBAC permission. */
declare function requirePermission(rbac: Rbac, permission: string): Middleware;

export { type Policy, type Rbac, type Subject, all, any, attr, authorize, defineRbac, hasRole, requirePermission, requireRole };
```

---

## @wrnexus/cli

Documentation URL: https://wrnexusjs.dev/packages/cli

# @wrnexus/cli

> The `wrnexus` command-line tool that scaffolds, runs, builds, tests, and manages WrNexus apps.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/cli` provides the `wrnexus` executable — the single entry point for developing a WrNexus app. It runs the HMR dev server, produces a self-contained production build, scaffolds apps/pages/components, drives database migrations, regenerates typed routes and queries, runs tests, and manages configuration profiles. It also scaffolds multi-app monorepos and serves them behind a domain-routing gateway. This is a CLI/build-time package (it shells out to the Bun binary for the dev child and tests) and it also exports the workspace config types via a subpath.

## Installation

```bash
bun add @wrnexus/cli
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

Once installed, invoke it from an app directory:

```bash
bunx wrnexus dev
# or add scripts: "dev": "wrnexus dev .", "build": "wrnexus build ."
```

## Commands

Every command accepts an optional `[app-dir]` (defaults to `.`). Commands that read config or `.env` also accept `--profile=<name>` (see [Profiles](#profiles)).

| Command                               | Purpose                                                                |
| ------------------------------------- | ---------------------------------------------------------------------- |
| `wrnexus dev [app-dir] [--port=3000]` | Start the development server with live reload / HMR.                   |
| `wrnexus build [app-dir]`             | Build a self-contained production server bundle + assets into `dist/`. |
| `wrnexus create <app-name>`           | Scaffold a new single app from an inline template.                     |
| `wrnexus workspace <name>`            | Scaffold a monorepo (`apps/*` + shared `packages/*`).                  |
| `wrnexus workspace add <name>`        | Add and register an app in the current workspace.                      |
| `wrnexus gateway [--port=3000]`       | Serve every workspace app behind one port, routed by domain.           |
| `wrnexus production [workspace-dir]`  | Build, migrate, and serve every workspace app in production.           |
| `wrnexus generate <type> <name>`      | Scaffold a `page` \| `component` \| `api` \| `schema`.                 |
| `wrnexus generate routes`             | Regenerate the typed routes file (`app/routes.gen.ts`).                |
| `wrnexus generate docker`             | Scaffold `Dockerfile`, `.dockerignore`, and `docker-compose.yml`.      |
| `wrnexus generate mobile`             | Scaffold a Capacitor shell for iOS and Android.                        |
| `wrnexus mobile add <package...>`     | Install Capacitor plugins and sync native projects.                    |
| `wrnexus eject <name...>`             | Copy Wire UI component `.wrn` sources into `app/components/`.          |
| `wrnexus db <cmd>`                    | Database migrations and tooling (see [db](#wrnexus-db)).               |
| `wrnexus test [app-dir] [--watch]`    | Run the app's tests via `bun test` (defaults to the `test` profile).   |
| `wrnexus profiles [app-dir]`          | List config profiles and their `.env` files, marking the active one.   |
| `wrnexus help`                        | Print usage.                                                           |

`wrnexus g` is an alias for `wrnexus generate`.

### `wrnexus dev`

Supervises a child dev-server process (from `@wrnexus/dev-server`). The child owns file watching and HMR: CSS and client-island edits update the live page over a WebSocket with no restart; when a server module changes, the child exits with a restart code and the supervisor respawns it (the browser reconnects and morphs in the new HTML). On startup it regenerates typed DB queries and typed routes (best effort). Use `--port=` to change the port (default `3000`).

```bash
wrnexus dev . --port=8080
```

### `wrnexus build`

Emits into `<app-dir>/dist/`:

- `server.js` — a single, minified, self-contained Bun server with a **static** manifest of every page / api / realtime / middleware / component / layout module (no runtime filesystem scan or on-the-fly bundling).
- `reactive.js`, `theme.css`, `theme.js`, `ui.css`, and (if present) `styles.css` — hashed, minified browser assets.
- `public/` — copied verbatim.

Before bundling, it regenerates typed queries for the default and every named database. Run the output with:

```bash
bun dist/server.js   # PORT env var optional
# Generated apps also provide: npm start
# Build and start together: npm run production
```

### `wrnexus create`

Scaffolds a new app from an inline (dependency-free) template — `package.json`, `.gitignore`, config, and starter `app/` files. Use `npm run dev` during development, `npm run build && npm start` for production, or `npm run production` to build and start in one command. The generated production server currently requires Bun even when npm is used to manage packages and scripts.

### `wrnexus update`

`wrnexus update --latest` performs a complete project upgrade. It hands control to the exact target CLI, backs up important project files under `.wrnexus/update-backups/`, updates every `@wrnexus/*` dependency, refreshes framework-owned references, and applies every versioned syntax/config/file migration between the project version and target version. After installation it runs the project's `check` and `build` scripts; the new version is recorded only after verification succeeds.

Use `--dry-run` to preview an upgrade or `--no-verify` when verification is intentionally handled elsewhere. Migrations never overwrite user-owned configuration wholesale: each release must provide a focused, idempotent transformation for any changed syntax or config contract.

```bash
wrnexus create my-app
```

### `wrnexus generate`

Scaffolds a single file from a template, refusing to overwrite an existing file. Types (with aliases): `page`/`p`, `component`/`c`, `api`/`a`, `schema`/`s`. Nested names create nested paths.

```bash
wrnexus generate page about          # app/pages/about.wrn
wrnexus generate component user-card # app/components/user-card.wrn
wrnexus generate api users/list      # app/api/users/list.ts
wrnexus generate schema signup       # app/schemas/signup.ts
wrnexus generate routes              # regenerate app/routes.gen.ts
wrnexus generate docker              # Dockerfile + compose + .dockerignore
wrnexus generate mobile --mode=webview --app-id=com.example.app --app-name="Example" --url=https://app.example.com
wrnexus generate mobile --mode=native
```

The mobile generator creates a separate `mobile/` package and reads
`config.mobile.mode`. `webview` creates a Capacitor shell that renders the hosted
WrNexus application. `native` creates a WebView-free Expo/React Native app whose
screens call the shared backend through `mobile/src/wrnexus.ts`. Native screens
do not render `.wrn` HTML. In either mode, run `bun install` in `mobile/`; iOS
device builds require macOS and Xcode.

Install official or community Capacitor plugins through the root CLI:

```bash
wrnexus mobile add @capacitor/camera @capacitor/haptics
wrnexus mobile sync
wrnexus mobile assets # generate native icons from config.mobile.icon
```

In native mode, `mobile add` runs `expo install` and `mobile sync` runs Expo
prebuild. In WebView mode they retain the Capacitor install/sync behavior.
`wrnexus mobile compile` maps portable `app/pages/**/*.wrn` pages to Expo Router
TSX routes. Native `bun run start` invokes this compilation automatically.

Browser code can access installed plugins through the SSR-safe
`@wrnexus/mobile` bridge. The command adds each plugin to both the WrNexus app
(JavaScript proxy) and `mobile/` (native synchronization).

`wrnexus mobile sync` also configures Android so only true network failures use
the local connection-error screen. HTTP errors such as 404 and 500 keep their
WrNexus response pages.

### `wrnexus eject`

Copies a Wire UI component's `.wrn` source out of `@wrnexus/ui` into `app/components/`, so the app owns and can edit it (the app copy shadows the library one by name). Run with no names to list available components. It skips components that already exist in the app.

```bash
wrnexus eject button card modal
```

### `wrnexus db`

Database migrations and tooling. Without a flag, commands target the **default** database (`db` in `wrnexus.config.ts`, files under `app/db/`). Pass `--db=<name>` to target a named database (`databases.<name>`, files under `app/db/<name>/`).

| Subcommand                      | Purpose                                                                             |
| ------------------------------- | ----------------------------------------------------------------------------------- |
| `db new <name> [--from-models]` | Scaffold a migration; `--from-models` derives it from the TS models in `schema.ts`. |
| `db migrate`                    | Apply all pending migrations.                                                       |
| `db rollback`                   | Revert the last applied migration.                                                  |
| `db status`                     | List applied / pending migrations.                                                  |
| `db generate`                   | Regenerate typed queries (`queries/*.sql` → `queries.gen.ts`).                      |
| `db seed`                       | Run the database's `seed.ts` (default export / `seed` function).                    |
| `db studio [table]`             | Inspect tables — list row counts, or dump the first 50 rows of one table.           |

```bash
wrnexus db new create_users --from-models
wrnexus db migrate
wrnexus db studio users
wrnexus db status --db=analytics
```

### `wrnexus workspace` and `wrnexus gateway`

`workspace <name>` scaffolds a monorepo: several WrNexus apps under `apps/*` and shared libraries under `packages/*`, plus a `wrnexus.workspace.ts` that maps each app to the domains it serves. `gateway` runs every app behind one port and routes by `Host` header, with optional per-app auth and gateway-wide security (trusted hosts, rate limit, security headers, access log).

```bash
wrnexus workspace acme
wrnexus gateway --port=3000
```

For a complete production start, use the first-class workspace orchestrator:

```bash
wrnexus production --host=0.0.0.0 --port=3000
```

It builds every registered app, applies default and named-database SQL migrations
when present, and starts the production gateway only after preparation succeeds.
Use `--prepare-only`, `--no-build`, or `--no-migrate` when deployment stages are
managed separately; `--environment=<name>` selects another workspace environment.

From a workspace root, add and register another app in one command:

```bash
wrnexus workspace add reports --domain=reports.localhost
bun install
```

Development gateways bind to `127.0.0.1` by default for reliable access on Windows,
macOS, and Linux. Open the configured app domain on the gateway port (for example
`http://localhost:3000` or `http://admin.localhost:3000`), not the internal child ports
printed while apps start. Pass `--host=0.0.0.0` to accept connections from other devices.

### `wrnexus test`

Runs the app's tests with `bun test`. Defaults to the `test` profile (config + `.env.test`). Pass `--watch` to re-run on change; extra flags pass straight through to `bun test`.

```bash
wrnexus test . --watch
```

## Usage

### Create and run a single application

```bash
bunx @wrnexus/cli create customer-portal
cd customer-portal
bun install
bun run dev
```

### Add routes and shared UI to an existing app

```bash
wrnexus generate page reports/monthly
wrnexus generate api reports/export
wrnexus generate component report-filter
wrnexus generate routes
```

### Create a multi-app workspace and add another app

```bash
wrnexus workspace company-suite
cd company-suite
wrnexus workspace add reports --domain=reports.localhost
bun install
wrnexus gateway --port=3000
```

Open `http://reports.localhost:3000`; the gateway selects `apps/reports` from the
request host.

### Upgrade with migrations and verification

```bash
wrnexus update --latest --dry-run
wrnexus update --latest
wrnexus doctor
```

## Profiles

Pass `--profile=<name>` to `dev`, `build`, `db` (or set `WRNEXUS_PROFILE`) to select a config profile. The CLI publishes `WRNEXUS_PROFILE` so config loaders and the dev child pick it up, and loads that profile's `.env` cascade (`.env`, `.env.local`, `.env.<profile>`, `.env.<profile>.local`) into `process.env`.

```bash
wrnexus dev --profile=uat
wrnexus profiles          # ● development  (config, .env.development)
                          # ○ production
                          # ○ uat          (config, .env.uat)
```

## Subpath exports

`@wrnexus/cli/workspace` exposes the workspace configuration types used by `wrnexus.workspace.ts`:

```ts
import type { WorkspaceConfig, WorkspaceApp } from "@wrnexus/cli/workspace";

const config: WorkspaceConfig = {
  security: { trustedHostsOnly: true, headers: true, accessLog: true },
  apps: [{ name: "web", dir: "apps/web", domains: ["localhost", "web.localhost"] }],
};

export default config;
```

## Requirements / Notes

- **Bun-only.** The CLI runs on Bun, spawns the Bun binary for the dev child and `bun test`, and the production build uses `Bun.build`. Node is not supported.
- Orchestrates the rest of the framework: `@wrnexus/dev-server` (dev/prod server + gateway), `@wrnexus/router` (route + typed-routes codegen), `@wrnexus/compiler` (`.wrn` → `.ts`), `@wrnexus/db` (migrations, typed queries), `@wrnexus/styles` (config, profiles, `.env`, themes, styles), `@wrnexus/ui` (ejectable Wire UI components), `@wrnexus/validation`, `@wrnexus/csr`, and `@wrnexus/i18n`.
- Reads `wrnexus.config.ts` for `db` / `databases`, `theme`, `styles`, `seo`, `security`, `i18n`, and `profiles`, and `wrnexus.workspace.ts` for the gateway.

### Exported TypeScript declarations

```ts
#!/usr/bin/env bun
```

---

## @wrnexus/compiler

Documentation URL: https://wrnexusjs.dev/packages/compiler

# @wrnexus/compiler

> Compiler for the `.wrn` language — tokenizes, parses, and lowers `.wrn` page and component files to TypeScript.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/compiler` turns `.wrn` source into TypeScript that targets the framework's runtime primitives. A `.wrn` file declares either a `page` (a route) or a `component` (a reusable, prop-driven fragment) with blocks for `state`, `view` (plain HTML), `seo`, `style`, `functions`, `api`, `ssr`/`client` data bindings, and `realtime` websocket handlers. The pipeline is `source → Lexer → parse() → PageAst → generate() → TypeScript`. It is a build/server-side library — the WrNexus dev loader calls it to compile `.wrn` files on the fly, surfacing `ParseError` as a readable error page.

Static ES module imports may appear before the root declaration. Imported values are
available to server-rendered expressions, including component props:

```wrn
import { appUrl } from "@wrnexus/helpers";

layout PublicLayout {
  view {
    <PublicHeader signInHref="{appUrl('sso', '/sign-in')}" />
  }
}
```

## Installation

```bash
bun add @wrnexus/compiler
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

All exports come from the package root (`@wrnexus/compiler`).

### `compileWireFile(source: string): string`

Compile `.wrn` source to a TypeScript module string. Throws `ParseError` on invalid input. The output is prefixed with a `// compiled from .wrn` comment.

### `compile(source: string): CompileResult`

Richer entry point that returns the generated code, the AST, and any diagnostics.

```ts
interface CompileResult {
  code: string;
  ast: PageAst;
  diagnostics: string[];
}
```

On a `ParseError` it pushes the message into `diagnostics` and re-throws.

### `parse(source: string): PageAst`

Run the lexer + recursive-descent parser and return the AST. Throws `ParseError` (lexer `LexError`s are caught and rethrown as `ParseError`).

### `generate(ast: PageAst): string`

Lower a `PageAst` to TypeScript. `page` ASTs become a default-export page component (plus `meta`, optional `layout`, `__wrnexusApi`/method handlers, `websocket`, and SSR/CSR data bindings); `component` ASTs become a module exporting `render(props)` and `__wrnexusComponent`.

### `Lexer`

On-demand lexer for `.wrn`. Yields structural tokens and exposes raw-span readers for the parser.

```ts
class Lexer {
  pos: number;
  constructor(src: string);
  next(): Token; // consume next structural token
  peek(): Token; // look ahead without consuming
  readPath(): string; // route path, e.g. /users/[id]
  readToLineEnd(): string; // rest of line (state/prop initializers)
  readBalancedBraces(): string; // inner text of a { ... } block, string-aware
}
```

`Token` is `{ type: TokenType; value: string; pos: number }`, where `TokenType` is one of `ident`, `string`, `lbrace`, `rbrace`, `lparen`, `rparen`, `at`, `eq`, `comma`, `eof`.

### Errors

| Class        | Thrown by                                         | Meaning                                                         |
| ------------ | ------------------------------------------------- | --------------------------------------------------------------- |
| `ParseError` | `parse`, `compile`, `compileWireFile`, `generate` | Invalid `.wrn` grammar or (rewrapped) lex failure.              |
| `LexError`   | `Lexer`                                           | Unexpected character / unterminated string / unbalanced braces. |

### AST types

Exported type-only symbols describing the parsed tree:

| Type                 | Description                                                                                                                                                   |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `PageAst`            | Root node including top-level `imports`, `kind`, `name`, `types`, typed `props`, typed `states`, `view`, styles, functions, data APIs, lifecycle, and routes. |
| `ViewNode`           | `{ type: "text"; value }` or `{ type: "element"; tag; attrs; children }`.                                                                                     |
| `Attr`               | `{ name; value; event; boolean? }` — `event` marks `@event` bindings.                                                                                         |
| `StateDecl`          | `{ name; valueType?; expr }` — a typed `state x: Type = <expr>` declaration.                                                                                  |
| `PropDecl`           | `{ name; valueType?; required; default }` — a typed prop declaration.                                                                                         |
| `SeoBlock`           | `Record<string, string>` from the `seo { ... }` block.                                                                                                        |
| `ApiBlock`           | `{ method; path; body }` — a top-level `api METHOD /path { ... }`.                                                                                            |
| `DataApiBlock`       | `{ mode; name; method; path; body }` — an `api` inside an `ssr`/`client` block.                                                                               |
| `DataMode`           | `"ssr" \| "client"`.                                                                                                                                          |
| `ModeFunctionsBlock` | `{ mode; body }` — a `functions { ... }` inside an `ssr`/`client` block.                                                                                      |
| `RealtimeBlock`      | `{ name; handlers }` — a `realtime <name> { on evt(args) { ... } }` block.                                                                                    |

## Usage

Compile a page:

```ts
import { compileWireFile } from "@wrnexus/compiler";

const ts = compileWireFile(`
page Home {
  state count = 0
  seo { title = "Home" description = "Welcome" }
  view {
    <button @click="count++">Clicked {count} times</button>
  }
}
`);
// ts is a TypeScript module: exports `meta`, and a default page component
// returning an HTML string, wrapped in a data-scope for the reactive runtime.
```

Inspect the AST and diagnostics:

```ts
import { compile, ParseError } from "@wrnexus/compiler";

try {
  const { code, ast, diagnostics } = compile(source);
  console.log(ast.kind, ast.name, ast.states.length);
} catch (err) {
  if (err instanceof ParseError) console.error(err.message);
}
```

Drive the parse/codegen stages directly:

```ts
import { parse, generate } from "@wrnexus/compiler";

const ast = parse(componentSource); // ast.kind === "component"
const module = generate(ast); // exports render(props) + __wrnexusComponent
```

Use the lexer standalone:

```ts
import { Lexer } from "@wrnexus/compiler";

const lx = new Lexer("page Home {");
lx.next(); // { type: "ident", value: "page", pos: 0 }
lx.next(); // { type: "ident", value: "Home", pos: 5 }
lx.next(); // { type: "lbrace", value: "{", pos: 10 }
```

## The `.wrn` language (as parsed)

A file opens with `page <Name>` or `component <Name>` followed by a `{ ... }` body containing zero or more members:

- `layout = "<name>"` — selects `app/layouts/<name>.wrn` (pages only).
- `types { <TypeScript declarations> }` — reusable interfaces and aliases for the current file.
- `props { name: Type = <default> ... }` — typed component props. Omit `= <default>` to make a prop required. Legacy inferred props remain supported.
- `state <ident>: Type = <expr>` — typed reactive state seeded from a raw JS expression. The annotation is optional for backward compatibility.
- `view { <html> }` — plain HTML with `{expr}` interpolation in text and attributes, hyphenated attributes, boolean attributes, `@event="..."` client bindings, and `<!-- comments -->`. Attribute expressions that reference `state` keep an SSR value and update reactively in the browser.
- `seo { key = "value" ... }` — metadata merged into the generated `meta`.
- `style { <raw css> }` — inlined page/component stylesheet (repeatable).
- `functions { <TypeScript> }` — helpers with typed parameters and return values. Types remain in server output and are safely erased from browser behavior code.
- `api <METHOD> <path> { <raw js> }` — route handler, lowered to a `METHOD` export (repeatable).
- `ssr { ... }` / `client { ... }` — data blocks holding `api <name> <METHOD> <path> { ... }` bindings and their own `functions { ... }`.
- `realtime <name> { on <evt>(<args>) { <raw js> } ... }` — websocket handlers, lowered to a `websocket` export.

`view` markup is parsed by a lenient dedicated HTML parser (`parseHtmlView`); HTML void elements (`<br>`, `<img>`, …) take no closing tag. Line comments (`//`) are skipped by the lexer.

## Requirements / Notes

- Pure TypeScript with no runtime dependencies; runs under **Bun** as part of the WrNexus toolchain (Node is not supported).
- Generated modules target WrNexus runtime primitives (`data-scope`, `data-text`, `data-on-*`, `data-for`, `data-component`, `__wrnexus*`/`__wire*` helpers) — consume the output within a WrNexus app, e.g. via `@wrnexus/core`'s dev loader.

### Exported TypeScript declarations

```ts
import { PageAst as PageAst$1, WrnDiagnostic } from '@wrnexus/syntax';
export { ActionBlock, ApiBlock, Attr, ComputedDecl, DataApiBlock, DataMode, EffectBlock, LexError, Lexer, LoadBlock, ModeFunctionsBlock, PageAst, ParseError, PropDecl, RealtimeBlock, SeoBlock, StateDecl, ViewNode, WrnDiagnostic, assertValidAst, diagnose, diagnosticFromError, eraseFunctionTypes, formatDiagnostic, inferredRuntimeType, parse, runtimeTypeOf } from '@wrnexus/syntax';
import { PageAst } from '@wrnexus/syntax/parser';

/**
 * Code generation: lower a `.wrn` AST to TypeScript that targets the framework's
 * existing primitives.
 *
 *   state              -> a `data-scope` declaration consumed by the runtime
 *   view               -> an HTML string returned by a page component
 *   @event="..."       -> data-on-<event>="..."
 *   "...{expr}..."     -> text kept verbatim ({expr} is mustache for runtime)
 *   api="<name>"       -> SSR/client data binding declared in a mode block
 *   ssrGet/ssrText     -> legacy server-side API fetch + render
 *   csrGet/csrText     -> legacy browser-side API fetch + render
 *   style              -> an inline page stylesheet
 *   functions          -> server-only helpers for API/realtime code
 *   api M /p {b}       -> export const M = async (ctx) => { b }
 *   realtime {..}      -> export const websocket = { evt(ws, ...args) { b } }
 */

declare function generate(ast: PageAst): string;

declare class NativeCompileError extends Error {
    constructor(message: string);
}
/** Compile a parsed `.wrn` page to an Expo Router React Native screen. */
declare function generateNative(ast: PageAst): string;

/**
 * @wrnexus/compiler — the `.wrn` language compiler.
 *
 * Parsing and language diagnostics are provided by the canonical
 * `@wrnexus/syntax` package. This package owns platform-specific codegen.
 */

interface CompileResult {
    code: string;
    ast: PageAst$1;
    /** Backward-compatible plain diagnostic messages. */
    diagnostics: string[];
    /** Structured diagnostics for editors, CI, and the DevToolbar. */
    richDiagnostics: WrnDiagnostic[];
}
/** Compile `.wrn` source into an Expo Router React Native screen. */
declare function compileNativeWireFile(source: string): string;
/**
 * Compile `.wrn` source into TypeScript source. Errors include a stable code,
 * source location, code frame, and actionable hint whenever available.
 */
declare function compileWireFile(source: string, filePath?: string): string;
/** Richer entry point returning the AST and structured diagnostics. */
declare function compile(source: string, filePath?: string): CompileResult;

export { type CompileResult, NativeCompileError, compile, compileNativeWireFile, compileWireFile, generate, generateNative };
```

---

## @wrnexus/core

Documentation URL: https://wrnexusjs.dev/packages/core

# @wrnexus/core

> The framework core: the request `Context`, middleware contract, and the security, session, caching, streaming, realtime, and JSX primitives every other WrNexus package builds on.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/core` is the shared foundation of WrNexus. It defines the `Context`
object that flows through every middleware, page, and API route, plus the
`Middleware`/`Next` contract they implement. On top of that it ships the
building blocks a real app needs: cookie-backed sessions, password auth, CSRF
protection, rate limiting, request logging, HTTP + in-memory caching, file
uploads, streaming/SSE responses, WebSocket "rooms", security headers/CORS, and
a server-side JSX runtime that renders to HTML strings. Everything here is
**server-side** and Bun-native (it uses `Bun.password`, `Bun.write`, the
web-standard `Request`/`Response`, and `crypto`). You depend on it directly and
transitively through the rest of the framework.

## Installation

```bash
bun add @wrnexus/core
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

### Context & middleware — `@wrnexus/core`

The `Context` (`ctx`) is the single value passed to middleware and handlers.

| Export                         | Kind | Description                                                                                                              |
| ------------------------------ | ---- | ------------------------------------------------------------------------------------------------------------------------ |
| `Context`                      | type | Per-request object: `req`, `url`, `lang`, `t`, `params`, `locals`, `user?`, `ip?`, `cookies`, `session`, `localStorage`. |
| `Next`                         | type | `() => Promise<Response> \| Response` — invokes the next middleware/handler.                                             |
| `Middleware`                   | type | `(ctx, next) => Promise<Response> \| Response`. Return `next()` to continue, or a `Response` to short-circuit.           |
| `createContext(req, url)`      | fn   | Build a fresh `Context` for an incoming request (wires up cookies, session, localStorage snapshot).                      |
| `withContextHeaders(ctx, res)` | fn   | Apply accumulated headers (e.g. `Set-Cookie`) from the context onto a response.                                          |
| `PageComponent`                | type | `(ctx) => string \| Promise<string>` — a page module's default export.                                                   |
| `PageMeta` / `SeoConfig`       | type | `<head>` metadata: `title`, `description`, `canonical`, `robots`, `image`, `twitterCard`, `themeColor`, …                |
| `TFunction`                    | type | `(key, params?) => string` — translate a key for `ctx.lang`, interpolating `{param}` placeholders.                       |

Key `Context` fields:

- `ctx.locals` — per-request scratch space for passing values between middleware.
- `ctx.user` — the authenticated user (populated by `sessionAuth`/`logIn`), or `null`.
- `ctx.ip` — the direct socket peer IP (not spoofable via headers).
- `ctx.cookies` / `ctx.session` / `ctx.localStorage` — see **Storage** below.

### Authentication — `@wrnexus/core`

Passwords are hashed with argon2id via `Bun.password`; sessions ride the
cookie-backed `SessionStore`.

| Export                           | Signature                              | Notes                                                                                                                 |
| -------------------------------- | -------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `hashPassword(password)`         | `(string) => Promise<string>`          | argon2id hash to store.                                                                                               |
| `verifyPassword(password, hash)` | `(string, string) => Promise<boolean>` | Constant-safe; returns `false` on bad/empty hash.                                                                     |
| `logIn(ctx, user)`               | `(Context, U) => void`                 | Regenerates the session id (fixation defense), stores the user, sets `ctx.user`.                                      |
| `logOut(ctx)`                    | `(Context) => void`                    | Clears the session and `ctx.user`.                                                                                    |
| `getUser(ctx)`                   | `(Context) => U \| null`               | Current user from `ctx.user`, falling back to the session.                                                            |
| `sessionAuth()`                  | `() => Middleware`                     | Hydrates `ctx.user` from the session each request. Register early.                                                    |
| `requireAuth(options?)`          | `(RequireAuthOptions?) => Middleware`  | Guard: API/fetch requests get `401 JSON`, page navigations get `302` to `loginPath` (default `/login`) with `?next=`. |
| `SESSION_USER_KEY`               | `"user"`                               | Session key holding the user.                                                                                         |

`RequireAuthOptions`: `{ loginPath?: string }`.

### CSRF — `@wrnexus/core`

Double-submit cookie pattern: a readable `wire-csrf` cookie is echoed in an
`x-csrf-token` header on unsafe requests.

| Export                        | Signature                        | Notes                                                                                                            |
| ----------------------------- | -------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `csrfToken(ctx)`              | `(Context) => string`            | Ensures the CSRF cookie exists and returns its token.                                                            |
| `verifyCsrf(ctx)`             | `(Context) => boolean`           | Safe methods (GET/HEAD/OPTIONS) pass; otherwise header/`ctx.locals._csrf` must match the cookie (constant-time). |
| `csrfProtection()`            | `() => Middleware`               | 403s unsafe requests with a missing/mismatched token.                                                            |
| `CSRF_COOKIE` / `CSRF_HEADER` | `"wire-csrf"` / `"x-csrf-token"` | Cookie & header names.                                                                                           |

### Rate limiting — `@wrnexus/core`

Fixed-window limiter that returns `429` with `Retry-After` and emits
`RateLimit-Limit`/`-Remaining`/`-Reset` headers.

| Export                | Signature                           | Notes                                                                  |
| --------------------- | ----------------------------------- | ---------------------------------------------------------------------- |
| `rateLimit(options?)` | `(RateLimitOptions?) => Middleware` | Main middleware.                                                       |
| `peerKey(ctx)`        | `(Context) => string`               | Non-spoofable key from `ctx.ip` (default).                             |
| `proxyKey(ctx)`       | `(Context) => string`               | Trusts `x-forwarded-for`/`x-real-ip`. Use only behind a trusted proxy. |
| `defaultKey`          | —                                   | **Deprecated** alias of `proxyKey`.                                    |

`RateLimitOptions`: `windowMs` (default `60_000`), `max` (default `60`),
`key`, `trustProxy` (default `false` → keys on `peerKey`; `true` → `proxyKey`),
`message`, `headers` (default `true`), `store`.

`RateLimitStore` is pluggable — implement `hit(key, windowMs, now) => Bucket | Promise<Bucket>`
(a `Bucket` is `{ count, resetAt }`) to back limits with Redis/SQL across
instances. The default store is process-local memory.

### Request logging — `@wrnexus/core`

| Export                    | Signature                               | Notes                                                                            |
| ------------------------- | --------------------------------------- | -------------------------------------------------------------------------------- |
| `requestLogger(options?)` | `(RequestLoggerOptions?) => Middleware` | One record per request with a request id (stored on `ctx.locals[requestIdKey]`). |

`RequestLoggerOptions`: `format` (`"pretty"` default \| `"json"`), `sink(line, record)`
(default `console.log`), `requestIdKey` (default `"requestId"`), `now`.
`RequestRecord` = `{ time, id, method, path, status, durationMs }`.

### Caching — `@wrnexus/core`

| Export                           | Kind  | Notes                                                                                                                                      |
| -------------------------------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `TTLCache<V>`                    | class | In-memory TTL cache: `get`, `set`, `getOrLoad(key, loader, ttlMs?)`, `delete`, `clear`, `size`. Constructor takes a default `ttlMs` (60s). |
| `cacheControl(options)`          | fn    | Build a `Cache-Control` value from `CacheControlOptions`.                                                                                  |
| `withCacheControl(res, options)` | fn    | Apply `Cache-Control` to a response.                                                                                                       |
| `etag(body, weak?)`              | fn    | Stable quoted FNV-1a ETag (weak by default).                                                                                               |
| `notModified(req, tag)`          | fn    | `true` when `If-None-Match` matches — send a `304`.                                                                                        |

`CacheControlOptions`: `maxAge`, `sMaxAge`, `private`, `noStore`, `noCache`,
`staleWhileRevalidate`, `immutable`.

### File uploads — `@wrnexus/core`

Bun parses `multipart/form-data` via `Request.formData()`; these helpers
validate and persist the resulting `File`s.

| Export                      | Signature                                           | Notes                                                                                  |
| --------------------------- | --------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `collectUploads(form)`      | `(FormData) => { field, file }[]`                   | Every non-empty `File` in a parsed form.                                               |
| `saveUpload(file, options)` | `(File, SaveUploadOptions) => Promise<SavedUpload>` | Validates size/type, sanitizes the name, writes via `Bun.write`. Throws `UploadError`. |
| `sanitizeFilename(name)`    | `(string) => string`                                | Strips separators, traversal, control/illegal chars; caps at 255.                      |
| `UploadError`               | class                                               | Thrown on rejected uploads.                                                            |

`SaveUploadOptions`: `dir` (required), `maxBytes`, `allowedTypes` (MIME types
like `"image/png"` and/or extensions like `".png"`), `filename(file)`.
`SavedUpload` = `{ path, filename, size, type }`.

### Streaming & SSE — `@wrnexus/core`

| Export                          | Signature                                                                        | Notes                                                               |
| ------------------------------- | -------------------------------------------------------------------------------- | ------------------------------------------------------------------- |
| `streamResponse(source, init?)` | `(Iterable\|AsyncIterable<string\|Uint8Array>, StreamResponseInit?) => Response` | Streaming `Response` from a chunk source (basis for streaming SSR). |
| `sse(source)`                   | `(Iterable\|AsyncIterable<ServerSentEvent>) => Response`                         | `text/event-stream` response.                                       |

`StreamResponseInit`: `status`, `headers`, `contentType` (default
`"text/html; charset=utf-8"`). `ServerSentEvent`: `{ data, event?, id?, retry? }`.

### Realtime rooms — `@wrnexus/core`

WebSocket rooms. A file in `app/realtime/` exports
`default defineRoom({ ... })` and is served at `ws://host/realtime/<name>`.

| Export                                  | Signature                                                | Notes                                                                |
| --------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------------------- |
| `defineRoom(handlers)`                  | `(RoomHandlers) => RoomDefinition`                       | Define a room. Export the result as `default`.                       |
| `isRoomDefinition(value)`               | `(unknown) => boolean`                                   | Type guard for a room definition.                                    |
| `createRealtimeRegistry()`              | `() => RealtimeRegistry`                                 | Server-side connection manager mapping sockets ↔ rooms.              |
| `bridgeRealtime(registry, bus, topic?)` | `(RealtimeRegistry, RealtimeBus, string?) => () => void` | Bridge broadcasts/`toUser` sends across processes via a pub/sub bus. |

`RoomHandlers`: `authorize(info) => boolean` (gate before accept — return
`false` to reject with 403), `onConnect(client)`, `onMessage(client, message)`
(JSON auto-parsed), `onLeave(client)`. A handler receives a `RoomClient` with
`id`, `user`, `query`, `data`, `room`, and `send` / `broadcast` /
`to(id)` / `toUser(user)` / `close`. The `Room` API adds `state`, `clients()`,
`count()`, and `broadcast`. `RealtimeBus` is structurally satisfied by
`@wrnexus/pubsub`. Legacy `RealtimeHandler`/`RealtimeSocket` raw handlers are
still exported. Connection-targeted sends (`send`, `to(id)`) stay local; room
broadcasts and `toUser` cross the bridge.

### Error pages — `@wrnexus/core`

| Export                         | Signature                        | Notes                                                 |
| ------------------------------ | -------------------------------- | ----------------------------------------------------- |
| `renderError(err, mode)`       | `(unknown, Mode) => Response`    | Dev page (with stack) or generic prod page by `mode`. |
| `renderDevError(err, status?)` | `(unknown, number?) => Response` | Readable HTML error page including the stack trace.   |
| `renderProdError(status?)`     | `(number?) => Response`          | Generic page that never leaks file paths.             |
| `renderNotFound()`             | `() => Response`                 | Simple 404 page.                                      |

`Mode` = `"development" | "production"`.

### Security headers & CORS — `@wrnexus/core`

| Export                                                   | Signature            | Notes                                                                                                                                                    |
| -------------------------------------------------------- | -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `withSecurityHeaders(req, res, mode, security?, nonce?)` | → `Response`         | Applies CORS + CSP, HSTS, `X-Frame-Options`, `X-Content-Type-Options`, `Referrer-Policy`, `Permissions-Policy`, COOP, Trusted Types, and `extraHeaders`. |
| `createCorsPreflightResponse(req, security?)`            | → `Response \| null` | Builds a `204`/`403` preflight response for CORS `OPTIONS` requests.                                                                                     |
| `isWebSocketOriginAllowed(req, security?)`               | → `boolean`          | Guards WS upgrades against cross-site hijacking (allows same-origin, configured CORS origins, and non-browser clients).                                  |

Config types: `SecurityConfig` (top-level), `CorsConfig`/`CorsOrigin`,
`ContentSecurityPolicyConfig`/`CspDirectiveValue`, `HstsConfig`,
`TrustedTypesConfig`, `PermissionsPolicyConfig`. WrNexus applies sensible
defaults (self-only CSP, `frame-ancestors 'none'`, restrictive Permissions-Policy,
HSTS in production, Trusted Types in production); each is individually
overridable or disable-able via `false`.

### Storage: cookies, sessions, localStorage — `@wrnexus/core`

These back the `ctx.cookies`, `ctx.session`, and `ctx.localStorage` fields.

| Export                                                    | Kind              | Notes                                                                                                                                                             |
| --------------------------------------------------------- | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `setSessionBackend(backend)`                              | fn                | Swap the **sync** session persistence backend (`SessionBackend`) — e.g. `bun:sqlite`. Default is process-local memory. Call once at startup.                      |
| `loadSession(backend, options?)`                          | fn → `Middleware` | Back `ctx.session` with an **async** store (`AsyncSessionBackend`: `load`/`save`/`destroy`) — loads before the request, saves after. `options.ttlMs` default 24h. |
| `CookieStore`                                             | type              | `get`/`getAll`/`has`/`set(name, value, opts?)`/`delete`/`headers`.                                                                                                |
| `SessionStore`                                            | type              | `id`/`get`/`getAll`/`set`/`delete`/`regenerate`/`clear`.                                                                                                          |
| `LocalStorageSnapshot`                                    | type              | Read-only view of the browser's localStorage sent via header for CSR bindings.                                                                                    |
| `CookieOptions`                                           | type              | `path`, `domain`, `maxAge`, `expires`, `httpOnly`, `secure`, `sameSite`.                                                                                          |
| `SessionEntry` / `SessionBackend` / `AsyncSessionBackend` | types             | Session persistence contracts.                                                                                                                                    |

### Low-level security helpers — `@wrnexus/core`

| Export                        | Signature             | Notes                                               |
| ----------------------------- | --------------------- | --------------------------------------------------- |
| `escapeHtml(value)`           | `(string) => string`  | Escape for HTML text/attributes.                    |
| `isSafeIslandName(name)`      | `(string) => boolean` | Allow only a conservative `[A-Za-z0-9_-]+` charset. |
| `isSafeRequestPath(pathname)` | `(string) => boolean` | Reject NULs, `..` traversal, and backslashes.       |

### JSX runtime — `@wrnexus/core`, `@wrnexus/core/jsx-runtime`, `@wrnexus/core/jsx-dev-runtime`

A server-side JSX runtime that renders to HTML **strings** (no virtual DOM).
Point `tsconfig`'s `jsxImportSource` at `@wrnexus/core`.

| Export                                     | Kind   | Notes                                                                                   |
| ------------------------------------------ | ------ | --------------------------------------------------------------------------------------- |
| `jsx` / `jsxs`                             | fn     | The runtime factory (TypeScript calls these automatically). Returns an `Html` instance. |
| `Fragment`                                 | symbol | JSX fragment marker.                                                                    |
| `Html`                                     | class  | Wraps a raw, already-safe HTML string (`toString()` returns it).                        |
| `mustache(expr)`                           | fn     | Emit a `{{expr}}` placeholder (tagged-template or string form) for the client binder.   |
| `JSXComponent` / `JSXProps` / `Renderable` | types  | Component signature and renderable value types.                                         |

Values interpolated as children are HTML-escaped unless they are an `Html`
instance; use `dangerouslySetInnerHTML={{ __html }}` for trusted markup. Void
elements render without a closing tag; `className`→`class`, `htmlFor`→`for`, and
`style` objects are serialized to CSS text.

The subpath exports map to the runtime TypeScript's JSX transform expects:

```jsonc
// tsconfig.json
{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "@wrnexus/core",
  },
}
```

## Usage

### A minimal middleware chain

```ts
import {
  createContext,
  withContextHeaders,
  sessionAuth,
  requireAuth,
  requestLogger,
  rateLimit,
  csrfProtection,
  type Middleware,
} from "@wrnexus/core";

const chain: Middleware[] = [
  requestLogger({ format: "json" }),
  rateLimit({ max: 100, windowMs: 60_000 }),
  csrfProtection(),
  sessionAuth(),
  requireAuth({ loginPath: "/login" }),
];
```

### Password auth

```ts
import { hashPassword, verifyPassword, logIn, getUser } from "@wrnexus/core";

// Registration
const passwordHash = await hashPassword(form.password);

// Login
if (await verifyPassword(form.password, user.passwordHash)) {
  logIn(ctx, { id: user.id, email: user.email });
}

const current = getUser<{ id: string }>(ctx); // or null
```

### HTTP caching with ETags

```ts
import { etag, notModified, withCacheControl } from "@wrnexus/core";

const body = JSON.stringify(data);
const tag = etag(body);
if (notModified(ctx.req, tag)) {
  return new Response(null, { status: 304, headers: { ETag: tag } });
}
const res = new Response(body, { headers: { ETag: tag, "content-type": "application/json" } });
return withCacheControl(res, { maxAge: 60, staleWhileRevalidate: 300 });
```

### Streaming SSE

```ts
import { sse } from "@wrnexus/core";

async function* ticks() {
  for (let n = 0; ; n++) {
    yield { event: "tick", data: String(n) };
    await Bun.sleep(1000);
  }
}
export default (ctx) => sse(ticks());
```

### A realtime room

```ts
// app/realtime/chat.ts
import { defineRoom } from "@wrnexus/core";

export default defineRoom({
  authorize: (info) => !!info.user, // require auth
  onConnect(client) {
    client.user = client.query.user;
    client.room.broadcast({ type: "join", id: client.id });
  },
  onMessage(client, msg) {
    client.broadcast({ type: "say", from: client.id, text: msg.text });
  },
});
```

Scale it across processes:

```ts
import { createRealtimeRegistry, bridgeRealtime } from "@wrnexus/core";
import { createPubSub } from "@wrnexus/pubsub";
import { redisDriver } from "@wrnexus/pubsub/redis";

const registry = createRealtimeRegistry();
bridgeRealtime(registry, createPubSub(redisDriver(process.env.REDIS_URL)));
```

### JSX rendering

```tsx
import { Html } from "@wrnexus/core";

function Card({ title, body }: { title: string; body: string }) {
  return (
    <article class="card">
      <h2>{title}</h2>
      <p>{body}</p>
    </article>
  );
}

const html: Html = <Card title="Hi" body="<b>escaped</b> automatically" />;
return new Response(html.toString(), { headers: { "content-type": "text/html" } });
```

## Requirements / Notes

- **Bun-only.** Uses `Bun.password` (argon2id), `Bun.write`, web-standard
  `Request`/`Response`/`FormData`/`ReadableStream`, and the global `crypto`.
  Node is not supported.
- Session and rate-limit backends default to **process-local memory**. For
  multi-instance deployments, swap in a shared backend: `setSessionBackend` (sync,
  e.g. `bun:sqlite`) or `loadSession` (async, e.g. Redis) for sessions, a custom
  `RateLimitStore` for limits, and `bridgeRealtime` for realtime.
- Works with the rest of the framework: realtime bridging is structurally
  compatible with [`@wrnexus/pubsub`](../pubsub); the security, auth, and JSX
  primitives here are consumed by the WrNexus server/router packages.
- Subpath exports: `@wrnexus/core/jsx-runtime` and `@wrnexus/core/jsx-dev-runtime`
  for TypeScript's automatic JSX transform.

### Exported TypeScript declarations

```ts
export { Fragment, Html, Component as JSXComponent, Props as JSXProps, Renderable, jsx, jsxs, mustache } from './jsx-runtime.js';

interface Tenant {
    id: string;
    slug?: string;
    name?: string;
    metadata?: Record<string, unknown>;
}
type TenantResolver = (ctx: Context) => Tenant | null | Promise<Tenant | null>;
interface TenantMiddlewareOptions {
    required?: boolean;
    status?: number;
}
declare function tenantMiddleware(resolveTenant: TenantResolver, options?: TenantMiddlewareOptions): Middleware;
declare function tenantFromSubdomain(lookup: (slug: string, ctx: Context) => Tenant | null | Promise<Tenant | null>, rootDomains?: string[]): TenantResolver;
declare function requireTenant(ctx: Context): Tenant;
/** Wrap a repository so every operation receives the current tenant id. */
declare function tenantScope<T extends object>(tenant: Tenant, repository: T): T & {
    tenantId: string;
};

interface SpanRecord {
    name: string;
    startTime: number;
    endTime?: number;
    durationMs?: number;
    status?: "ok" | "error";
    attributes: Record<string, string | number | boolean>;
    error?: unknown;
}
interface Tracer {
    startSpan(name: string, attributes?: SpanRecord["attributes"]): Span;
    records(): readonly SpanRecord[];
}
interface Span {
    setAttribute(name: string, value: string | number | boolean): void;
    end(status?: "ok" | "error", error?: unknown): SpanRecord;
}
declare function createTracer(clock?: () => number): Tracer;
declare function withSpan<T>(tracer: Tracer, name: string, run: (span: Span) => T | Promise<T>, attributes?: SpanRecord["attributes"]): Promise<T>;
interface TracingMiddlewareOptions {
    /** Include W3C Server-Timing response headers. Defaults to true. */
    serverTiming?: boolean;
    /** Fraction of requests to trace, from 0 to 1. Defaults to 1. */
    sampleRate?: number;
    /** Called after a traced response completes. */
    onComplete?: (ctx: Context, records: readonly SpanRecord[]) => void | Promise<void>;
}
declare function tracingMiddleware(tracerFactory?: (ctx: Context) => Tracer, options?: TracingMiddlewareOptions): Middleware;

interface CookieOptions {
    path?: string;
    domain?: string;
    maxAge?: number;
    expires?: Date | string;
    httpOnly?: boolean;
    secure?: boolean;
    sameSite?: "Strict" | "Lax" | "None" | "strict" | "lax" | "none";
}
interface CookieStore {
    get(name: string): string | undefined;
    getAll(): Record<string, string>;
    has(name: string): boolean;
    set(name: string, value: string, options?: CookieOptions): void;
    delete(name: string, options?: CookieOptions): void;
    headers(): string[];
}
interface SessionStore {
    id(): string;
    get<T = unknown>(key: string): T | undefined;
    getAll(): Record<string, unknown>;
    set(key: string, value: unknown): void;
    delete(key: string): void;
    /** Issue a fresh session id, keeping the data — defends against fixation. */
    regenerate(): void;
    clear(): void;
}
interface LocalStorageSnapshot {
    get(key: string): string | undefined;
    getAll(): Record<string, string>;
    has(key: string): boolean;
}
/** A stored session: its data plus an absolute expiry timestamp (ms). */
interface SessionEntry {
    data: Record<string, unknown>;
    expiresAt: number;
}
/**
 * Pluggable session persistence. The default is process-local memory; swap in a
 * shared backend (Redis, SQL, etc.) via `setSessionBackend` so sessions survive
 * restarts and work across multiple instances. Methods are synchronous, so a
 * backend must be sync (e.g. `bun:sqlite`); async stores need a load/save
 * wrapper around the request (future work).
 */
interface SessionBackend {
    get(id: string): SessionEntry | undefined;
    set(id: string, entry: SessionEntry): void;
    delete(id: string): void;
    /** Optional: drop expired entries. Called periodically by the store. */
    gc?(now: number): void;
}
/** Replace the session persistence backend (call once at startup). */
declare function setSessionBackend(backend: SessionBackend): void;
/**
 * An ASYNC session store (Redis, a remote DB). Use it via the `loadSession`
 * middleware, which loads the session before the request and saves it after —
 * keeping the `ctx.session` API synchronous while persistence is shared across
 * instances.
 */
interface AsyncSessionBackend {
    load(id: string): Promise<SessionEntry | undefined>;
    save(id: string, entry: SessionEntry): Promise<void>;
    destroy(id: string): Promise<void>;
}
/**
 * Back `ctx.session` with an async store. Register early (before anything reads
 * `ctx.session`). Loads once at the start of the request and saves once at the
 * end; regenerate/clear destroy the old id.
 */
declare function loadSession(backend: AsyncSessionBackend, options?: {
    ttlMs?: number;
}): Middleware;

/**
 * Core request context and middleware contracts.
 *
 * The `Context` object is the single value that flows through middleware,
 * pages and API routes. It is intentionally small and framework-agnostic so
 * it can later be reused by the `.wrn` compiler output.
 */

/** Translate a key for the active language, interpolating `{param}` placeholders. */
type TFunction = (key: string, params?: Record<string, string | number>) => string;
type Context = {
    /** The raw incoming web-standard Request. */
    req: Request;
    /** Parsed URL of the request (pathname, query, etc.). */
    url: URL;
    /** Active language for this request (resolved by the runtime); "" if i18n is unused. */
    lang: string;
    /** Translate a key for the active language (identity until the runtime sets it). */
    t: TFunction;
    /** Dynamic route params, e.g. `/users/[id]` -> `{ id: "42" }`. */
    params: Record<string, string>;
    /**
     * Per-request scratch space. Middleware can attach values here
     * (e.g. the authenticated user) and downstream handlers can read them.
     */
    locals: Record<string, unknown>;
    /**
     * The authenticated user for this request, or null when anonymous. Populated
     * by the `sessionAuth` middleware (or `logIn`); read via `getUser(ctx)`.
     */
    user?: unknown;
    /** Active tenant/workspace resolved by tenant middleware. */
    tenant?: Tenant;
    /** Request tracer installed by observability middleware. */
    tracer?: Tracer;
    /**
     * The direct socket peer IP, set by the server from `server.requestIP`. This
     * is NOT spoofable by request headers — prefer it over `x-forwarded-for` for
     * rate limiting unless you run behind a trusted proxy.
     */
    ip?: string;
    /** Read/write HTTP cookies for the current response. */
    cookies: CookieStore;
    /** In-memory cookie-backed session store. */
    session: SessionStore;
    /** Read-only localStorage snapshot sent by the browser for CSR data bindings. */
    localStorage: LocalStorageSnapshot;
};
/** Calls the next middleware in the chain (or the final route handler). */
type Next = () => Promise<Response> | Response;
/**
 * Middleware runs before pages and API routes. It can:
 *  - inspect/modify `ctx`
 *  - short-circuit by returning a `Response` without calling `next()`
 *  - continue by returning `await next()`
 */
type Middleware = (ctx: Context, next: Next) => Promise<Response> | Response;
/** SEO metadata rendered into the document `<head>`. */
type SeoConfig = {
    /** BCP 47 document language used on `<html lang>` (default: `en`). */
    lang?: string;
    title?: string;
    titleTemplate?: string;
    description?: string;
    canonical?: string;
    canonicalBase?: string;
    robots?: string;
    keywords?: string | string[];
    image?: string;
    siteName?: string;
    type?: string;
    locale?: string;
    twitterCard?: string;
    twitterSite?: string;
    themeColor?: string;
};
/** Page metadata rendered into the document `<head>`. */
type PageMeta = SeoConfig;
/** A page module's default export. Returns an HTML string for the body. */
type PageComponent = (ctx: Context) => string | Promise<string>;
/** Create a fresh context for an incoming request. */
declare function createContext(req: Request, url: URL): Context;
/** Apply headers accumulated on the context, such as Set-Cookie. */
declare function withContextHeaders(ctx: Context, res: Response): Response;

/**
 * Small, dependency-free security helpers shared across packages.
 */
/**
 * Escape a string for safe interpolation into HTML text or attributes.
 * Used for page metadata (title/description) so untrusted values can't
 * break out of an attribute or inject markup.
 */
declare function escapeHtml(value: string): string;
declare function isSafeIslandName(name: string): boolean;
/**
 * Reject obvious path-traversal in a request path before it is ever used to
 * resolve a file. The router never builds file paths from request input
 * (routes are resolved against a pre-scanned table), but this is a cheap
 * defense-in-depth guard.
 */
declare function isSafeRequestPath(pathname: string): boolean;

/**
 * CSRF protection via the double-submit cookie pattern.
 *
 * The framework sets a readable `wire-csrf` cookie on page loads; the client
 * echoes it in an `x-csrf-token` header on unsafe requests (the Wire UI form
 * runtime does this automatically). The server checks header === cookie. A
 * cross-site attacker can't read the cookie to forge the header, so the request
 * is rejected — while same-origin requests pass.
 */

declare const CSRF_COOKIE = "wire-csrf";
declare const CSRF_HEADER = "x-csrf-token";
/** Ensure the CSRF cookie exists (readable by JS) and return its token. */
declare function csrfToken(ctx: Context): string;
/**
 * Verify an unsafe request's CSRF token against the cookie. Safe methods
 * (GET/HEAD/OPTIONS) always pass. The token may arrive in the `x-csrf-token`
 * header or a `_csrf` field already parsed onto `ctx.locals`.
 */
declare function verifyCsrf(ctx: Context): boolean;
/** Middleware that 403s unsafe requests with a missing/mismatched CSRF token. */
declare function csrfProtection(): Middleware;

/**
 * Authentication primitives.
 *
 * Passwords are hashed with argon2id via `Bun.password`. Sessions ride on the
 * existing cookie-backed `SessionStore`: logging a user in stores a serializable
 * user object under the "user" key, and `sessionAuth` hydrates `ctx.user` from
 * it on every request. `requireAuth` is a guard middleware for protected routes.
 */

/** Session key under which the authenticated user is stored. */
declare const SESSION_USER_KEY = "user";
/** Hash a plaintext password (argon2id). Store the returned string. */
declare function hashPassword(password: string): Promise<string>;
/** Verify a plaintext password against a stored hash. Safe against bad hashes. */
declare function verifyPassword(password: string, hash: string): Promise<boolean>;
/** Persist the authenticated user in the session and on the context. */
declare function logIn<U = unknown>(ctx: Context, user: U): void;
/** Clear the session and forget the current user. */
declare function logOut(ctx: Context): void;
/**
 * The currently-authenticated user, or null. Reads `ctx.user` first (set by
 * `sessionAuth`/`logIn`), falling back to the session store.
 */
declare function getUser<U = unknown>(ctx: Context): U | null;
/**
 * Hydrate `ctx.user` from the session for every request. Register this early in
 * the middleware chain so downstream pages and API routes can read `ctx.user`.
 */
declare function sessionAuth(): Middleware;
interface RequireAuthOptions {
    /** Where to redirect unauthenticated page requests. Default "/login". */
    loginPath?: string;
}
/**
 * Guard that requires an authenticated user. Unauthenticated requests that look
 * like an API/fetch call get a 401 JSON response; page navigations get a 302
 * redirect to the login page with the original target preserved as `?next=`.
 */
declare function requireAuth(options?: RequireAuthOptions): Middleware;

/**
 * Fixed-window rate limiting middleware. Keeps an in-memory counter per key
 * (client IP by default, read from `x-forwarded-for` / `x-real-ip`) and rejects
 * requests over the limit with a 429 and a `Retry-After` header. Sets the
 * `RateLimit-Limit` / `RateLimit-Remaining` / `RateLimit-Reset` headers.
 *
 * The store is process-local; behind multiple instances use a shared store
 * (out of scope here). Suitable as-is for single-process apps and dev.
 */

interface RateLimitOptions {
    /** Window length in milliseconds. Default 60_000 (1 minute). */
    windowMs?: number;
    /** Max requests allowed per key per window. Default 60. */
    max?: number;
    /** Derive the bucket key from the request. Default: client IP. */
    key?: (ctx: Context) => string;
    /**
     * Trust `x-forwarded-for` / `x-real-ip` for the client IP. Default false —
     * those headers are attacker-spoofable, so by default we key on the direct
     * socket peer (`ctx.ip`). Enable ONLY when behind a proxy that overwrites
     * these headers (nginx, a load balancer, Cloudflare).
     */
    trustProxy?: boolean;
    /** Body returned on 429. Default "Too Many Requests". */
    message?: string;
    /** Emit RateLimit-* headers. Default true. */
    headers?: boolean;
    /** Persistence for the counters. Default: process-local memory. */
    store?: RateLimitStore;
    /** Maximum in-memory keys before oldest buckets are evicted. Ignored for custom stores. */
    maxKeys?: number;
}
interface Bucket {
    count: number;
    resetAt: number;
}
/**
 * Pluggable rate-limit counter store. The default is process-local memory; swap
 * in a shared store (Redis/SQL) so limits hold across instances. `hit` records
 * one request for `key` in the current window and returns the running bucket.
 * It may be async (e.g. a Redis INCR + PEXPIRE) — the middleware awaits it.
 */
interface RateLimitStore {
    hit(key: string, windowMs: number, now: number): Bucket | Promise<Bucket>;
}
declare function rateLimit(options?: RateLimitOptions): Middleware;
/** Non-spoofable key: the direct socket peer IP (set by the server). */
declare function peerKey(ctx: Context): string;
/** Proxy-aware key: trusts `x-forwarded-for` / `x-real-ip`, else the peer IP. */
declare function proxyKey(ctx: Context): string;
/** @deprecated Use `peerKey` (default) or `proxyKey`. Kept for compatibility. */
declare const defaultKey: typeof proxyKey;

/**
 * Structured request logging middleware. Emits one record per request with a
 * request id, method, path, status, and duration — as pretty text (dev) or JSON
 * (production/log aggregation). The request id is stored on `ctx.locals` so
 * downstream handlers can correlate their own logs.
 */

interface RequestRecord {
    time: string;
    id: string;
    method: string;
    path: string;
    status: number;
    durationMs: number;
}
interface RequestLoggerOptions {
    /** "pretty" (default) for humans, "json" for machines. */
    format?: "pretty" | "json";
    /** Where each finished record goes. Default console.log. */
    sink?: (line: string, record: RequestRecord) => void;
    /** ctx.locals key for the request id. Default "requestId". */
    requestIdKey?: string;
    /** Clock injection for tests. Default Date.now. */
    now?: () => number;
}
declare function requestLogger(options?: RequestLoggerOptions): Middleware;

/**
 * Caching primitives:
 *  - `TTLCache` — a small in-memory time-to-live cache with `getOrLoad`, for
 *    memoising expensive data (query results, computed pages).
 *  - HTTP helpers — `cacheControl` to build a directive, `withCacheControl` to
 *    apply it, and `etag` / `notModified` for conditional requests (304s).
 */
declare class TTLCache<V = unknown> {
    private readonly ttlMs;
    private store;
    private loading;
    private revisions;
    private generation;
    constructor(ttlMs?: number);
    get(key: string): V | undefined;
    set(key: string, value: V, ttlMs?: number): void;
    /** Return the cached value or compute, cache, and return it. */
    getOrLoad(key: string, loader: () => Promise<V> | V, ttlMs?: number): Promise<V>;
    delete(key: string): void;
    clear(): void;
    get size(): number;
}
interface CacheControlOptions {
    /** max-age in seconds. */
    maxAge?: number;
    /** s-maxage (shared/CDN cache) in seconds. */
    sMaxAge?: number;
    /** Mark private (per-user) rather than public. */
    private?: boolean;
    /** no-store: never cache. Overrides other directives. */
    noStore?: boolean;
    /** no-cache: revalidate before use. */
    noCache?: boolean;
    /** stale-while-revalidate window in seconds. */
    staleWhileRevalidate?: number;
    immutable?: boolean;
}
/** Build a Cache-Control header value from options. */
declare function cacheControl(options: CacheControlOptions): string;
/** Apply a Cache-Control header to a response (returns the same response). */
declare function withCacheControl(res: Response, options: CacheControlOptions): Response;
/** A stable, quoted ETag for a string/bytes body (FNV-1a, weak by default). */
declare function etag(body: string | ArrayBuffer | Uint8Array, weak?: boolean): string;
/** True when the request's If-None-Match matches the given ETag (send a 304). */
declare function notModified(req: Request, tag: string): boolean;

/**
 * File upload helpers. Bun parses `multipart/form-data` natively via
 * `Request.formData()`, yielding web `File` objects; these helpers validate and
 * persist them safely (size/type limits, filename sanitisation to prevent path
 * traversal).
 */
declare class UploadError extends Error {
    constructor(message: string);
}
interface SaveUploadOptions {
    /** Destination directory. */
    dir: string;
    /** Reject files larger than this many bytes. */
    maxBytes?: number;
    /** Allowed MIME types (e.g. "image/png") and/or extensions (e.g. ".png"). */
    allowedTypes?: string[];
    /** Choose the stored filename. Default: the sanitised original name. */
    filename?: (file: File) => string;
}
interface SavedUpload {
    path: string;
    filename: string;
    size: number;
    type: string;
}
/** All `File` values in a parsed form, with their field names. */
declare function collectUploads(form: FormData): {
    field: string;
    file: File;
}[];
/** Validate and write one uploaded file to disk. Throws `UploadError` on reject. */
declare function saveUpload(file: File, options: SaveUploadOptions): Promise<SavedUpload>;
/** Strip directory separators, traversal, and control chars from a filename. */
declare function sanitizeFilename(name: string): string;

/**
 * Streaming response primitives.
 *
 * `streamResponse` turns a (sync or async) iterable of strings/bytes into a
 * streaming `Response` — the basis for streaming SSR (send the shell, then flush
 * page chunks as they render) and any progressively-generated output. `sse`
 * builds a Server-Sent Events stream from an async iterable of events.
 *
 * API routes and pages can already return a `Response` with a `ReadableStream`
 * body and the framework streams it unbuffered; these helpers just make the
 * common cases ergonomic.
 */
interface StreamResponseInit {
    status?: number;
    headers?: HeadersInit;
    /** Content-Type; default "text/html; charset=utf-8". */
    contentType?: string;
}
type Chunk = string | Uint8Array;
type ChunkSource = Iterable<Chunk> | AsyncIterable<Chunk>;
/** Build a streaming Response from an (async) iterable of chunks. */
declare function streamResponse(source: ChunkSource, init?: StreamResponseInit): Response;
interface ServerSentEvent {
    data: string;
    event?: string;
    id?: string;
    /** Client reconnection hint in milliseconds. */
    retry?: number;
}
/** Build a Server-Sent Events (text/event-stream) Response from events. */
declare function sse(source: Iterable<ServerSentEvent> | AsyncIterable<ServerSentEvent>): Response;

/**
 * Realtime rooms.
 *
 * A file in `app/realtime/` exports `default defineRoom({ onConnect, onMessage,
 * onLeave })` and is served at `ws://host/realtime/<name>`. The framework's
 * client runtime (`/__wrnexus/realtime.js`) handles the browser side, so pages
 * ship NO hand-written WebSocket code.
 *
 * Handlers get a `RoomClient` with everything you need:
 *   client.send(msg)                 → this connection
 *   client.broadcast(msg)            → everyone else in the room
 *   client.room.broadcast(msg)       → everyone (incl. sender)
 *   client.to(id | ids).send(msg)    → specific connection(s)
 *   client.toUser(u | users).send()  → a user / selected users (all their tabs)
 *   client.user = "u1"               → identify a connection for targeting
 *   client.data / client.room.state  → per-connection / shared room state
 *
 * The dynamic route `app/realtime/[room].ts` gives one handler many independent
 * rooms — `/realtime/lobby` and `/realtime/game-7` are separate room instances.
 */
interface RawSocket {
    send(data: string): unknown;
    close(code?: number, reason?: string): void;
}
interface RealtimeSocket<Data = unknown> {
    readonly data: Data;
    send(data: string | Uint8Array): number;
    subscribe(topic: string): void;
    unsubscribe(topic: string): void;
    publish(topic: string, data: string | Uint8Array): number;
    isSubscribed(topic: string): boolean;
    close(code?: number, reason?: string): void;
}
interface RealtimeHandler<Data = unknown> {
    open?(ws: RealtimeSocket<Data>): void | Promise<void>;
    message?(ws: RealtimeSocket<Data>, message: string | Uint8Array): void | Promise<void>;
    close?(ws: RealtimeSocket<Data>, code?: number, reason?: string): void | Promise<void>;
    drain?(ws: RealtimeSocket<Data>): void | Promise<void>;
}
interface Target {
    /** Send a message (objects are JSON-serialized). */
    send(message: unknown): void;
}
interface Room<TData = Record<string, unknown>> {
    readonly name: string;
    /** Shared, in-memory room state (lives while ≥1 client is connected). */
    readonly state: Record<string, unknown>;
    /** All connected clients. */
    clients(): RoomClient<TData>[];
    /** Number of connected clients. */
    count(): number;
    /** Send to everyone in the room, including the sender. */
    broadcast(message: unknown): void;
    /** Target specific connection id(s). */
    to(id: string | string[]): Target;
    /** Target a user / users by identity (reaches all their connections). */
    toUser(user: string | string[]): Target;
}
interface RoomClient<TData = Record<string, unknown>> {
    /** Unique per connection (a tab). */
    readonly id: string;
    /** App identity for targeting; assign it in `onConnect`. */
    user: string | undefined;
    /** Query params from the connection URL. */
    readonly query: Record<string, string>;
    /** Per-connection scratch state. */
    readonly data: TData;
    readonly room: Room<TData>;
    /** Send to THIS connection. */
    send(message: unknown): void;
    /** Send to everyone else in the room. */
    broadcast(message: unknown): void;
    /** Target specific connection id(s). */
    to(id: string | string[]): Target;
    /** Target a user / users by identity. */
    toUser(user: string | string[]): Target;
    /** Close this connection. */
    close(code?: number, reason?: string): void;
}
/** Info available when authorizing a connection, before it is accepted. */
interface RoomAuthInfo {
    /** Authenticated session user id, or `?user=` — undefined when anonymous. */
    user?: string;
    /** Connection URL query params. */
    query: Record<string, string>;
    /** The upgrade request's headers (cookies, etc.). */
    headers: Headers;
}
interface RoomHandlers<TData = Record<string, unknown>> {
    /**
     * Gate the connection BEFORE it is accepted. Return false to reject the
     * upgrade with 403 (e.g. `authorize: (info) => !!info.user` to require auth).
     */
    authorize?(info: RoomAuthInfo): boolean | Promise<boolean>;
    /** A client connected (a new tab joined the room). */
    onConnect?(client: RoomClient<TData>): void | Promise<void>;
    /** A message arrived (JSON is parsed; non-JSON arrives as a string). */
    onMessage?(client: RoomClient<TData>, message: any): void | Promise<void>;
    /** A client disconnected. */
    onLeave?(client: RoomClient<TData>): void | Promise<void>;
}
interface RoomDefinition<TData = Record<string, unknown>> {
    readonly __wrnexusRoom: true;
    readonly handlers: RoomHandlers<TData>;
}
/** Define a realtime room. Export the result as the `default` of a realtime file. */
declare function defineRoom<TData = Record<string, unknown>>(handlers: RoomHandlers<TData>): RoomDefinition<TData>;
declare function isRoomDefinition(value: unknown): value is RoomDefinition;
interface RealtimeConnectMeta {
    room: string;
    def: RoomDefinition;
    query?: Record<string, string>;
    user?: string;
}
/** One cross-instance message: a room broadcast, or a targeted user send. */
interface RealtimeEnvelope {
    room: string;
    /** If set, deliver only to these user identities; otherwise the whole room. */
    users?: string[];
    message: unknown;
}
/**
 * A pub/sub bridge for horizontal scaling. Wire the registry to a shared bus
 * (Redis pub/sub, NATS, …): local broadcasts/`toUser` sends are published to
 * peers, and messages received from peers are delivered via `registry.deliver`.
 * Connection-targeted sends (`send`, `to(id)`) stay local (ids are per-process).
 */
interface RealtimeBridge {
    publish(envelope: RealtimeEnvelope): void;
}
interface RealtimeRegistry {
    open(socket: RawSocket, meta: RealtimeConnectMeta): void | Promise<void>;
    message(socket: RawSocket, raw: string | Uint8Array): void | Promise<void>;
    close(socket: RawSocket): void | Promise<void>;
    /** Attach a cross-instance bridge (call once at startup). */
    setBridge(bridge: RealtimeBridge): void;
    /** Deliver an envelope received from a peer to LOCAL connections only. */
    deliver(envelope: RealtimeEnvelope): void;
    /** Number of live connections (across all rooms) — for tests/metrics. */
    size(): number;
}
/** Create the registry that maps sockets ↔ rooms and drives room handlers. */
declare function createRealtimeRegistry(): RealtimeRegistry;
/**
 * A minimal pub/sub bus (structurally satisfied by `@wrnexus/pubsub`). Used to
 * bridge realtime broadcasts across processes without a hard dependency.
 */
interface RealtimeBus {
    publish(topic: string, message: unknown): void | Promise<void>;
    subscribe(topic: string, handler: (message: unknown, topic: string) => void): () => void;
}
/**
 * Bridge a realtime registry across processes/instances via a pub/sub bus (use
 * the Redis driver so it crosses machines). After this, `client.room.broadcast`
 * and `client.toUser(...)` reach connected clients on **every** app process/
 * instance subscribed to the same bus — the foundation for realtime that works
 * with multiple running apps behind the gateway. Connection-targeted sends
 * (`send`, `to(id)`) stay local. Returns an unsubscribe function.
 *
 *   import { createRealtimeRegistry, bridgeRealtime } from "@wrnexus/core";
 *   import { createPubSub } from "@wrnexus/pubsub";
 *   import { redisDriver } from "@wrnexus/pubsub/redis";
 *   bridgeRealtime(registry, createPubSub(redisDriver(process.env.REDIS_URL)));
 */
declare function bridgeRealtime(registry: RealtimeRegistry, bus: RealtimeBus, topic?: string): () => void;

/**
 * Error + status pages. Every page here is a self-contained HTML document —
 * inline CSS only, no external stylesheet, no JavaScript (so it renders under the
 * strict CSP, even when the app's assets are what failed). Theme-aware via
 * `prefers-color-scheme`, styled in the WrNexus design language (ink-navy,
 * azure, a faint blueprint grid + glow). Development shows the stack trace;
 * production never leaks internal paths.
 */
type Mode = "development" | "production";
/** A beautiful, self-contained HTML page for any 4xx/5xx status. */
declare function renderStatusPage(status: number): Response;
/** Readable, styled development error page — includes the stack trace. */
declare function renderDevError(err: unknown, status?: number): Response;
/** Generic production error page — no stack, no file paths. */
declare function renderProdError(status?: number): Response;
/** Pick the right error page for the current mode. */
declare function renderError(err: unknown, mode: Mode): Response;
/** Beautiful 404 page. */
declare function renderNotFound(): Response;

type CorsOrigin = "*" | string | string[];
interface CorsConfig {
    /** Enable CORS headers and preflight handling. Defaults to false. */
    enabled?: boolean;
    /** Allowed origins. Use "*" for public APIs. Defaults to "*". */
    origin?: CorsOrigin;
    /** Allowed methods for preflight responses. */
    methods?: string[];
    /** Allowed request headers. Defaults to the browser's requested headers. */
    allowedHeaders?: string[];
    /** Response headers exposed to browser JavaScript. */
    exposedHeaders?: string[];
    /** Whether to send Access-Control-Allow-Credentials. */
    credentials?: boolean;
    /** Access-Control-Max-Age, in seconds. */
    maxAge?: number;
}
type CspDirectiveValue = string | string[] | false | null | undefined;
interface ContentSecurityPolicyConfig {
    /** Defaults to true. */
    enabled?: boolean;
    /** Use Content-Security-Policy-Report-Only instead of enforcing. */
    reportOnly?: boolean;
    /** Merge or remove directives. Set a directive to false/null to remove it. */
    directives?: Record<string, CspDirectiveValue>;
    /** Set false to start from an empty policy instead of WrNexus defaults. */
    useDefaults?: boolean;
}
interface HstsConfig {
    /** Defaults to true in production, false in development. */
    enabled?: boolean;
    /** Defaults to 31536000 seconds (1 year). */
    maxAge?: number;
    /** Defaults to true. */
    includeSubDomains?: boolean;
    /** Defaults to true. */
    preload?: boolean;
}
interface TrustedTypesConfig {
    /** Defaults to true in production, false in development. */
    enabled?: boolean;
    /**
     * Defaults to ["*"] in production so browser extensions and dev tooling can
     * create their own policies without noisy console errors. Set this to a
     * concrete list, e.g. ["wrnexus", "default"], for stricter deployments.
     */
    policyNames?: string[];
    /** Defaults to true. */
    requireForScript?: boolean;
    /** Adds "allow-duplicates" to the trusted-types directive. */
    allowDuplicates?: boolean;
}
type PermissionsPolicyConfig = Record<string, string | string[] | false | null | undefined>;
interface SecurityConfig {
    /** Set false to skip all framework security headers except explicitly enabled CORS. */
    headers?: boolean;
    /**
     * Trust `X-Forwarded-Proto` / `X-Forwarded-Host` when building `ctx.url` — set
     * this when the app runs behind a TLS-terminating reverse proxy (nginx, the
     * WrNexus gateway, a load balancer). Without it, a proxied app sees the internal
     * `http://` request and marks cookies (e.g. CSRF/session) non-`Secure`. Default
     * false; enable ONLY when a trusted proxy actually sets these headers.
     */
    trustProxy?: boolean;
    cors?: boolean | CorsConfig;
    contentSecurityPolicy?: false | ContentSecurityPolicyConfig;
    hsts?: false | HstsConfig;
    trustedTypes?: false | TrustedTypesConfig;
    /** Defaults to "same-origin". */
    crossOriginOpenerPolicy?: false | "same-origin" | "same-origin-allow-popups" | "unsafe-none";
    /** Defaults to "DENY". */
    frameOptions?: false | "DENY" | "SAMEORIGIN";
    /** Defaults to "strict-origin-when-cross-origin". */
    referrerPolicy?: false | string;
    /** Defaults to a restrictive browser capability policy. */
    permissionsPolicy?: false | PermissionsPolicyConfig;
    /** Extra static headers applied last. */
    extraHeaders?: Record<string, string>;
}
/**
 * Guard a WebSocket upgrade against Cross-Site WebSocket Hijacking: browsers
 * always send an `Origin` header on a WS handshake, and — unlike fetch — WS is
 * NOT subject to CORS, so cookies would otherwise flow cross-site. We allow
 * same-origin (Origin host === Host header), configured CORS origins, and
 * non-browser clients (no Origin, which also carry no ambient cookies).
 */
declare function isWebSocketOriginAllowed(req: Request, security?: SecurityConfig): boolean;
declare function createCorsPreflightResponse(req: Request, security?: SecurityConfig): Response | null;
/**
 * Build the request URL, honoring `X-Forwarded-Proto` / `X-Forwarded-Host` when
 * `trustProxy` is set (app behind a TLS-terminating reverse proxy). This makes
 * `ctx.url.protocol` reflect the EXTERNAL scheme, so protocol-dependent logic —
 * `Secure` cookies, canonical URLs — is correct behind nginx / the gateway.
 * Security checks that compare the raw `Host`/`Origin` headers don't use this URL,
 * so they are unaffected. An invalid forwarded value is ignored by the URL setter.
 */
declare function resolveRequestUrl(req: Request, trustProxy?: boolean): URL;
declare function withSecurityHeaders(req: Request, res: Response, mode: Mode, security?: SecurityConfig, nonce?: string): Response;

interface SchemaLike<T> {
    parse(input: unknown): T;
}
interface EndpointErrorBody {
    code: string;
    message: string;
    details?: unknown;
}
declare class EndpointError extends Error {
    readonly status: number;
    readonly code: string;
    readonly details?: unknown | undefined;
    constructor(status: number, code: string, message: string, details?: unknown | undefined);
}
interface EndpointDefinition<I, O> {
    input?: SchemaLike<I>;
    output?: SchemaLike<O>;
    auth?: "optional" | "required";
    description?: string;
    tags?: string[];
    handler(input: I, ctx: Context): O | Promise<O>;
}
interface DefinedEndpoint<I, O> {
    readonly definition: EndpointDefinition<I, O>;
    (ctx: Context, input?: unknown): Promise<Response>;
}
/** Define a validated, typed endpoint that can also drive SDK/OpenAPI generation. */
declare function defineEndpoint<I = unknown, O = unknown>(definition: EndpointDefinition<I, O>): DefinedEndpoint<I, O>;
interface RpcClientOptions {
    baseUrl?: string;
    fetch?: typeof globalThis.fetch;
    headers?: HeadersInit | (() => HeadersInit | Promise<HeadersInit>);
}
/** Create a tiny typed RPC caller for endpoints exposed by a WrNexus app. */
declare function createRpcClient(options?: RpcClientOptions): <I, O>(path: string, input: I) => Promise<O>;

interface CachePolicy {
    ttlMs?: number;
    staleWhileRevalidateMs?: number;
    tags?: string[] | ((ctx: Context) => string[]);
}
interface LoaderDefinition<T> {
    cache?: CachePolicy;
    load(ctx: Context): T | Promise<T>;
}
interface ActionDefinition<I, O> {
    csrf?: boolean;
    run(input: I, ctx: Context): O | Promise<O>;
    invalidate?: string[] | ((output: O, ctx: Context) => string[]);
}
interface DefinedLoader<T> {
    readonly definition: LoaderDefinition<T>;
    (ctx: Context): Promise<T>;
}
interface DefinedAction<I, O> {
    readonly definition: ActionDefinition<I, O>;
    (input: I, ctx: Context): Promise<O>;
}
declare function defineLoader<T>(definition: LoaderDefinition<T>): DefinedLoader<T>;
declare function defineAction<I, O>(definition: ActionDefinition<I, O>): DefinedAction<I, O>;
/** Request-local fetch deduplication keyed by a stable string. */
declare function dedupe<T>(ctx: Context, key: string, load: () => T | Promise<T>): Promise<T>;

type FeatureValue = boolean | string | number;
type FeatureRule = FeatureValue | ((ctx: Context) => FeatureValue | Promise<FeatureValue>);
interface FeatureFlags {
    get(name: string, ctx: Context): Promise<FeatureValue | undefined>;
    enabled(name: string, ctx: Context): Promise<boolean>;
}
declare function defineFeatureFlags(rules: Record<string, FeatureRule>): FeatureFlags;

interface PerformanceBudgets {
    routeJsBytes?: number;
    routeCssBytes?: number;
    htmlBytes?: number;
    imageBytes?: number;
    hydrationMs?: number;
    serverRenderMs?: number;
}
interface PerformanceMeasurement {
    routeJsBytes?: number;
    routeCssBytes?: number;
    htmlBytes?: number;
    imageBytes?: number;
    hydrationMs?: number;
    serverRenderMs?: number;
}
interface BudgetViolation {
    metric: keyof PerformanceBudgets;
    budget: number;
    actual: number;
    overBy: number;
}
declare function checkPerformanceBudgets(budgets: PerformanceBudgets, measurement: PerformanceMeasurement): BudgetViolation[];

export { type ActionDefinition, type AsyncSessionBackend, type Bucket, type BudgetViolation, CSRF_COOKIE, CSRF_HEADER, type CacheControlOptions, type CachePolicy, type ContentSecurityPolicyConfig, type Context, type CookieOptions, type CookieStore, type CorsConfig, type CorsOrigin, type CspDirectiveValue, type DefinedAction, type DefinedEndpoint, type DefinedLoader, type EndpointDefinition, EndpointError, type EndpointErrorBody, type FeatureFlags, type FeatureRule, type FeatureValue, type HstsConfig, type LoaderDefinition, type LocalStorageSnapshot, type Middleware, type Mode, type Next, type PageComponent, type PageMeta, type PerformanceBudgets, type PerformanceMeasurement, type PermissionsPolicyConfig, type RateLimitOptions, type RateLimitStore, type RawSocket, type RealtimeBridge, type RealtimeBus, type RealtimeConnectMeta, type RealtimeEnvelope, type RealtimeHandler, type RealtimeRegistry, type RealtimeSocket, type RequestLoggerOptions, type RequestRecord, type RequireAuthOptions, type Room, type RoomAuthInfo, type RoomClient, type RoomDefinition, type RoomHandlers, type RpcClientOptions, SESSION_USER_KEY, type SaveUploadOptions, type SavedUpload, type SchemaLike, type SecurityConfig, type SeoConfig, type ServerSentEvent, type SessionBackend, type SessionEntry, type SessionStore, type Span, type SpanRecord, type StreamResponseInit, type TFunction, TTLCache, type Target, type Tenant, type TenantMiddlewareOptions, type TenantResolver, type Tracer, type TrustedTypesConfig, UploadError, bridgeRealtime, cacheControl, checkPerformanceBudgets, collectUploads, createContext, createCorsPreflightResponse, createRealtimeRegistry, createRpcClient, createTracer, csrfProtection, csrfToken, dedupe, defaultKey, defineAction, defineEndpoint, defineFeatureFlags, defineLoader, defineRoom, escapeHtml, etag, getUser, hashPassword, isRoomDefinition, isSafeIslandName, isSafeRequestPath, isWebSocketOriginAllowed, loadSession, logIn, logOut, notModified, peerKey, proxyKey, rateLimit, renderDevError, renderError, renderNotFound, renderProdError, renderStatusPage, requestLogger, requireAuth, requireTenant, resolveRequestUrl, sanitizeFilename, saveUpload, sessionAuth, setSessionBackend, sse, streamResponse, tenantFromSubdomain, tenantMiddleware, tenantScope, tracingMiddleware, verifyCsrf, verifyPassword, withCacheControl, withContextHeaders, withSecurityHeaders, withSpan };
```

---

## @wrnexus/csr

Documentation URL: https://wrnexusjs.dev/packages/csr

# @wrnexus/csr

> The browser-side client runtime for WrNexus — generic, self-contained JS that hydrates server-rendered pages with reactivity, client-side navigation, and realtime rooms.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/csr` holds the three client runtimes that WrNexus serves to the browser. Components are authored as `.wrn` files and rendered on the **server**; this package provides the single, generic runtime that **hydrates** that HTML in the browser — there are no per-component browser bundles. Each runtime is exported as a plain-JS string (no build step, no imports) intended to be served verbatim from a well-known URL:

- **reactive** at `/__wrnexus/reactive.js` — reactive directives (`data-scope`, `data-text`, `data-for`, …)
- **nav** at `/__wrnexus/nav.js` — SPA-style client navigation with graceful fallback
- **realtime** at `/__wrnexus/realtime.js` — WebSocket "rooms", declarative or programmatic

The package itself runs on the server (it just returns strings); the strings it returns run in the browser. A dev/prod server (see `@wrnexus/core`) is responsible for actually serving them.

## Installation

```bash
bun add @wrnexus/csr
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

All exports come from the package root (`@wrnexus/csr`). The runtime source is delivered as strings, so the "API" on the server side is small; the real surface is the browser directives/globals each string installs.

### Runtime strings

| Export             | Type     | Served at                | Contents                       |
| ------------------ | -------- | ------------------------ | ------------------------------ |
| `REACTIVE_RUNTIME` | `string` | `/__wrnexus/reactive.js` | Reactive directive runtime     |
| `NAV_RUNTIME`      | `string` | `/__wrnexus/nav.js`      | Client-side navigation runtime |
| `REALTIME_RUNTIME` | `string` | `/__wrnexus/realtime.js` | Realtime rooms runtime         |

### Accessor functions

Convenience getters that return the same strings.

```ts
getReactiveRuntime(): string   // → REACTIVE_RUNTIME
getNavRuntime(): string        // → NAV_RUNTIME
getRealtimeRuntime(): string   // → REALTIME_RUNTIME
```

### Browser: reactive directives

Applied to any subtree containing `data-scope`. Expressions are parsed by a tiny eval-free evaluator, so a strict CSP with no `unsafe-eval` works.

| Directive                                                | Purpose                                                                 |
| -------------------------------------------------------- | ----------------------------------------------------------------------- |
| `data-scope="count: 0, name: 'x'"`                       | Declare reactive state on a subtree                                     |
| `data-on-<event>="count++"`                              | Run a statement in scope on a DOM event                                 |
| `data-text="expr"`                                       | Bind an element's `textContent` to an expression                        |
| `data-show="expr"`                                       | Toggle visibility (`display`) on truthiness                             |
| `data-for="item in list"` (opt. index and `key item.id`) | Per-item rendering; stable keys preserve DOM identity during reorder    |
| `data-key="item.id"`                                     | Alternative key declaration for `data-for` templates                    |
| `{{expr}}` or `{expr}`                                   | Interpolation inside text nodes and attribute values                    |
| `data-wrnexus-csr="id"`                                  | Target for a generated CSR fetch binding (fetches `/__wrnexus/csr?...`) |

Supported expression features: literals, identifiers, member access (`a.b`, `a[b]`), function/method calls, arrays, objects, arithmetic, comparison, equality, logical (`&& ||`), unary (`! - +`), and ternary. Statements support `++`/`--`, assignment operators (`= += -= *= /= %=`), and bare expression/method calls. Rendering is dependency-tracked: a signal change only re-runs the renderers that actually read it.

Browser globals installed: `window.__wrnexusHydrateScopes(root)` and `window.__wrnexusHydrateCsrFetches(root)` — both idempotent, so re-running after a DOM swap or HMR morph is safe. Both run automatically on `DOMContentLoaded`.

### Browser: navigation

Intercepts same-origin `<a>` clicks, fetches the target page, and swaps the `#app` container in place (via `importNode` — not `innerHTML` — so it works under a Trusted-Types CSP), updating history, title, and scroll, then re-hydrates. Cross-origin links, modified clicks, `download`/`data-no-nav`/`rel="external"`/`target` links, non-HTML responses, or a missing `#app` fall back to a full browser navigation.

- Programmatic navigation: `window.__wrnexusNavigate(url)`
- Emits a `wrnexus:navigated` `CustomEvent` (`detail.url`) after each swap
- Sends `x-wrnexus-nav: 1` on fetches so the server can return the page fragment
- Appends any `/__wrnexus/*` runtime scripts the incoming page needs but the current document lacks

### Browser: realtime rooms

Connects to `/realtime/<name>` over WebSocket (`ws`/`wss` chosen from `location.protocol`). Two usage modes.

Programmatic API via `window.wire`:

```ts
wire.room(name): Room          // open (or reuse) a room connection
wire.bindRooms(root?)          // (re)bind declarative [data-room] containers

interface Room {
  name: string;
  send(obj: object | string): Room;         // JSON-stringifies objects; queues until open
  on(type: string, cb): Room;               // filter by msg.type; "*" or a fn = all messages
  on(cb): Room;
  close(): Room;
}
```

Internal lifecycle messages are emitted to listeners as `{ type }`: `__open`, `__close`, `__error`, and `__raw` (non-JSON frames, with `data`). Reconnect uses exponential backoff capped at 5s; queued sends flush on reconnect.

Declarative binding (zero JS) on a `data-room="<name>"` container:

| Attribute                            | On              | Purpose                                                                  |
| ------------------------------------ | --------------- | ------------------------------------------------------------------------ |
| `data-room="<name>"`                 | container       | Connect to room `<name>`                                                 |
| `data-room-user="<id>"`              | container       | Identify the connection (`?user=<id>`)                                   |
| `data-room-log`                      | element         | Where incoming messages are appended                                     |
| `<template data-room-item="<type>">` | template        | Row template for messages of that `type` (empty = fallback)              |
| `%field%`                            | inside template | Placeholder filled from the message field (text/attr only, HTML-escaped) |
| `data-room-status`                   | element         | Reflects connection state text (`connected`/`disconnected`/`error`)      |
| `data-room-status-class`             | status element  | Base class; a state variant (`is-connected`, …) is appended              |
| `<form data-room-send>`              | form            | Submits named fields as a JSON message                                   |
| `data-room-reset`                    | form field      | Clears that field after send                                             |

Rebinds on `wrnexus:navigated` and closes rooms whose container has left the page.

## Usage

Server side — serve the runtime strings from your router (example with `Bun.serve`):

```ts
import { getReactiveRuntime, getNavRuntime, getRealtimeRuntime } from "@wrnexus/csr";

const routes: Record<string, string> = {
  "/__wrnexus/reactive.js": getReactiveRuntime(),
  "/__wrnexus/nav.js": getNavRuntime(),
  "/__wrnexus/realtime.js": getRealtimeRuntime(),
};

Bun.serve({
  fetch(req) {
    const body = routes[new URL(req.url).pathname];
    if (body) {
      return new Response(body, {
        headers: { "content-type": "text/javascript; charset=utf-8" },
      });
    }
    return new Response("Not found", { status: 404 });
  },
});
```

Browser side — server-rendered HTML that the reactive runtime hydrates:

```html
<div data-scope="count: 0, showPassword: false">
  <button data-on-click="count++">+1</button>
  <span data-text="count"></span>
  <p>Total: {{count}}</p>
  <input type="{showPassword ? 'text' : 'password'}" />
  <button
    data-on-click="showPassword = !showPassword"
    aria-label="{showPassword ? 'Hide password' : 'Show password'}"
  >
    Toggle password
  </button>
</div>
<script src="/__wrnexus/reactive.js"></script>
```

State interpolation in ordinary attributes is reactive. The compiler keeps the
initial SSR value and emits an internal binding so attributes such as `type`,
`aria-label`, `aria-pressed`, `class`, and `href` update after state changes.

A realtime chat, fully declarative:

```html
<div data-room="lobby" data-room-user="ada">
  <div data-room-status></div>
  <ul data-room-log></ul>
  <template data-room-item="chat"><li>%user%: %text%</li></template>
  <form data-room-send>
    <input name="text" data-room-reset />
    <input type="hidden" name="type" value="chat" />
    <button>Send</button>
  </form>
</div>
<script src="/__wrnexus/realtime.js"></script>
```

Or drive a room from code:

```ts
const room = wire.room("lobby");
room.on("chat", (msg) => console.log(msg.user, msg.text));
room.send({ type: "chat", user: "ada", text: "hi" });
```

## Requirements / Notes

- **Bun-only** on the server (the package integrates with Bun-based WrNexus servers); the emitted strings are plain browser JS with no dependencies.
- Browser runtimes are **self-contained** (no imports, no build step) and **idempotent**, so re-hydration after navigation or HMR is safe.
- Designed for a **strict CSP**: the reactive expression evaluator avoids `eval`/`new Function` (no `unsafe-eval`), and DOM swaps use `importNode`/attribute writes rather than `innerHTML` (Trusted-Types friendly).
- Peer packages: rendered `.wrn` components and the serving layer come from `@wrnexus/core` (the sole dependency); pages are rendered by the WrNexus dev/prod server.

### Exported TypeScript declarations

```ts
/**
 * Browser reactive runtime (Point 2: reactive directives).
 *
 * Served verbatim at `/__wrnexus/reactive.js` for any page that contains a
 * `data-scope`. It is plain browser JS (no build step) and self-contained: it
 * inlines a tiny `signal()` so it has no imports to resolve.
 *
 * Supported directives (this is exactly what the `.wrn` compiler emits):
 *   data-scope="count: 0, name: 'x'"   declare reactive state on a subtree
 *   data-on-<event>="count++"          run a statement in scope on an event
 *   data-text="expr"                   element textContent follows an expression
 *   data-wrn-loop-locals="base64-json"   preserves SSR {#each} item/index values
 *   data-wrnexus-csr="id"                 target for generated CSR fetch bindings
 *   {{expr}} or {expr}                 interpolation inside text nodes
 *
 * Expressions are evaluated by a tiny parser instead of `eval`/`new Function`,
 * so production can use a strong CSP without `unsafe-eval`.
 */
declare const REACTIVE_RUNTIME: string;

/**
 * Client-side navigation runtime, served at `/__wrnexus/nav.js`.
 *
 * Progressive enhancement over normal links: intercepts same-origin `<a>`
 * clicks, fetches the target page's HTML, swaps the `#app` container in place,
 * updates history/title/scroll, ensures any framework runtimes the new page
 * needs are present, and re-hydrates.
 *
 * Before replacing the current page, component lifecycle behaviors are
 * explicitly disposed. This ensures `unmount` hooks and watcher cleanups run
 * before the old DOM is removed.
 *
 * Programmatic navigation is exposed as:
 *
 *   window.__wrnexusNavigate(url)
 */
declare const NAV_RUNTIME: string;

/**
 * Client realtime runtime, served at `/__wrnexus/realtime.js`.
 *
 * Two ways to use it — no hand-written WebSocket code either way:
 *
 * 1. Declarative (zero JS). Put `data-room="<name>"` on a container; the runtime
 *    connects, appends incoming messages to `[data-room-log]` using a
 *    `<template data-room-item="<type>">` (fields via `%field%`, HTML-escaped),
 *    reflects connection state on `[data-room-status]`, and sends a
 *    `<form data-room-send>`'s named fields as JSON on submit (fields marked
 *    `data-room-reset` clear after send). Optional `data-room-user` identifies
 *    the connection.
 *
 * 2. Programmatic: `const room = wire.room("chat"); room.on("chat", fn);
 *    room.send({ type: "chat", text })`. Handles connect, JSON, reconnect.
 *
 * Rebinds on `wrnexus:navigated` (client-side nav) and closes rooms whose
 * container has left the page.
 */
declare const REALTIME_RUNTIME: string;

/**
 * @wrnexus/csr — the browser reactive runtime.
 *
 * Components are `.wrn` files rendered on the SERVER (see @wrnexus/dev-server)
 * and hydrated in the browser by this single, generic runtime — served once at
 * `/__wrnexus/reactive.js` for any page that contains a `data-scope`. There are
 * no per-component browser bundles: SSR stays cleanly separated from CSR.
 */

/** The reactive runtime served at `/__wrnexus/reactive.js` (plain browser JS). */
declare function getReactiveRuntime(): string;
/** The client-side navigation runtime served at `/__wrnexus/nav.js`. */
declare function getNavRuntime(): string;
/** The realtime client runtime served at `/__wrnexus/realtime.js`. */
declare function getRealtimeRuntime(): string;

export { NAV_RUNTIME, REACTIVE_RUNTIME, REALTIME_RUNTIME, getNavRuntime, getReactiveRuntime, getRealtimeRuntime };
```

---

## @wrnexus/db

Documentation URL: https://wrnexusjs.dev/packages/db

# @wrnexus/db

> The database layer for WrNexus: TS models as the single source of truth for DDL, validation, and result typing, plus a driver-based `Db` client, migrations, and a sqlc-style query generator.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/db` is the server-side data layer. You describe tables as TypeScript
models (the `v` column builder + `table()`); those models drive migrations,
coerce raw DB rows into typed objects, and feed the query generator. A thin
`Driver` interface is implemented by adapters for SQLite (`bun:sqlite`),
Postgres/MySQL (`Bun.SQL`), and MongoDB. The `Db` client adds ergonomics —
model-mapped `all`/`one`, transactions, `createTable`, pagination, and batched
relation loading. A process-wide registry (`getDb`/`setDb`) exposes configured
connections to pages and API routes. Reach for it whenever a WrNexus app needs
persistence.

## Installation

```bash
bun add @wrnexus/db
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

The core entry (`@wrnexus/db`) is dependency-free; adapters and connectors live
in subpaths so importing the core doesn't pull in every driver.

| Subpath                | Exports                                                                                                                                           |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `@wrnexus/db`          | `v`, `table`, `Column`, `createDb`, `createTableSql`, the client registry (`setDb`/`getDb`/…), migrations, the query generator, and query helpers |
| `@wrnexus/db/connect`  | `connectFromConfig`, `resolveDbUrl`, `DbConfig` — resolve a config to a live SQL `Db`                                                             |
| `@wrnexus/db/session`  | `sqliteSessionStore` — a `bun:sqlite` session backend for `@wrnexus/core`                                                                         |
| `@wrnexus/db/sqlite`   | `sqlite(url?)` driver                                                                                                                             |
| `@wrnexus/db/postgres` | `postgres(url)` driver                                                                                                                            |
| `@wrnexus/db/mysql`    | `mysql(url)` driver                                                                                                                               |
| `@wrnexus/db/mongo`    | `mongo(url, dbName?)` document API                                                                                                                |

### Schema — `v`, `table`, `Column`

`table(name, columns)` returns a `Model<T>`. Columns are built with `v`:

```ts
import { v, table } from "@wrnexus/db";

const users = table("users", {
  id: v.id(), // auto-increment primary key
  email: v.text().unique(),
  name: v.text().optional(), // NULLable
  age: v.int().default(0),
  active: v.bool().default(true),
  createdAt: v.timestamp().default("now"), // CURRENT_TIMESTAMP
});
```

Column builders: `v.id`, `v.text` (alias `v.string`), `v.int`, `v.real` (alias
`v.number`), `v.bool` (alias `v.boolean`), `v.timestamp`, `v.json`. `BaseType`
values are `"id" | "text" | "int" | "real" | "bool" | "timestamp" | "json"`.

`Column` modifiers (chainable): `.optional()`, `.unique()`, `.default(value)`
(use the sentinel `"now"` for a current-timestamp default), `.primaryKey()`,
`.references(table, column = "id")`. `.coerce(raw)` converts a raw DB value to
its JS type.

A `Model<T>` exposes: `name`, `columns`, `parse(row)` (coerces a raw row into a
typed `T`; unknown columns pass through), and `describe()` (returns each
column's `ColumnDef`, for migrations and the generator).

### Driver & client — `createDb`, `Db`, `Driver`

```ts
createDb(driver: Driver): Db
```

A `Driver` (implemented by adapters) exposes `dialect`, `query(sql, params?)`,
`exec(sql, params?)`, `transaction(fn)`, and `close()`. `createDb` wraps it in a
`Db`:

- `all<T>(sql, params?, model?)` — all rows, mapped through `model.parse` when a model is given.
- `one<T>(sql, params?, model?)` — first row or `null`.
- `exec(sql, params?)` — `Promise<ExecResult>` (`{ changes, lastInsertId? }`).
- `tx(fn)` — run `fn(db)` in a transaction; rolls back on throw. Nested `tx` reuses the current transaction.
- `createTable(model)` — runs the model's `CREATE TABLE IF NOT EXISTS` DDL.
- `close()`.

Every query is parameterized (positional params). `createTableSql(model, dialect, ifNotExists?)`
renders `CREATE TABLE` directly; `Dialect` is `"sqlite" | "postgres" | "mysql"`.

### Client registry — `getDb` / `setDb`

A process-wide registry the runtime configures at startup from `wrnexus.config.ts`
(the `db` setting is the default; `databases.<name>` entries are named).

- `setDb(db)` / `setDb(name, db)` — set the default or a named connection.
- `registerDb(name, db)` — alias of `setDb(name, db)`.
- `getDb(name = "default")` — the default or a named `Db` (throws if unconfigured).
- `hasDb(name?)`, `databaseNames()`, `closeDatabases()`.

```ts
const users = await getDb().all("SELECT * FROM users");
const events = await getDb("analytics").all("SELECT * FROM hits");
```

### Adapters

- `@wrnexus/db/sqlite` — `sqlite(url = ":memory:")`. `url` may be `file:./dev.db`, a raw path, or `:memory:`. Built on `bun:sqlite`; no external service.
- `@wrnexus/db/postgres` — `postgres(url)` (e.g. `postgres://user:pass@host:5432/db`, placeholders `$N`).
- `@wrnexus/db/mysql` — `mysql(url)` (e.g. `mysql://user:pass@host:3306/db`, placeholders `?`). Postgres/MySQL both use Bun's native `Bun.SQL` client and its pooled `begin()` for transactions.
- `@wrnexus/db/mongo` — `mongo(url, dbName?)`. A document API, not SQL: `db.collection(model)` returns a `MongoRepo<T>` with `find`, `findOne`, `insert`, `insertMany`, `update`, `delete`, `count`. Reads are coerced through `model.parse` (`_id` is mapped to `id`). The `mongodb` driver is imported lazily — install it to use Mongo.

### Migrations

Migrations are `.sql` files (in e.g. `app/db/migrations`), each split into
`-- +up` and `-- +down` sections. A file with no markers is treated entirely as
`up`. Applied names are recorded in a `_wire_migrations` table so each runs once.

- `parseMigration(name, content)` → `Migration` (`{ name, up, down }`).
- `loadMigrations(dir)` — parse all `.sql` files, sorted by filename.
- `appliedMigrations(db)` — applied names, oldest first.
- `migrate(db, dir)` — apply all pending (each in a transaction); returns applied names.
- `rollback(db, dir)` — roll back the most recent; returns its name or `null`.
- `status(db, dir)` — `{ name, applied }[]` for every migration file.
- `scaffoldMigration(dir, name, dialect, models?)` — write a new numbered migration; with `models` it generates `CREATE`/`DROP` for every table (referenced tables first via topological sort). Returns the file path.

### Query generator (sqlc-style)

Turns annotated SQL into typed TS functions; params and result types are
inferred from the models, and rows map back through `model.parse` when the
selected columns are model columns.

- `parseQueries(content)` → `QueryDef[]` from `-- name: X :one|:many|:exec` blocks.
- `generateQueriesFile(queries, models, dialect)` → the `queries.gen.ts` source. `models` is a `ModelRef[]` (`{ varName, model }`). Rewrites `:name` placeholders to positional (`$N`/`?`) form.

`QueryKind` is `"one" | "many" | "exec"`.

### Query helpers

- `paginate(db, { sql, params?, countSql?, model? }, opts?)` — offset pagination. Pass the base SELECT **without** a LIMIT; it appends the page window and derives `total` via a COUNT subquery. `PageOptions`: `{ page?, perPage?, maxPerPage? }` (defaults page 1, perPage 20, maxPerPage 100). Returns `Paginated<T>` (`items, page, perPage, total, totalPages, hasNext, hasPrev`).
- `loadRelated(db, parents, opts)` — load a relation for many parents in ONE query and attach it (no N+1). `RelationOptions`: `{ table, foreignKey, as, localKey?, single?, model? }` — `single: true` attaches one child (belongsTo), otherwise an array (hasMany). Table/foreign-key names are validated as identifiers.

### Session store

`@wrnexus/db/session` exports `sqliteSessionStore(path = "sessions.db")`, a
persistent, process-shared `SessionBackend` (from `@wrnexus/core`) backed by
`bun:sqlite` (WAL mode). Sessions survive restarts and are shared by every
worker on the same file.

## Usage

Define models, connect, create tables, and query with typed results:

```ts
import { v, table, createDb } from "@wrnexus/db";
import { sqlite } from "@wrnexus/db/sqlite";

const users = table<{ id: number; email: string; name: string | null }>("users", {
  id: v.id(),
  email: v.text().unique(),
  name: v.text().optional(),
  createdAt: v.timestamp().default("now"),
});

const db = createDb(sqlite("file:./dev.db"));
await db.createTable(users);

await db.exec("INSERT INTO users (email) VALUES (?)", ["a@b.com"]);
const list = await db.all("SELECT * FROM users", [], users); // rows typed + coerced
const one = await db.one("SELECT * FROM users WHERE id = ?", [1], users);

await db.tx(async (tx) => {
  await tx.exec("UPDATE users SET name = ? WHERE id = ?", ["Ada", 1]);
});
```

Resolve a config to a live SQL `Db`, and register it:

```ts
import { connectFromConfig } from "@wrnexus/db/connect";
import { setDb, getDb } from "@wrnexus/db";

setDb(connectFromConfig({ driver: "sqlite", url: "file:./dev.db" }, process.cwd()));
const rows = await getDb().all("SELECT * FROM users");
```

Run migrations and paginate:

```ts
import { migrate, paginate } from "@wrnexus/db";

await migrate(db, "app/db/migrations");
const pageTwo = await paginate(
  db,
  { sql: "SELECT * FROM users ORDER BY id", model: users },
  { page: 2 },
);
```

MongoDB (document API):

```ts
import { mongo } from "@wrnexus/db/mongo";

const mdb = await mongo(process.env.MONGO_URL!, "app");
const repo = mdb.collection(users);
await repo.insert({ email: "a@b.com" });
const active = await repo.find({ active: true });
```

## Configuration

`connectFromConfig` (and the runtime) read a `DbConfig` (`{ driver, url }`)
where `driver` is `sqlite | postgres | mysql`. `resolveDbUrl(url, appRoot?)`
resolves a relative `file:`/`sqlite:` URL against the app root. MongoDB is not a
SQL driver — use `@wrnexus/db/mongo` directly.

## Requirements / Notes

- **Bun-only.** Uses `bun:sqlite` (SQLite adapter + session store) and `Bun.SQL`
  (Postgres/MySQL). Migrations/scaffolding use `node:fs`/`node:path`.
- Works with `@wrnexus/core` — `sqliteSessionStore` implements its
  `SessionBackend`; `getDb`/`setDb` are wired by the WrNexus runtime from
  `wrnexus.config.ts`.
- The `mongodb` npm package is an optional, lazily-imported peer — install it
  only if you use `@wrnexus/db/mongo`. The core package stays dependency-free.

### Exported TypeScript declarations

```ts
import { M as Model } from './schema-tVurYsbL.js';
export { B as BaseType, C as Column, a as ColumnDef, b as Columns, t as table, v } from './schema-tVurYsbL.js';
import { a as Db, b as Dialect, R as Row } from './driver-DA53QHkO.js';
export { D as Driver, E as ExecResult, T as TxHandle, c as createDb, d as createTableSql } from './driver-DA53QHkO.js';

/**
 * A process-wide database registry. The framework configures it at server
 * startup from `wrnexus.config.ts`: the `db` setting becomes the **default**
 * connection, and each entry under `databases` becomes a **named** connection.
 * Pages and API routes then call `getDb()` for the default, or `getDb("<name>")`
 * for a named one, to run queries (including the generated typed functions).
 *
 *   const users = await getDb().all("SELECT * FROM users");            // default db
 *   const events = await getDb("analytics").all("SELECT * FROM hits"); // named db
 */

/** Set the default database (called by the runtime at startup). */
declare function setDb(db: Db): Db;
/** Set a named database (from `databases.<name>` in config). */
declare function setDb(name: string, db: Db): Db;
/** Register a named database. Alias of `setDb(name, db)` for readability. */
declare function registerDb(name: string, db: Db): Db;
/** The default database, or a named one. Throws if it isn't configured. */
declare function getDb(name?: string): Db;
/** Whether the default (or a named) database has been configured. */
declare function hasDb(name?: string): boolean;
/** Names of all configured databases (the default appears as "default"). */
declare function databaseNames(): string[];
/** Close every configured database and clear the registry. */
declare function closeDatabases(): Promise<void>;

/**
 * Migration runner. Migrations are `.sql` files in `app/db/migrations`, each
 * split into `-- +up` and `-- +down` sections. Applied migrations are recorded
 * in a `_wire_migrations` table so they run exactly once, newest-last.
 *
 * `scaffoldMigration(..., models)` writes an initial migration straight from the
 * TS models — the source of truth — so you don't hand-write the first schema.
 */

interface Migration {
    name: string;
    up: string;
    down: string;
}
/** Split a migration file into its `up` and `down` SQL sections. */
declare function parseMigration(name: string, content: string): Migration;
/** Load and parse all migration files in a directory, sorted by filename. */
declare function loadMigrations(dir: string): Migration[];
/** Names of already-applied migrations, oldest first. */
declare function appliedMigrations(db: Db): Promise<string[]>;
/** Apply all pending migrations (each in a transaction). Returns applied names. */
declare function migrate(db: Db, dir: string): Promise<string[]>;
/** Roll back the most recently applied migration. Returns its name, or null. */
declare function rollback(db: Db, dir: string): Promise<string | null>;
/** Full status: every migration file with whether it has been applied. */
declare function status(db: Db, dir: string): Promise<{
    name: string;
    applied: boolean;
}[]>;
/**
 * Write a new migration file. With `models`, the `up`/`down` are generated from
 * the TS models (create/drop every table); otherwise empty stubs are written.
 * Returns the created file path.
 */
declare function scaffoldMigration(dir: string, name: string, dialect: Dialect, models?: Model[]): string;

/**
 * sqlc-style query generator. Annotated SQL in `app/db/queries/*.sql` becomes
 * typed TS functions whose params + results are inferred from the TS models and
 * whose rows are mapped back through `model.parse`.
 *
 *   -- name: GetUserByEmail :one
 *   SELECT * FROM users WHERE email = :email;
 *
 * →  GetUserByEmail(db, { email: string }): Promise<{…} | null>
 *
 * Type inference is best-effort (comparisons + INSERT column lists + SELECT list
 * vs the model); anything it can't resolve becomes `unknown`.
 */

type QueryKind = "one" | "many" | "exec";
interface QueryDef {
    name: string;
    kind: QueryKind;
    sql: string;
}
/** A model plus the variable name it is exported under (for imports). */
interface ModelRef {
    varName: string;
    model: Model;
}
/** Parse annotated queries from one `.sql` file's contents. */
declare function parseQueries(content: string): QueryDef[];
/** Generate the full `queries.gen.ts` source. */
declare function generateQueriesFile(queries: QueryDef[], models: ModelRef[], dialect: Dialect): string;

/**
 * Query ergonomics built on the `Db` client: offset pagination and a batched
 * relation loader (avoids N+1). Both are dialect-aware — placeholders follow the
 * driver's style (`$N` for Postgres, `?` for SQLite/MySQL).
 */

interface PageOptions {
    page?: number;
    perPage?: number;
    /** Upper bound on perPage. Default 100. */
    maxPerPage?: number;
}
interface Paginated<T> {
    items: T[];
    page: number;
    perPage: number;
    total: number;
    totalPages: number;
    hasNext: boolean;
    hasPrev: boolean;
}
/**
 * Paginate a SELECT. Pass the base query WITHOUT a LIMIT; the helper appends the
 * page window and derives the total with a COUNT over the same query.
 *
 *   await paginate(db, { sql: "SELECT * FROM users ORDER BY name", model: users }, { page: 2 })
 */
declare function paginate<T = Row>(db: Db, query: {
    sql: string;
    params?: unknown[];
    countSql?: string;
    model?: Model<T>;
}, opts?: PageOptions): Promise<Paginated<T>>;
interface RelationOptions<C> {
    /** Parent field whose value matches the child's foreign key. Default "id". */
    localKey?: string;
    /** Child table to load from. */
    table: string;
    /** Child column that references the parent. */
    foreignKey: string;
    /** Property name to attach on each parent. */
    as: string;
    /** true → attach a single child (belongsTo); false → an array (hasMany). */
    single?: boolean;
    /** Map child rows through a model. */
    model?: Model<C>;
}
/**
 * Load a relation for a set of parent rows in ONE query and attach it to each
 * parent (no N+1). Returns the same parents, each with `opts.as` populated.
 *
 *   await loadRelated(db, users, { table: "posts", foreignKey: "userId", as: "posts" })
 */
declare function loadRelated<P extends Row, C extends Row = Row>(db: Db, parents: P[], opts: RelationOptions<C>): Promise<(P & Record<string, C | C[] | null>)[]>;

export { Db, Dialect, type Migration, Model, type ModelRef, type PageOptions, type Paginated, type QueryDef, type QueryKind, type RelationOptions, Row, appliedMigrations, closeDatabases, databaseNames, generateQueriesFile, getDb, hasDb, loadMigrations, loadRelated, migrate, paginate, parseMigration, parseQueries, registerDb, rollback, scaffoldMigration, setDb, status };
```

---

## @wrnexus/dev-server

Documentation URL: https://wrnexusjs.dev/packages/dev-server

# @wrnexus/dev-server

> The WrNexus HTTP + WebSocket server runtime — request dispatch, SSR document assembly, live-reload (HMR), and the portable production handler.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

This package is the server runtime that powers a WrNexus app in both development and production. A single **request runtime** (`createHandlers`) owns HTTP/WebSocket dispatch and SSR document assembly; it knows nothing about _how_ modules and assets are produced, so the dev and prod entry points wire in different backends: dev uses dynamic module loading plus on-the-fly bundling and injects a live-reload client; prod uses a static, pre-built manifest with cache-immutable assets. The package also ships a multi-app **gateway** (route several apps by `Host` header behind one port) and a portable `node:http` adapter for WinterCG hosts. It is entirely server-side and Bun-native (`Bun.serve`, `Bun.file`, `Bun.gzipSync`).

## Installation

```bash
bun add @wrnexus/dev-server
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported for the full server; the `node:http` adapter is for WinterCG embedding only).

## API

### Main entry (`@wrnexus/dev-server`)

| Export                                                    | Kind                      | Purpose                                                                                                                               |
| --------------------------------------------------------- | ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `startServer(opts: ServeOptions)`                         | `Promise<RunningServer>`  | Start the dev server on `Bun.serve`: builds the router, connects/migrates databases, wires assets + HMR, and starts the file watcher. |
| `createHandlers(deps: RuntimeDeps)`                       | `Handlers`                | The shared request runtime (fetch + websocket handlers). Re-exported from `runtime.ts`.                                               |
| `createProductionServer(manifest, opts)`                  | `Bun.Server`              | Start the production server from a precompiled manifest.                                                                              |
| `createProductionHandlers(manifest, opts)`                | `Handlers`                | Build the portable prod fetch/websocket handlers with no server bound (the deployment-adapter seam).                                  |
| `startGateway(opts: GatewayOptions)`                      | `Promise<RunningGateway>` | Boot multiple apps as child processes and route by `Host`.                                                                            |
| `toRequest`, `writeResponse`, `nodeListener`, `serveNode` | functions                 | `node:http` ↔ WinterCG `Request`/`Response` adapter.                                                                                  |
| `RESTART_EXIT_CODE`                                       | `number` (`97`)           | Exit code the dev child uses to ask the supervisor for a fresh process.                                                               |
| `STYLES_HREF`, `HMR_CLIENT_JS`                            | constants                 | The global stylesheet URL and the inline HMR client script.                                                                           |

Exported types: `ServeOptions`, `RunningServer`, `RuntimeDeps`, `AssetServer`, `WsData`, `GatewayApp`, `GatewayOptions`, `GatewayAuth`, `GatewaySecurity`, `RunningGateway`, `FetchHandler`.

### `startServer(opts)`

```ts
interface ServeOptions {
  appDir: string; // absolute/relative path to the app/ dir
  port?: number; // default 3000
  hostname?: string; // default "localhost"
  mode?: Mode; // "development" | "production"; default "development"
  hmr?: boolean; // inject live-reload client; default (mode === "development")
  styleEntry?: string | null; // resolved absolute path to the global CSS entry
  stylesConfig?: StylesConfig; // custom styles processor (e.g. Tailwind/PostCSS)
  head?: string; // raw HTML appended to every page <head>
  seo?: SeoConfig; // global SEO defaults
  security?: SecurityConfig; // security headers + CORS policy
  theme?: ThemeConfig; // design-token theme (merged over built-in light/dark)
  i18n?: I18nConfig; // default language + supported locales
  db?: { driver: string; url: string }; // default db → getDb(); dev auto-migrates
  databases?: Record<string, { driver: string; url: string }>; // named dbs → getDb("<name>")
  realtime?: { scale?: boolean; redisUrl?: string }; // bridge rooms over Redis across processes
}

interface RunningServer {
  port: number;
  hostname: string;
  url: string;
  router: Router;
  stop(): void;
}
```

In development, `startServer` also connects `app/db/migrations` (and `app/db/<name>/migrations`) and auto-applies migrations, then starts an in-process file watcher. CSS edits hot-swap live. Page, component, layout, API, middleware, realtime, schema, locale, and public-asset edits invalidate only their cached modules, rescan routes where necessary, and morph fresh HTML through the existing HMR WebSocket. The server process and active gateway stay running.

### `createHandlers(deps)`

The core runtime shared by dev and prod. It handles CORS preflight, `/healthz` and `/__wrnexus/health`, request-body size limits (413), HMR socket upgrades (`/__wrnexus/hmr`), realtime WebSocket upgrades (`defineRoom` default export or a raw `websocket` export), the middleware pipeline, API routes (`/api/*`), framework assets (`/__wrnexus/*`), public assets, and full SSR page rendering (component mounts, layouts, slots, i18n markers, per-page script selection, ETag/304, gzip).

```ts
interface RuntimeDeps {
  mode: Mode;
  hmr: boolean; // inject the live-reload client into pages
  router: Router;
  loadModule(file: string): Promise<Record<string, unknown>>;
  getMiddleware(): Promise<Middleware[]>;
  assets: AssetServer; // serves /__wrnexus/* (islands, reactive, hmr)
  hasStyles?: boolean; // inject the global stylesheet link
  hasUi?: boolean; // inject the Wire UI stylesheet (/__wrnexus/ui.css)
  theme?: ResolvedTheme; // enables /__wrnexus/theme.css + <html data-theme>
  i18n?: ResolvedI18n; // enables ctx.t, <html lang>, {t:key} markers
  inlineStyles?: string; // inline small prod stylesheets into <head>
  assetVersion?: string; // cache-busting ?v= on framework asset URLs
  head?: string; // raw HTML appended to every page <head>
  seo?: SeoConfig;
  security?: SecurityConfig;
  maxBodyBytes?: number; // 413 above this; default 10 MB
  hub?: HmrHub; // browser HMR sockets (dev only)
  realtimeBus?: RealtimeBus; // cross-process room bridge (Redis pub/sub)
}

interface Handlers {
  fetch(req: Request, server: UpgradeServer): Promise<Response | undefined>;
  websocket: { open; message; close; drain };
}
```

`WsData` is the per-connection socket tag — a discriminated union of `{ kind: "realtime"; handler }`, `{ kind: "room"; meta }`, or `{ kind: "hmr" }`.

### `createProductionServer(manifest, opts)` / `createProductionHandlers(manifest, opts)`

Production runs the _same_ request runtime as dev, but with no filesystem scan and no runtime bundling. `wrnexus build` emits an entry that statically imports every route/component/layout module and passes them as a `ProdManifest`; the route-matching tables are rebuilt from the raw patterns.

```ts
interface ProdManifest {
  pages: { raw: string; mod: RouteModule }[];
  api: { raw: string; mod: RouteModule }[];
  realtime: { raw: string; mod: RouteModule }[];
  middleware: Middleware[];
  components: { name: string; mod: RouteModule }[];
  layouts: { name: string; mod: RouteModule }[];
}

interface ProdOptions {
  stylesPath?: string;
  inlineStyles?: string;
  reactivePath?: string;
  themePath?: string;
  themeJsPath?: string;
  theme?: ResolvedTheme;
  uiCssPath?: string;
  schemasJs?: string;
  i18n?: ResolvedI18n;
  db?: { driver: string; url: string };
  databases?: Record<string, { driver: string; url: string }>;
  realtime?: { scale?: boolean; redisUrl?: string };
  assetVersion?: string;
  publicDir?: string;
  head?: string;
  seo?: SeoConfig;
  security?: SecurityConfig;
  port?: number;
  hostname?: string;
  maxBodyBytes?: number;
}
```

`createProductionServer` also loads the `.env` cascade for the `production` profile, installs `SIGTERM`/`SIGINT` graceful shutdown, and binds `0.0.0.0` (port from `opts.port` or `$PORT`, default 3000). Migrations are **not** run here — apply them first (`wrnexus db migrate`). `createProductionHandlers` returns the bare handlers for edge/serverless/`node:http` deployment.

### `startGateway(opts)` — multi-app gateway

Serves several apps behind one port and routes each request to the right app by its `Host` header. Each app runs as its own child process (full isolation); the gateway is a thin host-based reverse proxy for HTTP and WebSocket. In development, normal application edits are applied inside the existing child and sent through its existing HMR connection. The child supervisor remains as crash recovery rather than the normal update path. Apps communicate at runtime via `@wrnexus/pubsub` (use the Redis driver so messages cross processes).

```ts
interface GatewayOptions {
  port?: number; // default 3000
  hostname?: string; // dev: "127.0.0.1"; production: "0.0.0.0"
  mode?: "development" | "production";
  apps: GatewayApp[];
  security?: GatewaySecurity;
}

interface GatewayApp {
  name: string; // app id (for logs)
  dir: string; // app root (contains app/ + wrnexus.config.ts)
  domains: string[]; // host names routed here
  port?: number; // fixed internal port; else assigned
  auth?: GatewayAuth; // per-app edge access control
}

interface GatewayAuth {
  basic?: { user: string; pass: string } | Array<{ user: string; pass: string }>;
  allowIps?: string[]; // exact-match IP allowlist
  forward?: { url: string }; // forward-auth (SSO): 2xx allows
}

interface GatewaySecurity {
  trustedHostsOnly?: boolean; // 404 unknown hosts instead of first app
  rateLimit?: { max: number; windowMs?: number }; // global by client IP (429)
  headers?: boolean; // add baseline edge security headers
  forwardedHeaders?: boolean; // set X-Forwarded-* (default true)
  accessLog?: boolean;
}
```

Forward auth is a verification hook, not a login page. Configure `forward.url` with a
dedicated endpoint such as `http://sso.localhost:3000/api/verify`. The gateway forwards
the request's `Cookie` and `Authorization` headers plus `X-Forwarded-Host`,
`X-Forwarded-Proto`, `X-Original-Method`, and `X-Original-Uri` (including its query
string). The verifier must return 2xx only for an authenticated session and 401/403
otherwise. Pointing forward auth at an SSO home page that always returns 200 allows
every request and does not implement SSO.

For browser SSO, the verifier may return a `302`/`303`/`307`/`308` with a `Location`
header pointing to its login page. The gateway passes that redirect to the browser. The
login flow should validate a signed `returnTo` value before redirecting back; API clients
should receive `401`/`403` instead of an HTML login redirect.

Open the gateway URL (normally `http://127.0.0.1:3000`), not an app's internal
port. The gateway exposes `/__gateway/health` (JSON list of routed apps) and returns a
`RunningGateway` (`{ port, url, stop() }`). Use `--host=0.0.0.0` when other devices need
to reach a development gateway.

### `node:http` adapter (from `./adapters/node.ts`)

For embedding the WinterCG handler behind an existing Node server or a WinterCG host. Note the full app still needs Bun-compatible globals (`Bun.file`, `bun:sqlite`, etc.); only the `Request`/`Response` conversion is fully portable.

```ts
type FetchHandler = (req: Request) => Response | undefined | Promise<Response | undefined>;

toRequest(req: IncomingMessage, opts?): Promise<Request>
writeResponse(res: ServerResponse, response: Response): Promise<void>  // preserves multiple Set-Cookie
nodeListener(handler: FetchHandler, opts?): (req, res) => Promise<void>
serveNode(handler: FetchHandler, opts?): Promise<Server>
```

### Subpath export: `@wrnexus/dev-server/serve-entry`

The child process the dev supervisor launches:

```bash
bun run serve-entry.ts <appDir> <port> <mode>
```

It loads the optional `wrnexus.config.ts`, resolves the style entry, calls `startServer`, and prints the route table (Pages / API / Realtime / Components). Because it runs in its own process, every restart re-imports all route modules fresh — that is how the supervisor delivers live reload of edited server code. `startGateway` resolves this entry via `import.meta.resolve("@wrnexus/dev-server/serve-entry")` to spawn each dev app.

## Usage

### Programmatic dev server

```ts
import { startServer } from "@wrnexus/dev-server";

const server = await startServer({
  appDir: "./app",
  port: 3000,
  mode: "development",
  theme: {/* design tokens */},
  db: { driver: "sqlite", url: "file:./data/app.db" },
});

console.log(`Running at ${server.url}`);
// server.stop();
```

### Production server from a build manifest

```ts
import { createProductionServer } from "@wrnexus/dev-server";
import { manifest } from "./dist/manifest.js"; // generated by `wrnexus build`

createProductionServer(manifest, {
  stylesPath: "./dist/styles.css",
  reactivePath: "./dist/reactive.js",
  assetVersion: process.env.BUILD_ID,
  db: { driver: "postgres", url: process.env.DATABASE_URL! },
  port: Number(process.env.PORT) || 3000,
});
```

### Embedding the handler on `node:http`

```ts
import { createProductionHandlers, serveNode } from "@wrnexus/dev-server";

const handlers = createProductionHandlers(manifest, opts);
await serveNode(handlers.fetch, { port: 8080 });
```

### Multi-app gateway

```ts
import { startGateway } from "@wrnexus/dev-server";

await startGateway({
  port: 3000,
  apps: [
    { name: "web", dir: "./apps/web", domains: ["localhost", "web.localhost"] },
    {
      name: "admin",
      dir: "./apps/admin",
      domains: ["admin.localhost"],
      auth: { basic: { user: "root", pass: "s3cret" } },
    },
  ],
  security: { trustedHostsOnly: true, rateLimit: { max: 600 } },
});
```

## Framework asset routes

The runtime serves these framework-owned paths (dev builds them live; prod serves pre-built/immutable versions):

- `/__wrnexus/nav.js`, `/__wrnexus/reactive.js`, `/__wrnexus/realtime.js` — client runtimes
- `/__wrnexus/validate.js`, `/__wrnexus/schemas.js`, `/__wrnexus/i18n.js` — validation + i18n runtimes
- `/__wrnexus/theme.css`, `/__wrnexus/theme.js`, `/__wrnexus/ui.css`, `/__wrnexus/styles.css` — styles
- `/__wrnexus/hmr` — dev-only HMR WebSocket
- `/__wrnexus/csr` — server-evaluated CSR bindings for browser-side API fetches

Pages get only the scripts they use: `nav.js` always, `reactive.js` when a page has a `data-scope`/CSR fetch, plus theme/validation/i18n/realtime runtimes when the relevant markup is present.

## Requirements / Notes

- **Bun-only.** Uses `Bun.serve` (HTTP + WebSocket), `Bun.file`, and `Bun.gzipSync`. The full app also relies on `bun:sqlite` / `Bun.SQL` via `@wrnexus/db`.
- Orchestrates the whole framework: `@wrnexus/core` (context, security, realtime registry), `@wrnexus/router`, `@wrnexus/ssr` (`renderDocument`), `@wrnexus/csr` (client runtimes), `@wrnexus/compiler` (`.wrn` → TS), `@wrnexus/styles`, `@wrnexus/ui`, `@wrnexus/validation`, `@wrnexus/i18n`, `@wrnexus/db`, and `@wrnexus/pubsub` (Redis-backed cross-process realtime).
- `.wrn` files are compiled to TypeScript into a hidden sibling `.wrnexus/` cache dir and dynamically imported; the module cache means each edited server module needs a fresh process (dev) — hence the restart-on-change model.
- Responses are gzipped when the client accepts it and the body is a buffered, compressible payload ≥ 1 KB; streaming/SSE responses opt out via `Cache-Control: no-transform`.
</content>

</invoke>

### Exported TypeScript declarations

```ts
import { Mode, Middleware, SeoConfig, SecurityConfig, RealtimeBus, RealtimeConnectMeta } from '@wrnexus/core';
import { Router } from '@wrnexus/router';
import { ResolvedTheme, MobileConfig, PwaConfig, ObservabilityConfig, TenancyConfig, StylesConfig, ThemeConfig } from '@wrnexus/styles';
import { ResolvedI18n, I18nConfig } from '@wrnexus/i18n';
import { StorageConfig } from '@wrnexus/uploader';
import { DevToolbarConfig } from '@wrnexus/dev-toolbar/types';
import { PluginInput } from '@wrnexus/plugin';
import { DevToolbarCollector } from '@wrnexus/dev-toolbar/server';
import { IncomingMessage, ServerResponse, Server } from 'node:http';

/** Exit code a dev-server child uses to request a clean supervisor restart. */
declare const RESTART_EXIT_CODE = 97;

/**
 * HMR hub — tracks connected browser HMR sockets and broadcasts update events.
 *
 * Each open page holds one WebSocket to `/__wrnexus/hmr`. The in-process file
 * watcher (see index.ts) classifies a change and broadcasts a typed message:
 *
 *   { type: "css" }     -> the browser hot-swaps the stylesheet (no reload)
 *   { type: "reload" }  -> the browser asks for fresh HTML over the HMR socket
 *
 * Page/component/API/middleware/realtime changes invalidate their modules and
 * broadcast `reload` without closing the server or WebSocket. The browser asks
 * the same process for fresh HTML and performs a soft DOM morph.
 */
type HmrMessage = {
    type: "css";
    version: number;
} | {
    type: "reload";
    version: number;
};
/** Minimal shape of a Bun ServerWebSocket we rely on. */
interface Socket {
    send(data: string): unknown;
}
declare class HmrHub {
    private sockets;
    private version;
    add(ws: Socket): void;
    remove(ws: Socket): void;
    broadcastJson(message: unknown): void;
    broadcast(message: HmrMessage): void;
    get size(): number;
    css(): void;
    reload(): void;
}

/**
 * Shared request runtime used by BOTH the dev server and the production server.
 *
 * It owns the HTTP/WebSocket dispatch and the SSR document assembly, but knows
 * nothing about *how* modules or assets are produced — those come in via
 * `RuntimeDeps`. Dev wires in dynamic module loading + on-the-fly bundling;
 * prod wires in a static manifest + pre-built chunks on disk.
 */

/** A realtime module's `websocket` export: a bag of optional lifecycle hooks. */
type WsHandler = Record<string, (...args: any[]) => unknown>;
/**
 * Per-connection socket data. A socket is either an app realtime connection or
 * an internal HMR connection — discriminated by `kind`.
 */
type WsData = {
    kind: "realtime";
    handler: WsHandler;
} | {
    kind: "room";
    meta: RealtimeConnectMeta;
} | {
    kind: "hmr";
    baseUrl: string;
    headers: [string, string][];
};
type RouteModule$1 = Record<string, unknown>;
/** Serves framework-owned assets under `/__wrnexus/*` (islands, reactive, hmr). */
interface AssetServer {
    serve(pathname: string): Promise<Response | null>;
}
interface RuntimeDeps {
    mode: Mode;
    /** When true, inject the live-reload client into rendered pages. */
    hmr: boolean;
    router: Router;
    /** Load a route module by absolute path (dev: dynamic import; prod: manifest). */
    loadModule(file: string): Promise<RouteModule$1>;
    /** Resolve the ordered middleware chain. */
    getMiddleware(): Promise<Middleware[]>;
    /** Serve `/__wrnexus/*` assets. */
    assets: AssetServer;
    /** When true, inject the global stylesheet link into every page head. */
    hasStyles?: boolean;
    /** When true, inject the Wire UI stylesheet link (`/__wrnexus/ui.css`). */
    hasUi?: boolean;
    /** Production build combined theme + UI stylesheet. */
    hasFrameworkStyles?: boolean;
    /** App stylesheet already contains theme + UI CSS and is the only CSS request needed. */
    stylesIncludeFramework?: boolean;
    /** Resolved theme config: enables `/__wrnexus/theme.css` + `<html data-theme>`. */
    theme?: ResolvedTheme;
    /** Resolved i18n bundle: enables `ctx.t`, `<html lang>`, and `{t:key}` markers. */
    i18n?: ResolvedI18n;
    /** Small production stylesheets can be inlined to avoid a render-blocking request. */
    inlineStyles?: string;
    /** Production cache-busting version appended to framework asset URLs. */
    assetVersion?: string;
    /** Raw HTML appended to every page head (e.g. CDN framework links). */
    head?: string;
    /** Global SEO defaults. */
    seo?: SeoConfig;
    mobile?: MobileConfig;
    pwa?: PwaConfig | false;
    /** Framework security headers and CORS policy. */
    security?: SecurityConfig;
    /** Built-in request tracing and Server-Timing policy. */
    observability?: ObservabilityConfig;
    /** Built-in tenant identity resolution. */
    tenancy?: TenancyConfig;
    /** Max request body size in bytes (413 above this). Default 10 MB. */
    maxBodyBytes?: number;
    /** HMR hub for browser live-update sockets (dev only). */
    hub?: HmrHub;
    /**
     * Cross-process realtime bus. When provided, room broadcasts/`toUser` sends are
     * bridged to it so they reach clients on every app process/instance sharing the
     * bus (use the Redis pub/sub driver). Enables realtime across multiple apps.
     */
    realtimeBus?: RealtimeBus;
    devToolbar?: {
        config: DevToolbarConfig;
        collector: DevToolbarCollector;
        root: string;
    };
}
interface UpgradeServer {
    upgrade(req: Request, opts: {
        data: WsData;
    }): boolean;
    /** Bun's per-request socket peer address (used for the non-spoofable client IP). */
    requestIP?(req: Request): {
        address: string;
    } | null;
}
/** The subset of Bun's ServerWebSocket the runtime touches. */
interface Ws {
    data: WsData;
    send(data: string | Uint8Array): unknown;
    close(code?: number, reason?: string): void;
}
interface Handlers {
    fetch(req: Request, server: UpgradeServer): Promise<Response | undefined>;
    websocket: {
        open(ws: Ws): void;
        message(ws: Ws, message: string | Uint8Array): void;
        close(ws: Ws, code?: number, reason?: string): void;
        drain(ws: Ws): void;
    };
}
/** Build the fetch + websocket handlers from a set of dependencies. */
declare function createHandlers(deps: RuntimeDeps): Handlers;

/**
 * The multi-app **gateway** — serves several WrNexus apps behind one port and
 * routes each request to the right app by its `Host` header (domain). This is how
 * a monorepo becomes a multi-domain SaaS: `app-a.com` → apps/a, `app-b.com` → apps/b.
 *
 * Each app runs as its own **process** (full isolation — its own database
 * registry, pubsub, in-memory state), and the gateway is a thin host-based
 * reverse proxy for both HTTP and WebSocket. Apps talk to each other at runtime
 * via @wrnexus/pubsub (use the Redis driver so messages cross processes).
 */
type GatewayForwardAuth = ({
    url: string;
    app?: never;
    path?: never;
} | {
    app: string;
    path?: string;
    url?: never;
}) & {
    headers?: string[];
};
interface GatewayAuth {
    basic?: {
        user: string;
        pass: string;
    } | Array<{
        user: string;
        pass: string;
    }>;
    allowIps?: string[];
    forward?: GatewayForwardAuth;
}
interface GatewayApp {
    /** App id (for logs). */
    name: string;
    /** Path to the app root (the dir containing `app/` and wrnexus.config.ts). */
    dir: string;
    /** Host names routed to this app (e.g. ["localhost", "web.localhost"]). */
    domains: string[];
    publicOrigin?: string;
    /** Optional fixed internal port; otherwise assigned from the gateway port. */
    port?: number;
    /** Access control enforced at the edge for this app. */
    auth?: GatewayAuth;
}
/** Gateway-wide security controls, enforced for every app. */
interface GatewaySecurity {
    /** Reject requests whose Host matches no app (404) instead of routing to the first. */
    trustedHostsOnly?: boolean;
    /** Global rate limit by client IP (429 over the limit). */
    rateLimit?: {
        max: number;
        windowMs?: number;
    };
    /** Add baseline security headers to responses (only where the app didn't set them). */
    headers?: boolean;
    /** Set X-Forwarded-For/Host/Proto so apps see the real client. Default true. */
    forwardedHeaders?: boolean;
    /** Log each request (host → app, method, path, status). */
    accessLog?: boolean;
}
interface GatewayOptions {
    port?: number;
    hostname?: string;
    mode?: "development" | "production";
    environment?: string;
    hmr?: boolean;
    apps: GatewayApp[];
    security?: GatewaySecurity;
}
interface RunningGateway {
    port: number;
    url: string;
    stop(): void;
}
/** Boot every app as a child process, then route by Host on one gateway port. */
declare function startGateway(opts: GatewayOptions): Promise<RunningGateway>;

/**
 * @wrnexus/dev-server/prod — the production server (Point 4).
 *
 * Unlike dev, there is NO filesystem scan and NO on-the-fly bundling at runtime.
 * `wrnexus build` generates an entry that statically imports every route and
 * component module and hands them here as a manifest. We rebuild the (cheap)
 * route-matching tables from the raw patterns and run the exact same request
 * runtime as dev — just with production error pages and no live-reload client.
 */

type RouteModule = Record<string, unknown>;
interface ManifestRoute {
    /** URL pattern, e.g. `/users/[id]`. */
    raw: string;
    /** The statically-imported route module. */
    mod: RouteModule;
}
interface ProdManifest {
    pages: ManifestRoute[];
    api: ManifestRoute[];
    realtime: ManifestRoute[];
    middleware: Middleware[];
    /** Server-rendered components, statically imported and keyed by name. */
    components: {
        name: string;
        mod: RouteModule;
    }[];
    /** Named page layouts (from app/layouts/*.wrn). */
    layouts: {
        name: string;
        mod: RouteModule;
    }[];
}
interface ProdOptions {
    /** Absolute path to the pre-built global stylesheet, if any. */
    stylesPath?: string;
    /** Small production stylesheet inlined into the document head. */
    inlineStyles?: string;
    /** `stylesPath` contains theme + UI + app CSS in cascade order. */
    stylesIncludeFramework?: boolean;
    /** Absolute path to the pre-built reactive runtime. */
    reactivePath?: string;
    /** Absolute path to the pre-built theme stylesheet (`theme.css`). */
    themePath?: string;
    /** Absolute path to the pre-built theme runtime (`theme.js`). */
    themeJsPath?: string;
    /** Resolved theme config: enables `<html data-theme>` + `theme.css` link. */
    theme?: ResolvedTheme;
    /** Absolute path to the pre-built Wire UI stylesheet (`ui.css`). */
    uiCssPath?: string;
    /** Combined production theme + Wire UI stylesheet. */
    frameworkCssPath?: string;
    /** Pre-built `window.__wireSchemas = {...}` script for client validation. */
    schemasJs?: string;
    /** Resolved i18n bundle (default lang + locale messages). */
    i18n?: ResolvedI18n;
    /** Default database connection (driver + url); enables `getDb()`. */
    db?: {
        driver: string;
        url: string;
    };
    /** Named databases, reached with `getDb("<name>")`. */
    databases?: Record<string, {
        driver: string;
        url: string;
    }>;
    /**
     * Absolute path to the default db's migrations bundled into the build
     * (`dist/migrations`). When set, they are applied on startup — like dev.
     */
    migrationsDir?: string;
    /** Bundled migrations dirs for named dbs (name → `dist/db/<name>/migrations`). */
    databaseMigrationDirs?: Record<string, string>;
    /**
     * Auto-apply bundled migrations on server startup (default: true). Set false
     * for deploys that migrate in a separate release step (e.g. multiple instances
     * behind a load balancer, where you migrate once before rolling out).
     */
    autoMigrate?: boolean;
    /** Realtime scaling: bridge room broadcasts over Redis across app processes. */
    realtime?: {
        scale?: boolean;
        redisUrl?: string;
    };
    /** File-upload storage: named stores (local dir / S3). Local dirs resolve against cwd. */
    storage?: StorageConfig;
    /** Cache-busting version appended to framework asset URLs. */
    assetVersion?: string;
    /** Absolute path to copied public assets, if any. */
    publicDir?: string;
    /** Raw HTML appended to every page head. */
    head?: string;
    /** Global SEO defaults. */
    seo?: SeoConfig;
    mobile?: MobileConfig;
    pwa?: PwaConfig | false;
    /** Framework security headers and CORS policy. */
    security?: SecurityConfig;
    /** Built-in request tracing and Server-Timing policy. */
    observability?: ObservabilityConfig;
    /** Built-in tenant identity resolution. */
    tenancy?: TenancyConfig;
    port?: number;
    hostname?: string;
    maxBodyBytes?: number;
}
/**
 * Build the portable request handler from a precompiled manifest — a
 * WinterCG-style `fetch(request) => Response` plus the websocket handlers, with
 * NO server bound. This is the deployment-adapter seam: `createProductionServer`
 * wraps it in `Bun.serve`, `serveNode` bridges it onto `node:http`, and edge or
 * serverless targets can call `fetch` directly.
 */
declare function createProductionHandlers(manifest: ProdManifest, opts: ProdOptions): ReturnType<typeof createHandlers>;
/** Start the production server on Bun from a precompiled manifest. */
declare function createProductionServer(manifest: ProdManifest, opts: ProdOptions): Promise<Bun.Server<WsData>>;

/**
 * node:http adapter — bridge a WinterCG `fetch(request) => Response` handler
 * onto a Node HTTP server, with no external dependencies. Converts a Node
 * `IncomingMessage` into a web `Request` and writes a web `Response` back into a
 * `ServerResponse` (preserving multiple `Set-Cookie` headers).
 *
 * Caveat: the production handler uses Bun-native APIs (Bun.file for assets,
 * Bun.serve for websockets, Bun.SQL / bun:sqlite for the database), so running
 * the FULL app under plain Node needs Bun-compatible globals. This adapter is
 * for WinterCG hosts and for embedding the handler behind an existing
 * `node:http` server; the Request/Response conversion itself is fully portable.
 */

type FetchHandler = (req: Request) => Response | undefined | Promise<Response | undefined>;
/** Convert a Node IncomingMessage into a web Request (buffers the body). */
declare function toRequest(req: IncomingMessage, opts?: {
    origin?: string;
}): Promise<Request>;
/** Write a web Response into a Node ServerResponse. */
declare function writeResponse(res: ServerResponse, response: Response): Promise<void>;
/** A `node:http` request listener that dispatches to a fetch handler. */
declare function nodeListener(handler: FetchHandler, opts?: {
    origin?: string;
}): (req: IncomingMessage, res: ServerResponse) => Promise<void>;
/** Create and start a `node:http` server for a fetch handler. */
declare function serveNode(handler: FetchHandler, opts?: {
    port?: number;
    hostname?: string;
}): Promise<Server>;

/**
 * @wrnexus/dev-server — the development HTTP + WebSocket server.
 *
 * Thin Bun.serve wrapper around the shared runtime (runtime.ts). Dynamic module
 * loading and targeted cache invalidation keep page/component/API edits inside
 * the running process while the HMR socket morphs fresh HTML into the browser.
 */

interface ServeOptions {
    appDir: string;
    port?: number;
    hostname?: string;
    mode?: Mode;
    /** Inject the live-reload client (defaults to true in development). */
    hmr?: boolean;
    /** Resolved absolute path to the global CSS entry, or null. */
    styleEntry?: string | null;
    /** Custom styles config (e.g. a Tailwind/PostCSS processor). */
    stylesConfig?: StylesConfig;
    /** Raw HTML appended to every page head (from wrnexus.config.ts). */
    head?: string;
    /** Global SEO defaults. */
    seo?: SeoConfig;
    /** Framework security headers and CORS policy. */
    security?: SecurityConfig;
    /** Design-token theme config (merged over the built-in light/dark). */
    theme?: ThemeConfig;
    /** i18n config (default language + supported locales). */
    i18n?: I18nConfig;
    /** Default database connection (driver + url). Enables `getDb()` and dev auto-migrate. */
    db?: {
        driver: string;
        url: string;
    };
    /** Named databases, reached with `getDb("<name>")`; migrations under app/db/<name>/. */
    databases?: Record<string, {
        driver: string;
        url: string;
    }>;
    /** Realtime scaling: bridge room broadcasts over Redis across app processes. */
    realtime?: {
        scale?: boolean;
        redisUrl?: string;
    };
    /** File-upload storage: named stores (local dir / S3), reached with `getStore()`. */
    storage?: StorageConfig;
    mobile?: MobileConfig;
    pwa?: PwaConfig | false;
    devToolbar?: boolean | DevToolbarConfig;
    plugins?: PluginInput;
    observability?: ObservabilityConfig;
    tenancy?: TenancyConfig;
}
interface RunningServer {
    port: number;
    hostname: string;
    url: string;
    router: Router;
    stop(): void;
}
declare function startServer(opts: ServeOptions): Promise<RunningServer>;

export { type AssetServer, type FetchHandler, type GatewayApp, type GatewayAuth, type GatewayOptions, type GatewaySecurity, RESTART_EXIT_CODE, type RunningGateway, type RunningServer, type RuntimeDeps, type ServeOptions, type WsData, createHandlers, createProductionHandlers, createProductionServer, nodeListener, serveNode, startGateway, startServer, toRequest, writeResponse };
```

---

## @wrnexus/dev-toolbar

Documentation URL: https://wrnexusjs.dev/packages/dev-toolbar

# @wrnexus/dev-toolbar

Development-only page quality toolbar for WRNexusJS.

## Features

- Runtime, resource and unhandled promise error capture
- Accessibility, SEO, image, media, color, HTML, form, link, responsive and security checks
- Performance and network observations
- Element highlighting and issue filtering
- Server-side issue collector
- Development-only asset strings for direct serving by `@wrnexus/dev-server`
- Safe open-in-editor helper

## Dev-server integration

Serve `DEV_TOOLBAR_RUNTIME` at `/__wrnexus/dev-toolbar.js` and `DEV_TOOLBAR_CSS` at `/__wrnexus/dev-toolbar.css`, then inject this before `</body>` in development:

```html
<script type="module" src="/__wrnexus/dev-toolbar.js" data-wrnexus-dev-toolbar></script>
```

The browser runtime exposes `window.__wrnexusDevToolbar`.

### Exported TypeScript declarations

```ts
export { DevToolbarCategory, DevToolbarClientApi, DevToolbarConfig, DevToolbarElementTarget, DevToolbarFix, DevToolbarIssue, DevToolbarMetrics, DevToolbarPageReport, DevToolbarServerMessage, DevToolbarSeverity, DevToolbarSourceLocation } from './types.js';
export { DEV_TOOLBAR_RULES, DevToolbarRule, DevToolbarRuleContext, accessibilityRules, accessibleName, colorRules, contrastRatio, createFingerprint, createIssue, effectiveBackground, formRules, getStableSelector, htmlRules, imageRules, isVisible, linkRules, luminance, mediaRules, parseRgb, parseSource, performanceRules, responsiveRules, runDevToolbarRules, securityRules, seoRules } from './rules/index.js';
export { DevToolbarApp, DevToolbarCollector, DevToolbarIssueListener, DevToolbarRegistry, DevToolbarRouteOptions, OpenEditorOptions, OpenEditorRequest, buildEditorCommand, createDevToolbarCollector, createDevToolbarRegistry, createServerIssue, handleDevToolbarRoute, issueFromError, openInEditor, resolveEditorFile, serializeDevToolbarJson } from './server/index.js';
export { DEV_TOOLBAR_CSS, DEV_TOOLBAR_RUNTIME } from './client/index.js';
```

---

## @wrnexus/encryption

Documentation URL: https://wrnexusjs.dev/packages/encryption

# @wrnexus/encryption

> Dependency-free crypto helpers for WrNexus: authenticated symmetric encryption (AES-256-GCM), hashing, and HMAC signing.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

This package provides small, focused cryptographic primitives for server-side use: encrypting secrets/tokens/database fields at rest with AES-256-GCM, deriving keys from passwords via PBKDF2, computing SHA-256 digests, and signing/verifying payloads with HMAC-SHA256. It is built entirely on the standard **Web Crypto API** (`crypto.subtle`) plus `btoa`/`atob` and `TextEncoder`/`TextDecoder` — no third-party dependencies. Reach for it whenever you need to protect sensitive values or verify webhook signatures. All functions are `async` (Web Crypto is promise-based).

## Installation

```bash
bun add @wrnexus/encryption
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

All keys are exchanged as **base64 strings** and all digests/signatures as **hex strings**.

| Export        | Signature                                                               | Description                                                                                                           |
| ------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `generateKey` | `() => Promise<string>`                                                 | Generate a random 256-bit AES key, base64-encoded. Store it as a secret.                                              |
| `deriveKey`   | `(password: string, salt: string) => Promise<string>`                   | Derive a base64 AES-256 key from a password + salt using PBKDF2 (100,000 iterations, SHA-256).                        |
| `encrypt`     | `(plaintext: string, key: string) => Promise<string>`                   | AES-256-GCM encrypt a string. Returns base64 of `iv(12 bytes) ‖ ciphertext+tag`. A fresh random IV is used each call. |
| `decrypt`     | `(payload: string, key: string) => Promise<string>`                     | Decrypt a value produced by `encrypt`. Throws if the key is wrong or the data was tampered with.                      |
| `sha256`      | `(data: string) => Promise<string>`                                     | SHA-256 hex digest of a string (e.g. content hashing, dedup keys).                                                    |
| `hmacSign`    | `(data: string, secret: string) => Promise<string>`                     | HMAC-SHA256 hex signature of `data` with `secret` (e.g. signing webhooks).                                            |
| `hmacVerify`  | `(data: string, secret: string, signature: string) => Promise<boolean>` | Constant-time verify of an HMAC-SHA256 hex signature.                                                                 |

Notes:

- `generateKey` produces a 32-byte (256-bit) key via `crypto.getRandomValues`.
- `encrypt`/`decrypt` require a base64-encoded 256-bit key; anything else throws `"Encryption key must be a base64 256-bit key"`.
- `decrypt` throws `"Invalid ciphertext"` if the payload is shorter than the 12-byte IV, and the underlying Web Crypto call throws on any authentication (tag) mismatch.
- `hmacVerify` compares in constant time (length check plus XOR accumulation) to avoid timing leaks.

## Usage

Symmetric encryption of a secret at rest:

```ts
import { generateKey, encrypt, decrypt } from "@wrnexus/encryption";

const key = await generateKey(); // store this safely (env/secret manager)

const box = await encrypt("card #1234", key); // opaque base64 string, safe to persist
const plain = await decrypt(box, key); // "card #1234"
```

Deriving a key from a user password instead of a random key:

```ts
import { deriveKey, encrypt } from "@wrnexus/encryption";

const key = await deriveKey("correct horse battery staple", "per-user-salt");
const box = await encrypt("secret note", key);
```

Hashing and webhook signature verification:

```ts
import { sha256, hmacSign, hmacVerify } from "@wrnexus/encryption";

const digest = await sha256("some content"); // 64-char hex string

const signature = await hmacSign(rawBody, webhookSecret);
const ok = await hmacVerify(rawBody, webhookSecret, incomingSignatureHeader);
if (!ok) throw new Error("Invalid webhook signature");
```

## Requirements / Notes

- **Bun-only.** Relies on the Web Crypto API (`crypto.subtle`, `crypto.getRandomValues`) and the global `btoa`/`atob`, `TextEncoder`/`TextDecoder` — all available in Bun's runtime.
- **No dependencies.** The package has an empty dependency set; nothing is bundled beyond standard runtime APIs.
- Algorithms: AES-256-GCM (encryption), PBKDF2 with 100k SHA-256 iterations (key derivation), SHA-256 (digest), HMAC-SHA256 (signing).
- Keep generated/derived keys and HMAC secrets out of source control; treat them as first-class secrets.

### Exported TypeScript declarations

```ts
/**
 * @wrnexus/encryption — authenticated symmetric encryption (AES-256-GCM) via
 * WebCrypto, dependency-free. Use it to encrypt secrets, tokens, or database
 * fields at rest.
 *
 *   const key = await generateKey();                 // store this safely
 *   const box = await encrypt("card #1234", key);    // opaque base64 string
 *   const plain = await decrypt(box, key);           // "card #1234"
 *
 * A key derived from a password (PBKDF2) is also supported via `deriveKey`.
 */
/** SHA-256 hex digest of a string (e.g. content hashing, dedup keys). */
declare function sha256(data: string): Promise<string>;
/** HMAC-SHA256 hex signature of `data` with `secret` (e.g. signing webhooks). */
declare function hmacSign(data: string, secret: string): Promise<string>;
/** Constant-time verify of an HMAC-SHA256 signature. */
declare function hmacVerify(data: string, secret: string, signature: string): Promise<boolean>;
/** Generate a random 256-bit key, base64-encoded. Store it as a secret. */
declare function generateKey(): Promise<string>;
/**
 * Encrypt a string. Output is base64 of `iv(12) || ciphertext+tag`, safe to
 * store or transmit. Each call uses a fresh random IV.
 */
declare function encrypt(plaintext: string, key: string): Promise<string>;
/** Decrypt a value produced by `encrypt`. Throws if the key is wrong or data tampered. */
declare function decrypt(payload: string, key: string): Promise<string>;
/** Derive a base64 AES key from a password + salt (PBKDF2, 100k iterations). */
declare function deriveKey(password: string, salt: string): Promise<string>;

export { decrypt, deriveKey, encrypt, generateKey, hmacSign, hmacVerify, sha256 };
```

---

## @wrnexus/helpers

Documentation URL: https://wrnexusjs.dev/packages/helpers

# @wrnexus/helpers

Safe convenience helpers for common WrNexus application flows. The package uses
standard `Context`, `URL`, and `Response` values and has no runtime dependency beyond
`@wrnexus/core`.

## Installation

```bash
bun add @wrnexus/helpers
```

The package is private, so the machine must be authenticated to the `wrnexus` npm
organization.

## Usage

### Redirect an unauthenticated forward-auth request

The gateway calls an SSO verifier on a different URL from the original application.
These helpers reconstruct the original URL from the gateway headers and safely place it
in the login redirect:

```ts
import type { Context } from "@wrnexus/core";
import { redirectToLogin } from "@wrnexus/helpers";

export const GET = async (ctx: Context) => {
  if (await hasValidSession(ctx)) {
    return new Response(null, { status: 204 });
  }

  return redirectToLogin(ctx, "/login", {
    allowedHosts: ["admin.localhost:3000", "reports.localhost:3000"],
  });
};
```

This creates a response such as:

```text
Location: http://sso.localhost:3000/login?returnTo=http%3A%2F%2Fadmin.localhost%3A3000%2F
```

Always list the application hosts that are valid redirect destinations. Forwarded host
headers are rejected when `allowedHosts` is absent or does not match, preventing an open
redirect.

The SSO hostname is the login destination, not an `allowedHosts` entry. For example,
when protecting `admin.localhost:3000`, keep `admin.localhost:3000` in the allowlist even
though the verifier runs at `sso.localhost:3000`. WRNexus preserves both hosts across a
nested gateway request.

### Support dynamic tenant domains

```ts
import type { Context } from "@wrnexus/core";
import { getOriginalRequestOrigin, redirectToLogin } from "@wrnexus/helpers";

export const GET = async (ctx: Context) => {
  const allowedHosts = (host: string) => host === "example.test" || host.endsWith(".example.test");

  console.info("Authentication requested by", getOriginalRequestOrigin(ctx, { allowedHosts }));
  return redirectToLogin(ctx, "https://auth.example.test/login", {
    allowedHosts,
    returnToParam: "continue",
    status: 303,
  });
};
```

## API

- `getOriginalRequestUrl(ctx, options): URL` — reconstruct the gateway URL.
- `getOriginalRequestOrigin(ctx, options): string` — return only its origin.
- `getOriginalRequestPath(ctx): string` — return its path and query string.
- `getOriginalRequestMethod(ctx): string` — return its HTTP method.
- `redirectToLogin(ctx, loginUrl, options): Response` — create a login redirect with an
  encoded `returnTo` parameter.

For direct requests without gateway headers, URL helpers use `ctx.url`.

### Exported TypeScript declarations

```ts
import { Context } from '@wrnexus/core';

declare function appOrigin(appName: string): string;
declare function appUrl(appName: string, path?: string): string;
declare function currentAppName(): string | undefined;
declare function currentAppOrigin(): string | undefined;
declare function workspaceAppOrigins(): Readonly<Record<string, string>>;

/**
 * @wrnexus/helpers — safe conveniences for common WrNexus application flows.
 *
 * Helpers stay small and composable. They accept the standard WrNexus Context
 * and return web-platform values such as URL and Response.
 */

type RequestContext = Pick<Context, "req" | "url">;
type AllowedHosts = readonly string[] | ReadonlySet<string> | ((host: string, ctx: RequestContext) => boolean);
interface OriginalRequestOptions {
    /**
     * Hosts that the application permits as redirect destinations. This is
     * required when a proxy supplied X-Forwarded-Host is present.
     */
    allowedHosts?: AllowedHosts;
}
interface LoginRedirectOptions extends OriginalRequestOptions {
    /** Query parameter that receives the original absolute URL. */
    returnToParam?: string;
    /** Browser redirect status. Defaults to 302. */
    status?: 301 | 302 | 303 | 307 | 308;
}
/** Get the original path and query string seen by the gateway. */
declare function getOriginalRequestPath(ctx: RequestContext): string;
/** Get the original HTTP method seen by the gateway. */
declare function getOriginalRequestMethod(ctx: RequestContext): string;
/**
 * Reconstruct the absolute URL that reached the gateway.
 *
 * Forwarded hosts are never trusted implicitly: pass allowedHosts when this is
 * used behind the WrNexus gateway. Direct requests fall back to ctx.url.
 */
declare function getOriginalRequestUrl(ctx: RequestContext, options?: OriginalRequestOptions): URL;
/** Get the original request origin, for example http://admin.localhost:3000. */
declare function getOriginalRequestOrigin(ctx: RequestContext, options?: OriginalRequestOptions): string;
/**
 * Redirect to a login page with the original absolute URL encoded as returnTo.
 * Relative login URLs resolve against the current app (normally the SSO app).
 */
declare function redirectToLogin(ctx: RequestContext, loginUrl: string | URL, options?: LoginRedirectOptions): Response;

export { type AllowedHosts, type LoginRedirectOptions, type OriginalRequestOptions, type RequestContext, appOrigin, appUrl, currentAppName, currentAppOrigin, getOriginalRequestMethod, getOriginalRequestOrigin, getOriginalRequestPath, getOriginalRequestUrl, redirectToLogin, workspaceAppOrigins };
```

---

## @wrnexus/i18n

Documentation URL: https://wrnexusjs.dev/packages/i18n

# @wrnexus/i18n

> Per-request translations plus locale-aware number, date, and currency formatting for WrNexus apps.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/i18n` loads locale files from `app/locales/<lang>.json`, resolves the
active language for each request (cookie → `Accept-Language` → default), and
builds a `t(key, params)` translator used both in server code and in `.wrn`
views. It also ships Intl-based formatting helpers and a tiny client runtime that
wires up a language switcher. Translation lookup, language resolution, and HTML
marker rewriting run server-side; only the small `I18N_RUNTIME` snippet runs in
the browser.

## Installation

```bash
bun add @wrnexus/i18n
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

### Loading & resolving

| Export        | Signature                                                                                          | Description                                                                                                                             |
| ------------- | -------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `loadLocales` | `(dir: string) => Record<string, Messages>`                                                        | Reads every `<lang>.json` in `dir` into a `{ lang: messages }` map. Missing dir → `{}`; a bad file is warned and skipped.               |
| `resolveI18n` | `(messages: Record<string, Messages>, config?: I18nConfig) => ResolvedI18n`                        | Merges loaded messages + config into a resolved bundle (default lang, supported langs, messages).                                       |
| `resolveLang` | `(i18n: ResolvedI18n, cookieValue: string \| undefined, acceptLanguage: string \| null) => string` | Picks the active language: matching cookie → best `Accept-Language` tag (falls back to base tag, e.g. `en-US` → `en`) → `i18n.default`. |
| `makeT`       | `(i18n: ResolvedI18n, lang: string) => TFunction`                                                  | Builds a translator resolving current language → default → the key itself, with `{param}` interpolation.                                |

### Types & constants

| Export         | Kind        | Notes                                                                          |
| -------------- | ----------- | ------------------------------------------------------------------------------ |
| `Messages`     | `type`      | `Record<string, unknown>` — a locale's messages (supports nested/dotted keys). |
| `I18nConfig`   | `interface` | `{ default?: string; locales?: string[] }`.                                    |
| `ResolvedI18n` | `interface` | `{ default: string; langs: string[]; messages: Record<string, Messages> }`.    |
| `LANG_COOKIE`  | `const`     | `"wire-lang"` — the cookie the language is read from / written to.             |
| `I18N_JS_HREF` | `const`     | `"/__wrnexus/i18n.js"` — URL the client runtime is served at.                  |

### HTML & client runtime

| Export           | Signature                                      | Description                                                                                                                                                                                                                 |
| ---------------- | ---------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `translateHtml`  | `(html: string, t: TFunction) => string`       | Rewrites markers in rendered HTML: `t:<attr>="key"` → `<attr>="<translation>"` (attribute-escaped) and `<tag data-t="key">…</tag>` → element text becomes the translation (HTML-escaped). No-op unless a marker is present. |
| `renderI18nData` | `(i18n: ResolvedI18n, lang: string) => string` | JS snippet setting `window.__wireI18n = { lang, langs, default }` for the client switcher.                                                                                                                                  |
| `I18N_RUNTIME`   | `const string`                                 | Browser IIFE that binds `[data-wire-lang-set="es"]` clicks and `select[data-wire-lang]` changes to set the `wire-lang` cookie and reload. Exposes `window.__wireLang.set(lang)`.                                            |

### Formatting helpers (re-exported from `./format.ts`)

| Export               | Signature                                                                                         | Example                                        |
| -------------------- | ------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| `formatNumber`       | `(value: number, lang: string, options?: Intl.NumberFormatOptions) => string`                     | `1234.5 → "1,234.5"`                           |
| `formatCurrency`     | `(value: number, currency: string, lang: string) => string`                                       | `9.99, "USD" → "$9.99"`                        |
| `formatDate`         | `(value: Date \| number \| string, lang: string, options?: Intl.DateTimeFormatOptions) => string` | defaults to `{ dateStyle: "medium" }`          |
| `formatRelativeTime` | `(value: number, unit: Intl.RelativeTimeFormatUnit, lang: string) => string`                      | `-3, "day" → "3 days ago"` (`numeric: "auto"`) |
| `plural`             | `(count: number, forms: Partial<Record<Intl.LDMLPluralRule, string>>, lang: string) => string`    | picks CLDR form; `#` is replaced by `count`    |

## Usage

### Server: load, resolve, translate

```ts
import {
  loadLocales,
  resolveI18n,
  resolveLang,
  makeT,
  translateHtml,
  LANG_COOKIE,
} from "@wrnexus/i18n";

// app/locales/en.json, app/locales/es.json
const messages = loadLocales("app/locales");
const i18n = resolveI18n(messages, { default: "en", locales: ["en", "es"] });

// Per request:
const lang = resolveLang(i18n, req.cookies?.[LANG_COOKIE], req.headers.get("accept-language"));
const t = makeT(i18n, lang);

t("nav.home"); // dotted key → "Home"
t("greeting", { name: "Ada" }); // "Hello, {name}" → "Hello, Ada"

// After rendering a .wrn view, resolve translation markers in the HTML:
const finalHtml = translateHtml(renderedHtml, t);
```

`app/locales/en.json`:

```json
{
  "nav": { "home": "Home" },
  "greeting": "Hello, {name}"
}
```

### Views: translation markers

```html
<h1 data-t="nav.home">Home</h1>
<input t:placeholder="search.placeholder" />
```

`translateHtml` replaces the element text for `data-t` and the attribute value for
any `t:<attr>` (e.g. `t:placeholder`, `t:aria-label`).

### Client: language switcher

```ts
import { renderI18nData, I18N_RUNTIME, I18N_JS_HREF } from "@wrnexus/i18n";

// In the document <head>:
const head = `
  <script>${renderI18nData(i18n, lang)}</script>
  <script src="${I18N_JS_HREF}"></script>
`;

// Serve I18N_RUNTIME at I18N_JS_HREF; then in markup:
// <button data-wire-lang-set="es">Español</button>
// <select data-wire-lang>…</select>
```

### Formatting

```ts
import {
  formatNumber,
  formatCurrency,
  formatDate,
  formatRelativeTime,
  plural,
} from "@wrnexus/i18n";

formatNumber(1234.5, lang); // "1,234.5"
formatCurrency(9.99, "USD", lang); // "$9.99"
formatDate(Date.now(), lang); // "Jul 4, 2026"
formatRelativeTime(-3, "day", lang); // "3 days ago"
plural(2, { one: "# item", other: "# items" }, lang); // "2 items"
```

## Configuration

`resolveI18n` accepts an `I18nConfig`:

- `default` — fallback language; used when nothing else matches. Ignored if it has
  no loaded messages, in which case the first supported language is used.
- `locales` — explicit supported-language list; defaults to the loaded locale names.

Language resolution order at request time (`resolveLang`): a supported `wire-lang`
cookie value → the first matching `Accept-Language` tag (or its base subtag) → the
resolved default.

## Requirements / Notes

- **Bun-only.** Locale loading uses `node:fs` (`existsSync`, `readdirSync`,
  `readFileSync`) and `node:path`; formatting relies on the platform `Intl` APIs.
- Works with [`@wrnexus/core`](../core) — `TFunction` (the `t(key, params)` type)
  comes from core, and the resolved translator is exposed as `ctx.t` / `ctx.lang`
  in request handling.
- Nested message objects are supported: keys are looked up whole first, then split
  on `.` to walk the object tree.

### Exported TypeScript declarations

```ts
import { TFunction } from '@wrnexus/core';

/**
 * Locale-aware formatting helpers (Intl-based) + pluralization. Pair with the
 * request language (`ctx.lang`) so numbers, dates, and currencies render right
 * for each user.
 */
/** Format a number for a locale (e.g. 1234.5 → "1,234.5"). */
declare function formatNumber(value: number, lang: string, options?: Intl.NumberFormatOptions): string;
/** Format a currency amount (e.g. 9.99, "USD" → "$9.99"). */
declare function formatCurrency(value: number, currency: string, lang: string): string;
/** Format a date/timestamp for a locale. */
declare function formatDate(value: Date | number | string, lang: string, options?: Intl.DateTimeFormatOptions): string;
/** Relative time, e.g. -3 days → "3 days ago" (localized). */
declare function formatRelativeTime(value: number, unit: Intl.RelativeTimeFormatUnit, lang: string): string;
/**
 * Pick a plural form for `count` in `lang` using CLDR rules, e.g.
 * `plural(n, { one: "1 item", other: "# items" }, lang)` — "#" is replaced by n.
 */
declare function plural(count: number, forms: Partial<Record<Intl.LDMLPluralRule, string>>, lang: string): string;

/**
 * @wrnexus/i18n — translations for pages and API responses.
 *
 * Locales live in `app/locales/<lang>.json`. Per request the active language is
 * resolved from the `wire-lang` cookie, then Accept-Language, then the default.
 * `ctx.t(key, params)` translates on the server; in `.wrn` views `{t:key}` and
 * `t:attr="key"` markers are resolved by `translateHtml` before the HTML is sent.
 */

type Messages = Record<string, unknown>;
/** Load `<dir>/<lang>.json` files into a `{ lang: messages }` map. */
declare function loadLocales(dir: string): Record<string, Messages>;
interface I18nConfig {
    /** Default language, used as the fallback and when nothing else matches. */
    default?: string;
    /** Explicit set of supported languages (defaults to the loaded locale names). */
    locales?: string[];
}
interface ResolvedI18n {
    default: string;
    langs: string[];
    messages: Record<string, Messages>;
}
declare const LANG_COOKIE = "wire-lang";
declare const I18N_JS_HREF = "/__wrnexus/i18n.js";
/** Merge loaded locale messages + config into a resolved i18n bundle. */
declare function resolveI18n(messages: Record<string, Messages>, config?: I18nConfig): ResolvedI18n;
/** Build a `t()` for a language: current → default → the key itself. */
declare function makeT(i18n: ResolvedI18n, lang: string): TFunction;
/** Resolve the active language from a cookie, Accept-Language, then default. */
declare function resolveLang(i18n: ResolvedI18n, cookieValue: string | undefined, acceptLanguage: string | null): string;
/**
 * Resolve translation markers in rendered HTML:
 *   t:<attr>="key"        → <attr>="<translation>"   (e.g. t:placeholder, t:aria-label)
 *   <tag data-t="key">…</tag> → element text becomes the translation
 * Only runs when the HTML actually contains a marker.
 */
declare function translateHtml(html: string, t: TFunction): string;
/** `window.__wireI18n = { lang, langs }` for the client language switcher. */
declare function renderI18nData(i18n: ResolvedI18n, lang: string): string;
/**
 * Client runtime: binds `[data-wire-lang-set="es"]` elements to set the
 * `wire-lang` cookie and reload, so the server re-renders in the new language.
 */
declare const I18N_RUNTIME: string;

export { I18N_JS_HREF, I18N_RUNTIME, type I18nConfig, LANG_COOKIE, type Messages, type ResolvedI18n, formatCurrency, formatDate, formatNumber, formatRelativeTime, loadLocales, makeT, plural, renderI18nData, resolveI18n, resolveLang, translateHtml };
```

---

## @wrnexus/jwt

Documentation URL: https://wrnexusjs.dev/packages/jwt

# @wrnexus/jwt

> Dependency-free JSON Web Tokens (HS256) via Web Crypto, plus a bearer-token auth middleware for WrNexus.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/jwt` signs and verifies stateless JSON Web Tokens using the **HS256**
(HMAC-SHA-256) algorithm. It has no runtime dependencies — signing and
verification are implemented directly on the standard **Web Crypto** API
(`crypto.subtle`), which Bun provides natively. It runs server-side and pairs
with the session-based auth in `@wrnexus/core`, giving you a stateless option
for API and mobile clients. Reach for it when you need bearer-token auth rather
than cookie sessions.

## Installation

```bash
bun add @wrnexus/jwt
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

Single entry point (`@wrnexus/jwt`). All functions are async and return Promises.

| Export                                  | Kind      | Description                                                     |
| --------------------------------------- | --------- | --------------------------------------------------------------- |
| `signJwt(payload, secret, options?)`    | function  | Sign claims into an HS256 token string.                         |
| `verifyJwt<T>(token, secret, options?)` | function  | Verify a token and return its claims, or throw.                 |
| `jwtAuth(options)`                      | function  | Middleware that verifies a bearer JWT and sets `ctx.user`.      |
| `JwtError`                              | class     | Error thrown on any signature/payload/expiry failure.           |
| `JwtClaims`                             | interface | Claims shape (`sub`, `iat`, `exp`, `nbf`, plus arbitrary keys). |
| `SignOptions`                           | interface | Options for `signJwt`.                                          |
| `JwtAuthOptions`                        | interface | Options for `jwtAuth`.                                          |

### `signJwt(payload, secret, options?)`

```ts
function signJwt(payload: JwtClaims, secret: string, options?: SignOptions): Promise<string>;
```

Signs `payload` with `secret` using HS256 and returns the encoded token
(`header.body.signature`). An `iat` (issued-at) claim is always added.

`SignOptions`:

- `expiresIn?: number` — seconds until expiry; sets the `exp` claim.
- `now?: number` — override the issued-at time (seconds), useful for testing.

### `verifyJwt<T>(token, secret, options?)`

```ts
function verifyJwt<T extends JwtClaims = JwtClaims>(
  token: string,
  secret: string,
  options?: { now?: number },
): Promise<T>;
```

Verifies the HS256 signature and returns the decoded claims typed as `T`.
Throws `JwtError` when the token is malformed, the signature is invalid, the
payload is not valid JSON, the token is expired (`exp`), or not yet valid
(`nbf`). Pass `now` (seconds) to override the reference time for the `exp`/`nbf`
checks.

### `jwtAuth(options)`

```ts
function jwtAuth(options: JwtAuthOptions): Middleware;
```

Returns a WrNexus `Middleware` that reads a token, verifies it, and assigns the
claims to `ctx.user`.

`JwtAuthOptions`:

- `secret: string` — the HMAC secret used to verify tokens.
- `getToken?: (ctx: Context) => string | undefined` — how to extract the token.
  Defaults to reading `Authorization: Bearer <token>`.
- `required?: boolean` — when `true` (default), a missing or invalid token
  responds with `401 { ok: false, error: "Unauthorized" }`. When `false`,
  requests pass through and `ctx.user` is only set if a valid token is present.

## Usage

```ts
import { signJwt, verifyJwt, jwtAuth, JwtError } from "@wrnexus/jwt";

const secret = process.env.JWT_SECRET!;

// Sign a token that expires in one hour
const token = await signJwt({ sub: user.id, role: "admin" }, secret, {
  expiresIn: 3600,
});

// Verify it later
try {
  const claims = await verifyJwt<{ sub: string; role: string }>(token, secret);
  console.log(claims.sub, claims.role);
} catch (err) {
  if (err instanceof JwtError) {
    // invalid signature, expired, malformed, etc.
  }
}
```

Protecting routes with the middleware:

```ts
import { jwtAuth } from "@wrnexus/jwt";

// Require a valid bearer token; ctx.user holds the verified claims
app.use(jwtAuth({ secret: process.env.JWT_SECRET! }));

// Optional auth — populate ctx.user when present, but don't 401
app.use(jwtAuth({ secret: process.env.JWT_SECRET!, required: false }));
```

## Requirements / Notes

- **Bun-only.** Uses the standard Web Crypto API (`crypto.subtle.importKey`,
  `sign`, `verify`) plus `btoa`/`atob` and `TextEncoder`/`TextDecoder` — all
  provided by Bun. No third-party crypto dependency.
- **Algorithm:** HS256 (HMAC with SHA-256) only. Asymmetric algorithms (RS/ES)
  are not supported.
- Integrates with [`@wrnexus/core`](../core) for `Context`, `Middleware`, and
  `ctx.user`; it complements the framework's cookie/session auth with a
  stateless bearer-token flow for API and mobile clients.

### Exported TypeScript declarations

```ts
import { Context, Middleware } from '@wrnexus/core';

/**
 * @wrnexus/jwt — dependency-free JSON Web Tokens (HS256) via WebCrypto, plus a
 * bearer-token auth middleware. Pairs with the session auth in @wrnexus/core for
 * stateless (API/mobile) authentication.
 *
 *   const token = await signJwt({ sub: user.id, role: "admin" }, secret, { expiresIn: 3600 });
 *   const claims = await verifyJwt(token, secret); // throws JwtError if invalid/expired
 */

declare class JwtError extends Error {
    constructor(message: string);
}
interface JwtClaims {
    /** Subject (user id). */
    sub?: string;
    /** Issued-at (seconds). */
    iat?: number;
    /** Expiry (seconds). */
    exp?: number;
    /** Not-before (seconds). */
    nbf?: number;
    [key: string]: unknown;
}
interface SignOptions {
    /** Seconds until expiry (sets `exp`). */
    expiresIn?: number;
    /** Override issued-at (seconds). */
    now?: number;
}
/** Sign a payload into a JWT (HS256). */
declare function signJwt(payload: JwtClaims, secret: string, options?: SignOptions): Promise<string>;
/** Verify a JWT and return its claims. Throws `JwtError` on any failure. */
declare function verifyJwt<T extends JwtClaims = JwtClaims>(token: string, secret: string, options?: {
    now?: number;
}): Promise<T>;
interface JwtAuthOptions {
    secret: string;
    /** Where to read the token. Default: `Authorization: Bearer <token>`. */
    getToken?: (ctx: Context) => string | undefined;
    /** Reject unauthenticated requests with 401. Default true. */
    required?: boolean;
}
/**
 * Middleware that verifies a bearer JWT and sets `ctx.user` to its claims.
 * When `required` (default), a missing/invalid token gets a 401.
 */
declare function jwtAuth(options: JwtAuthOptions): Middleware;

export { type JwtAuthOptions, type JwtClaims, JwtError, type SignOptions, jwtAuth, signJwt, verifyJwt };
```

---

## @wrnexus/mobile

Documentation URL: https://wrnexusjs.dev/packages/mobile

# @wrnexus/mobile

> SSR-safe access to Capacitor plugins from WRNexusJS browser code.

## Overview

`@wrnexus/mobile` keeps optional native imports out of server rendering while giving
browser-owned modules one consistent registry for Capacitor plugins. During SSR,
`mobile.isNative()` is `false` and `mobile.platform()` is `"web"`.

## Installation

Install a plugin through the WRNexusJS CLI so the web and native projects stay aligned:

```bash
wrnexus mobile add @capacitor/camera @capacitor/haptics
```

## Usage

### Register and invoke a Capacitor plugin

Import Capacitor packages only from browser-owned code, never from API routes or SSR
helpers.

```ts
import { Camera, CameraResultType } from "@capacitor/camera";
import { mobile } from "@wrnexus/mobile";

mobile.registerPlugin("Camera", Camera);

export async function takePhoto() {
  if (!mobile.isNative()) return null;
  return mobile.invoke("Camera", "getPhoto", {
    quality: 85,
    resultType: CameraResultType.Uri,
  });
}
```

### Provide a browser fallback

`whenNative` runs the first callback only in a Capacitor WebView and can return a
web/SSR-safe fallback everywhere else.

```ts
import { Haptics, ImpactStyle } from "@capacitor/haptics";
import { mobile } from "@wrnexus/mobile";

mobile.registerPlugin("Haptics", Haptics);

export const confirmAction = () =>
  mobile.whenNative(
    () => mobile.invoke("Haptics", "impact", { style: ImpactStyle.Medium }),
    () => navigator.vibrate?.(30),
  );
```

### Read an optional plugin without throwing

```ts
import type { NetworkPlugin } from "@capacitor/network";
import { mobile } from "@wrnexus/mobile";

const network = mobile.plugin<NetworkPlugin>("Network");
const status = network ? await network.getStatus() : { connected: true, connectionType: "unknown" };
```

## API

- `registerPlugin(name, instance)` registers a browser-imported plugin.
- `plugin(name)` returns a plugin or `undefined`; `requirePlugin(name)` throws when absent.
- `invoke(plugin, method, options?)` calls a registered method and returns its result.
- `whenNative(native, fallback?)` selects native behavior without breaking SSR.
- `isNative()` and `platform()` report the current Capacitor environment.

Unavailable required plugins throw `MobileUnavailableError` with an actionable message.

## Requirements / Notes

- Capacitor plugin imports must remain in browser-owned modules.
- `@wrnexus/mobile` re-exports `native` from `@wrnexus/native` for applications that
  prefer the higher-level cross-platform capability API.

### Exported TypeScript declarations

```ts
export { native } from '@wrnexus/native';

/** @wrnexus/mobile — SSR-safe access to Capacitor's native bridge. */

type MobilePlatform = "ios" | "android" | "web" | string;
interface CapacitorBridge {
    isNativePlatform?: () => boolean;
    getPlatform?: () => MobilePlatform;
    Plugins?: Record<string, unknown>;
}
declare class MobileUnavailableError extends Error {
    constructor(message?: string);
}
/** Register a plugin imported by browser-only application code. */
declare function registerPlugin<T extends object>(name: string, instance: T): T;
/** True only inside a native Capacitor iOS or Android WebView. SSR-safe. */
declare function isNative(): boolean;
/** Current Capacitor platform, falling back to `web` during SSR and in browsers. */
declare function platform(): MobilePlatform;
/** Return an injected Capacitor plugin, or undefined when it is unavailable. */
declare function plugin<T extends object>(name: string): T | undefined;
/** Require an installed native plugin and produce a useful error when absent. */
declare function requirePlugin<T extends object>(name: string): T;
/** Invoke a plugin method without importing native code into an SSR module. */
declare function invoke<TResult = unknown>(pluginName: string, method: string, options?: unknown): Promise<TResult>;
/** Run native behavior when available, with an optional SSR/web fallback. */
declare function whenNative<T>(native: () => T | Promise<T>, fallback?: () => T | Promise<T>): Promise<T | undefined>;
declare const mobile: {
    isNative: typeof isNative;
    platform: typeof platform;
    registerPlugin: typeof registerPlugin;
    plugin: typeof plugin;
    requirePlugin: typeof requirePlugin;
    invoke: typeof invoke;
    whenNative: typeof whenNative;
};

export { type CapacitorBridge, type MobilePlatform, MobileUnavailableError, invoke, isNative, mobile, platform, plugin, registerPlugin, requirePlugin, whenNative };
```

---

## @wrnexus/native

Documentation URL: https://wrnexusjs.dev/packages/native

# @wrnexus/native

> Cross-platform capabilities for browsers, Capacitor WebViews, and compiled native apps.

## Overview

`@wrnexus/native` exposes capabilities by name so application code can ask what the
current platform supports before presenting an action. Browser capabilities use Web
APIs; mobile capabilities use installed Capacitor plugins. `platform()` returns
`"server"` during SSR, `"browser"` on the web, and the Capacitor platform in a native
WebView.

## Installation

```bash
bun add @wrnexus/native
```

## Usage

### Share a page when the platform supports it

```ts
import { native } from "@wrnexus/native";

export async function shareCurrentPage() {
  if (!native.supports("share")) return false;
  await native.run("share", {
    title: document.title,
    url: location.href,
  });
  return true;
}
```

### Register an application-specific capability

`register` returns an unregister function, which is useful for tests and temporary
feature modules.

```ts
import { native } from "@wrnexus/native";

const unregister = native.register("orders.scan", {
  browser: {
    supported: () => typeof window !== "undefined",
    run: async ({ orderId }: { orderId: string }) => {
      const code = window.prompt(`Scan code for order ${orderId}`);
      return { code };
    },
  },
});

const result = await native.run<{ code: string | null }>("orders.scan", { orderId: "ord_42" });
unregister();
```

### Target browser or mobile behavior explicitly

```ts
import { native } from "@wrnexus/native";

const canUseMobileCamera = native.supports("camera", "mobile");
const position = await native.run(
  "geolocation",
  { enableHighAccuracy: true },
  { target: "browser" },
);
```

## API

- `supports(name, target?)` checks availability without running the capability.
- `run(name, options?, runOptions?)` executes it or rejects with `NativeUnavailableError`.
- `register(name, capability)` adds or overrides a capability and returns cleanup.
- `registered()` lists capability names; `clearRegistry()` resets the registry.
- `isMobile()` and `platform()` report the current target safely during SSR.

Built-ins include `camera`, `clipboard.write`, `share`, `geolocation`, `network`,
`haptics`, storage, filesystem, notifications, and device information.

## Requirements / Notes

Use `supports()` before showing optional controls. Mobile capabilities require their
matching Capacitor plugins to be installed and registered by the application.

### Exported TypeScript declarations

```ts
import { N as NativePlatform, a as NativeCapability, b as NativeRunOptions, c as NativeTarget } from './types-CDShWg0i.js';
export { d as NativeAdapter, e as NativeBrowserRuntime } from './types-CDShWg0i.js';
export { browserCapabilities } from './browser.js';
export { mobileCapabilities } from './mobile.js';

declare class NativeUnavailableError extends Error {
    constructor(message: string);
}
declare function isMobile(): boolean;
declare function platform(): NativePlatform;
declare function register<TOptions = unknown, TResult = unknown>(name: string, capability: NativeCapability<TOptions, TResult>): () => void;
declare function registered(): string[];
declare function supports(name: string, target?: NativeTarget): boolean;
declare function run<TResult = unknown>(name: string, options?: unknown, runOptions?: NativeRunOptions): Promise<TResult>;
declare function clearRegistry(): void;

declare const native: {
    isMobile: typeof isMobile;
    platform: typeof platform;
    register: typeof register;
    registered: typeof registered;
    run: typeof run;
    supports: typeof supports;
};

export { NativeCapability, NativePlatform, NativeRunOptions, NativeTarget, NativeUnavailableError, clearRegistry, isMobile, native, platform, register, registered, run, supports };
```

---

## @wrnexus/oauth

Documentation URL: https://wrnexusjs.dev/packages/oauth

# @wrnexus/oauth

> Dependency-free OAuth 2.0 sign-in for any provider, with PKCE and presets for Google, GitHub, and Discord.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/oauth` implements the OAuth 2.0 Authorization Code flow (with PKCE) for
server-side sign-in. It ships ready-made provider presets and a `defineProvider`
helper for custom providers, then gives you two flow functions — `startAuth`
(build the redirect) and `completeAuth` (exchange the code and fetch the user's
profile). It has no runtime dependencies: it uses the platform `fetch` and
WebCrypto only. Pairs naturally with `@wrnexus/core`'s `logIn` to establish a
session once you have a normalized profile.

## Installation

```bash
bun add @wrnexus/oauth
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

### Providers

Each preset takes `ProviderCredentials` and returns an `OAuthProvider`.

```ts
interface ProviderCredentials {
  clientId: string;
  clientSecret: string;
  scopes?: string[]; // override the preset's default scopes
}
```

| Export                   | Default scopes               | Notes                                                              |
| ------------------------ | ---------------------------- | ------------------------------------------------------------------ |
| `google(creds)`          | `openid`, `email`, `profile` | Sets `access_type: offline` for refresh tokens.                    |
| `github(creds)`          | `read:user`, `user:email`    | Maps `name` (falls back to `login`) and `avatar_url`.              |
| `discord(creds)`         | `identify`, `email`          | Builds the avatar CDN URL from the user id + hash.                 |
| `defineProvider(config)` | —                            | Pass a full `OAuthProvider` to define a custom OAuth 2.0 provider. |

An `OAuthProvider` describes the endpoints, scopes, credentials, optional extra
authorize params, and a `mapProfile` normalizer:

```ts
interface OAuthProvider {
  name: string;
  authorizeUrl: string;
  tokenUrl: string;
  userInfoUrl: string;
  scopes: string[];
  clientId: string;
  clientSecret: string;
  authorizeParams?: Record<string, string>; // e.g. access_type, prompt
  mapProfile: (raw: Record<string, unknown>) => OAuthProfile;
}
```

### Flow

#### `startAuth(provider, options): Promise<StartAuthResult>`

Builds the authorize redirect URL with a generated PKCE challenge and CSRF
`state`. Store the returned `state` and `verifier` (session/cookie), then 302 the
user to `url`.

```ts
interface StartAuthOptions {
  redirectUri: string;
  state?: string; // reuse a state instead of generating one
  params?: Record<string, string>; // extra authorize params, merged last
}

interface StartAuthResult {
  url: string; // authorize URL to redirect to
  state: string; // CSRF state — verify on callback
  verifier: string; // PKCE code verifier — pass to completeAuth
}
```

#### `completeAuth(provider, options): Promise<{ tokens, profile }>`

On the callback: exchanges the authorization `code` for tokens, then fetches and
normalizes the user profile. Convenience wrapper over `exchangeCode` +
`fetchProfile`.

```ts
interface CompleteAuthOptions {
  code: string;
  redirectUri: string;
  verifier?: string; // the PKCE verifier from startAuth
  fetch?: typeof fetch; // inject a fetch implementation (tests)
}
```

#### Lower-level helpers

| Export                                   | Signature                 | Purpose                                                         |
| ---------------------------------------- | ------------------------- | --------------------------------------------------------------- |
| `exchangeCode(provider, options)`        | `→ Promise<OAuthTokens>`  | Exchange an authorization code for tokens.                      |
| `fetchProfile(provider, tokens, fetch?)` | `→ Promise<OAuthProfile>` | Fetch + normalize the user's profile.                           |
| `randomToken(bytes?)`                    | `→ string`                | Random URL-safe token (default 32 bytes) for `state`/verifiers. |

### Types

```ts
interface OAuthTokens {
  access_token: string;
  token_type?: string;
  refresh_token?: string;
  expires_in?: number;
  id_token?: string;
  scope?: string;
}

interface OAuthProfile {
  id: string;
  email?: string;
  name?: string;
  avatar?: string;
  raw: Record<string, unknown>;
}
```

## Usage

```ts
import { google, startAuth, completeAuth } from "@wrnexus/oauth";
import { logIn } from "@wrnexus/core";

const provider = google({
  clientId: process.env.GOOGLE_CLIENT_ID!,
  clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
});

const redirectUri = "https://example.com/auth/callback";

// 1. Kick off sign-in: redirect the user to the provider.
async function beginLogin(ctx) {
  const { url, state, verifier } = await startAuth(provider, { redirectUri });
  // Persist state + verifier in the session, then redirect.
  ctx.session.set("oauth_state", state);
  ctx.session.set("oauth_verifier", verifier);
  return Response.redirect(url, 302);
}

// 2. Handle the callback.
async function handleCallback(ctx, code: string, state: string) {
  if (state !== ctx.session.get("oauth_state")) throw new Error("bad state");

  const { profile } = await completeAuth(provider, {
    code,
    redirectUri,
    verifier: ctx.session.get("oauth_verifier"),
  });

  logIn(ctx, { id: profile.id, email: profile.email });
}
```

Custom provider with `defineProvider`:

```ts
import { defineProvider, startAuth } from "@wrnexus/oauth";

const gitlab = defineProvider({
  name: "gitlab",
  authorizeUrl: "https://gitlab.com/oauth/authorize",
  tokenUrl: "https://gitlab.com/oauth/token",
  userInfoUrl: "https://gitlab.com/api/v4/user",
  scopes: ["read_user"],
  clientId: process.env.GITLAB_CLIENT_ID!,
  clientSecret: process.env.GITLAB_CLIENT_SECRET!,
  mapProfile: (raw) => ({
    id: String(raw.id),
    email: raw.email as string | undefined,
    name: raw.name as string | undefined,
    avatar: raw.avatar_url as string | undefined,
    raw,
  }),
});
```

## Requirements / Notes

- **Bun-only.** Relies on the global `fetch` and WebCrypto (`crypto.getRandomValues`,
  `crypto.subtle.digest`) — no other runtime dependencies.
- The flow is stateless by design: you are responsible for storing `state` and
  `verifier` between `startAuth` and `completeAuth` (session or signed cookie).
- Pairs with [`@wrnexus/core`](../core) — feed the normalized `OAuthProfile` into
  `logIn` to establish a session.

### Exported TypeScript declarations

```ts
/**
 * @wrnexus/oauth — OAuth 2.0 sign-in with any provider. Ships presets for Google,
 * GitHub, and Discord, and `defineProvider` for a custom one. Dependency-free
 * (uses `fetch` + WebCrypto for PKCE). Pairs with @wrnexus/core's `logIn`.
 *
 *   const provider = google({ clientId, clientSecret });
 *   // 1. send the user to the provider:
 *   const { url, state, verifier } = await startAuth(provider, { redirectUri });
 *   // (store `state` + `verifier` in the session, then 302 to `url`)
 *   // 2. on the callback:
 *   const { profile } = await completeAuth(provider, { code, redirectUri, verifier });
 *   logIn(ctx, { id: profile.id, email: profile.email });
 */
interface OAuthTokens {
    access_token: string;
    token_type?: string;
    refresh_token?: string;
    expires_in?: number;
    id_token?: string;
    scope?: string;
}
interface OAuthProfile {
    id: string;
    email?: string;
    name?: string;
    avatar?: string;
    raw: Record<string, unknown>;
}
interface OAuthProvider {
    name: string;
    authorizeUrl: string;
    tokenUrl: string;
    userInfoUrl: string;
    scopes: string[];
    clientId: string;
    clientSecret: string;
    /** Extra params for the authorize request (e.g. `access_type`, `prompt`). */
    authorizeParams?: Record<string, string>;
    /** Normalize the provider's raw userinfo into an OAuthProfile. */
    mapProfile: (raw: Record<string, unknown>) => OAuthProfile;
}
interface ProviderCredentials {
    clientId: string;
    clientSecret: string;
    scopes?: string[];
}
type FetchLike = typeof fetch;
declare function google(creds: ProviderCredentials): OAuthProvider;
declare function github(creds: ProviderCredentials): OAuthProvider;
declare function discord(creds: ProviderCredentials): OAuthProvider;
/** Define a custom OAuth2 provider. */
declare function defineProvider(config: OAuthProvider): OAuthProvider;
/** A random URL-safe token (for `state` and the PKCE verifier). */
declare function randomToken(bytes?: number): string;
interface StartAuthOptions {
    redirectUri: string;
    /** Provide to reuse a state (else one is generated). */
    state?: string;
    /** Extra authorize params (merged over the provider's). */
    params?: Record<string, string>;
}
interface StartAuthResult {
    /** The full authorize URL to redirect the user to. */
    url: string;
    /** CSRF state — store it (session/cookie) and verify on callback. */
    state: string;
    /** PKCE code verifier — store it and pass to `completeAuth`. */
    verifier: string;
}
/** Build the authorize redirect (with PKCE + state). */
declare function startAuth(provider: OAuthProvider, options: StartAuthOptions): Promise<StartAuthResult>;
interface CompleteAuthOptions {
    code: string;
    redirectUri: string;
    /** The PKCE verifier from `startAuth`. */
    verifier?: string;
    /** Inject a fetch implementation (tests). */
    fetch?: FetchLike;
}
/** Exchange the authorization code for tokens, then fetch the user profile. */
declare function completeAuth(provider: OAuthProvider, options: CompleteAuthOptions): Promise<{
    tokens: OAuthTokens;
    profile: OAuthProfile;
}>;
/** Exchange an authorization code for tokens. */
declare function exchangeCode(provider: OAuthProvider, options: CompleteAuthOptions): Promise<OAuthTokens>;
/** Fetch + normalize the user's profile from the provider. */
declare function fetchProfile(provider: OAuthProvider, tokens: OAuthTokens, fetchImpl?: FetchLike): Promise<OAuthProfile>;

export { type CompleteAuthOptions, type OAuthProfile, type OAuthProvider, type OAuthTokens, type ProviderCredentials, type StartAuthOptions, type StartAuthResult, completeAuth, defineProvider, discord, exchangeCode, fetchProfile, github, google, randomToken, startAuth };
```

---

## @wrnexus/plugin

Documentation URL: https://wrnexusjs.dev/packages/plugin

# @wrnexus/plugin

Deterministic WRNexusJS plugin contracts for configuration, AST/code transforms,
diagnostics, development servers, production builds, and DevToolbar extensions.

Use `definePlugin()` and declare `enforce`, `before`, or `after` when ordering matters.
Duplicate names and dependency cycles are rejected.

### Exported TypeScript declarations

```ts
import { PageAst, WrnDiagnostic } from '@wrnexus/syntax';

type PluginOrder = "pre" | "normal" | "post";
interface PluginContext {
    root: string;
    mode: "development" | "production";
    command: "dev" | "build" | "test";
    profile?: string;
    metadata: Map<string, unknown>;
    warn(message: string): void;
}
interface TransformContext extends PluginContext {
    file: string;
}
interface WrnexusPlugin {
    name: string;
    version?: string;
    enforce?: PluginOrder;
    /** Plugin names that must execute first. */
    after?: string[];
    /** Plugin names that must execute later. */
    before?: string[];
    configure?(config: Record<string, unknown>, context: PluginContext): void | Promise<void>;
    configResolved?(config: Readonly<Record<string, unknown>>, context: PluginContext): void | Promise<void>;
    transformAst?(ast: PageAst, context: TransformContext): PageAst | void | Promise<PageAst | void>;
    transformCode?(code: string, context: TransformContext): string | void | Promise<string | void>;
    diagnostics?(ast: PageAst, context: TransformContext): WrnDiagnostic[] | Promise<WrnDiagnostic[]>;
    routes?(routes: unknown[], context: PluginContext): unknown[] | void | Promise<unknown[] | void>;
    configureServer?(server: unknown, context: PluginContext): void | Promise<void>;
    buildStart?(context: PluginContext): void | Promise<void>;
    buildEnd?(result: unknown, context: PluginContext): void | Promise<void>;
    devToolbarPanels?(context: PluginContext): unknown[] | Promise<unknown[]>;
}
type PluginInput = WrnexusPlugin | false | null | undefined | PluginInput[];
declare function definePlugin(plugin: WrnexusPlugin): WrnexusPlugin;
/** Resolve plugin order deterministically and reject duplicates/cycles. */
declare function resolvePlugins(input: PluginInput): WrnexusPlugin[];
interface PluginRunner {
    readonly plugins: readonly WrnexusPlugin[];
    configure(config: Record<string, unknown>): Promise<void>;
    configResolved(config: Readonly<Record<string, unknown>>): Promise<void>;
    transformAst(ast: PageAst, file: string): Promise<PageAst>;
    transformCode(code: string, file: string): Promise<string>;
    diagnostics(ast: PageAst, file: string): Promise<WrnDiagnostic[]>;
    hook(name: "buildStart" | "buildEnd" | "configureServer", value?: unknown): Promise<void>;
}
declare function createPluginRunner(input: PluginInput, context: PluginContext): PluginRunner;

export { type PluginContext, type PluginInput, type PluginOrder, type PluginRunner, type TransformContext, type WrnexusPlugin, createPluginRunner, definePlugin, resolvePlugins };
```

---

## @wrnexus/pubsub

Documentation URL: https://wrnexusjs.dev/packages/pubsub

# @wrnexus/pubsub

> Topic-based publish/subscribe with a pluggable driver — in-process by default, Redis for cross-process messaging.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/pubsub` is a small server-side pub/sub bus. You publish messages to a
topic and subscribe with topic patterns; handlers fire for matching topics. The
default driver keeps everything in-process, and you can swap in the Redis driver
(`@wrnexus/pubsub/redis`) to fan messages out across processes or hosts. It also
backs `@wrnexus/core`'s realtime bridge for horizontal scaling.

## Installation

```bash
bun add @wrnexus/pubsub
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

### `createPubSub(driver?): PubSub`

Creates a bus over a driver. Defaults to `memoryDriver()` (in-process).

```ts
interface PubSub {
  publish<T = unknown>(topic: string, message: T): Promise<void>;
  subscribe<T = unknown>(pattern: string, handler: Handler<T>): () => void;
}

type Handler<T = unknown> = (message: T, topic: string) => void | Promise<void>;
```

- `publish(topic, message)` — resolves once the driver has dispatched the message.
- `subscribe(pattern, handler)` — returns an unsubscribe function.

### Pattern matching

Subscription patterns match in three ways:

- **Exact** — `"order:created"` matches only that topic.
- **Prefix** — `"order:*"` matches any topic starting with `"order:"`.
- **Everything** — `"*"` matches all topics.

### `memoryDriver(): PubSubDriver`

The default in-process driver. Handlers are invoked synchronously (fire-and-forget
for async handlers) whenever a published topic matches a registered pattern.

```ts
interface PubSubDriver {
  publish(topic: string, message: unknown): void | Promise<void>;
  subscribe(pattern: string, handler: Handler): () => void;
}
```

### `@wrnexus/pubsub/redis` — `redisDriver(url?)`

A cross-process driver backed by Redis. It speaks RESP over a raw TCP socket via
`Bun.connect`, so it adds **no npm dependency**. `url` defaults to `$REDIS_URL`,
then `redis://localhost:6379`. The URL may carry a password and a database index
(e.g. `redis://:secret@host:6379/2`).

```ts
function redisDriver(url?: string): PubSubDriver & { close(): void };
```

- Exact topics use Redis `SUBSCRIBE`; wildcard patterns (`ns:*`, `*`) use
  `PSUBSCRIBE`, whose glob semantics line up with this library's matching.
- Messages are JSON-stringified on publish and `JSON.parse`d on receipt; a payload
  that isn't valid JSON is delivered as the raw string.
- `close()` tears down both the subscriber and publisher connections.

### RESP codec (internal)

`redis.ts` uses a minimal RESP implementation exported from `resp.ts`
(`encodeCommand`, `parseReply`, `concat`, and the `RespValue` type). These are
implementation details of the Redis driver, not part of the public package entry.

## Usage

In-process (default):

```ts
import { createPubSub } from "@wrnexus/pubsub";

const bus = createPubSub();

const off = bus.subscribe("order:*", (msg, topic) => {
  console.log(topic, msg);
});

await bus.publish("order:created", { id: 7 });

off(); // unsubscribe
```

Cross-process with Redis:

```ts
import { createPubSub } from "@wrnexus/pubsub";
import { redisDriver } from "@wrnexus/pubsub/redis";

const driver = redisDriver("redis://localhost:6379");
const bus = createPubSub(driver);

bus.subscribe("order:*", (msg, topic) => {
  // received on any app process subscribed to this pattern
});

await bus.publish("order:created", { id: 7 });

// on shutdown
driver.close();
```

## Requirements / Notes

- **Bun-only.** The Redis driver depends on `Bun.connect`; it throws
  `redisDriver requires the Bun runtime (Bun.connect).` outside Bun. The default
  in-memory driver has no runtime dependencies.
- The Redis driver reads `REDIS_URL` from the environment when no `url` is passed.
- Backs [`@wrnexus/core`](../core)'s realtime bridge for horizontal scaling.
- No external npm dependencies — the Redis client is a self-contained RESP codec.

### Exported TypeScript declarations

```ts
/**
 * @wrnexus/pubsub — topic-based publish/subscribe with a pluggable driver.
 * The default is in-process; swap in a Redis/NATS driver for cross-instance
 * messaging (it also backs @wrnexus/core's realtime bridge).
 *
 *   const bus = createPubSub();
 *   const off = bus.subscribe("order:*", (msg, topic) => {...});
 *   await bus.publish("order:created", { id: 7 });
 *
 * Subscriptions match exact topics, "ns:*" prefixes, and "*" (everything).
 */
type Handler<T = unknown> = (message: T, topic: string) => void | Promise<void>;
interface PubSubDriver {
    publish(topic: string, message: unknown): void | Promise<void>;
    subscribe(pattern: string, handler: Handler): () => void;
}
interface PubSub {
    publish<T = unknown>(topic: string, message: T): Promise<void>;
    subscribe<T = unknown>(pattern: string, handler: Handler<T>): () => void;
}
/** In-process pub/sub driver (default). */
declare function memoryDriver(): PubSubDriver;
/** Create a pub/sub bus over a driver (in-memory by default). */
declare function createPubSub(driver?: PubSubDriver): PubSub;

export { type Handler, type PubSub, type PubSubDriver, createPubSub, memoryDriver };
```

---

## @wrnexus/queue

Documentation URL: https://wrnexusjs.dev/packages/queue

# @wrnexus/queue

> A background job queue with delays, retries + exponential backoff, recurring jobs, and concurrent workers.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/queue` is a server-side in-process job queue. You register named
workers, enqueue jobs (optionally delayed or recurring), and let the queue poll
and run them on a timer — with per-job retry limits and doubling backoff between
attempts. The default store lives in memory; the design allows a pluggable driver
to back it with Redis/SQL for durability across restarts. Reach for it when you
need to defer work (emails, webhooks, cleanup) off the request path without a
heavyweight external broker. Tests can drive it deterministically via `drain()`.

## Installation

```bash
bun add @wrnexus/queue
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

The package exports a single factory plus its supporting types.

### `createQueue(options?): Queue`

Creates a new queue instance.

```ts
function createQueue(options?: QueueOptions): Queue;
```

#### `QueueOptions`

| Option        | Type                                 | Default    | Description                                              |
| ------------- | ------------------------------------ | ---------- | -------------------------------------------------------- |
| `maxAttempts` | `number`                             | `3`        | Default max attempts per job before it is dead-lettered. |
| `backoffMs`   | `number`                             | `1000`     | Base retry backoff in ms; doubles per attempt.           |
| `pollMs`      | `number`                             | `250`      | Poll interval used once `start()` is called (ms).        |
| `onFailed`    | `(job: Job, error: unknown) => void` | —          | Called when a job exhausts its attempts.                 |
| `now`         | `() => number`                       | `Date.now` | Clock injection for deterministic tests.                 |

### `Queue`

The object returned by `createQueue`.

| Method    | Signature                                                      | Description                                                    |
| --------- | -------------------------------------------------------------- | -------------------------------------------------------------- |
| `add`     | `add<T>(name, data: T, options?: AddOptions): Promise<Job<T>>` | Enqueue a job under a worker name. Returns the created job.    |
| `process` | `process<T>(name, handler: JobHandler<T>): void`               | Register the worker that runs jobs of the given name.          |
| `drain`   | `drain(now?: number): Promise<number>`                         | Run every job whose `runAt ≤ now`, once. Returns how many ran. |
| `start`   | `start(): void`                                                | Begin polling every `pollMs`. No-op if already started.        |
| `stop`    | `stop(): void`                                                 | Stop the poll timer.                                           |
| `size`    | `size(): number`                                               | Number of jobs currently queued.                               |

#### `AddOptions`

| Option        | Type     | Description                                                                |
| ------------- | -------- | -------------------------------------------------------------------------- |
| `delayMs`     | `number` | Delay before the job becomes runnable (ms).                                |
| `maxAttempts` | `number` | Max attempts before dead-lettering. Defaults to the queue's `maxAttempts`. |
| `repeat`      | `number` | Re-enqueue this job this many ms after each successful run (recurring).    |

#### `JobHandler<T>`

```ts
type JobHandler<T = unknown> = (job: Job<T>) => void | Promise<void>;
```

#### `Job<T>`

```ts
interface Job<T = unknown> {
  id: string; // e.g. "job_1"
  name: string;
  data: T;
  attempts: number;
  maxAttempts: number;
  runAt: number; // epoch ms; job runs when now ≥ runAt
  repeat?: number; // if set, re-enqueue this many ms after each success
}
```

## Usage

Register workers, enqueue jobs, then start the poller:

```ts
import { createQueue } from "@wrnexus/queue";

const queue = createQueue({ maxAttempts: 3, backoffMs: 1000 });

// Register a worker for the "email" job name.
queue.process<{ to: string }>("email", async (job) => {
  await send(job.data.to);
});

// Enqueue a delayed job with up to 3 attempts.
await queue.add("email", { to: "a@b.com" }, { delayMs: 5000, maxAttempts: 3 });

queue.start(); // begin polling; queue.stop() to halt
```

### Recurring jobs

Pass `repeat` to re-enqueue a job a fixed interval after each successful run:

```ts
queue.process("heartbeat", async () => ping());
await queue.add("heartbeat", {}, { repeat: 60_000 }); // runs ~every minute
```

### Handling permanent failures

When a job's `attempts` reaches `maxAttempts`, it is dropped and `onFailed`
fires instead of retrying:

```ts
const queue = createQueue({
  onFailed: (job, error) => {
    console.error(`job ${job.id} (${job.name}) gave up`, error);
  },
});
```

### Deterministic testing

Instead of `start()`, inject a clock and drive the queue with `drain()`:

```ts
let clock = 0;
const queue = createQueue({ now: () => clock });

queue.process("task", async () => {
  /* ... */
});
await queue.add("task", {}, { delayMs: 5000 });

clock = 5000;
const ran = await queue.drain(); // => 1
```

## Retry & backoff behavior

- On a thrown handler error, the job is retried while `attempts < maxAttempts`.
- The next `runAt` is set to `now + backoffMs * 2^(attempts - 1)` (exponential
  backoff): with `backoffMs: 1000` the delays are 1s, 2s, 4s, …
- A job whose worker name has no registered handler stays queued until one is
  registered (it is not counted as runnable by `drain`).
- `drain` is re-entrant-safe: overlapping calls are skipped while one is running.

## Requirements / Notes

- **Bun-only** runtime (Node is not supported), consistent with the rest of the
  WrNexus framework. The queue itself relies only on standard timers
  (`setInterval`/`clearInterval`) and has no runtime dependencies.
- The default store is in-process, so queued jobs do not survive a restart; a
  pluggable driver is intended for backing it with Redis/SQL for durability.
- Works alongside `@wrnexus/core` for offloading work from the request path.

### Exported TypeScript declarations

```ts
/**
 * @wrnexus/queue — a background job queue with delays, retries + backoff, and
 * concurrent workers. The default store is in-process; a pluggable driver lets
 * you back it with Redis/SQL for durability across restarts.
 *
 *   const queue = createQueue();
 *   queue.process("email", async (job) => { await send(job.data); });
 *   await queue.add("email", { to: "a@b.com" }, { delayMs: 5000, maxAttempts: 3 });
 *   queue.start();                 // begin polling; queue.stop() to halt
 *
 * Tests can drive it deterministically with `await queue.drain(now)`.
 */
interface Job<T = unknown> {
    id: string;
    name: string;
    data: T;
    attempts: number;
    maxAttempts: number;
    runAt: number;
    /** If set, re-enqueue this job this many ms after each successful run. */
    repeat?: number;
    priority: number;
    idempotencyKey?: string;
    createdAt: number;
}
type JobHandler<T = unknown> = (job: Job<T>) => void | Promise<void>;
interface AddOptions {
    /** Delay before the job becomes runnable (ms). */
    delayMs?: number;
    /** Max attempts before it's dead-lettered. Default from queue options. */
    maxAttempts?: number;
    /** Re-enqueue this job this many ms after each successful run (recurring). */
    repeat?: number;
    /** Higher-priority jobs run first when multiple jobs are due. */
    priority?: number;
    /** Prevent duplicate queued work with the same stable key. */
    idempotencyKey?: string;
}
interface QueueOptions {
    /** Default max attempts per job. Default 3. */
    maxAttempts?: number;
    /** Base retry backoff (ms); doubles per attempt. Default 1000. */
    backoffMs?: number;
    /** Poll interval when started (ms). Default 250. */
    pollMs?: number;
    /** Called when a job exhausts its attempts. */
    onFailed?: (job: Job, error: unknown) => void;
    /** Maximum jobs executed in one drain. Default: unlimited. */
    concurrency?: number;
    /** Clock injection (tests). Default Date.now. */
    now?: () => number;
}
interface Queue {
    add<T>(name: string, data: T, options?: AddOptions): Promise<Job<T>>;
    process<T>(name: string, handler: JobHandler<T>): void;
    /** Run every job whose runAt ≤ now, once. Returns how many ran. */
    drain(now?: number): Promise<number>;
    start(): void;
    stop(): void;
    size(): number;
    get(id: string): Job | undefined;
    list(name?: string): Job[];
    cancel(id: string): boolean;
}
interface JobDefinition<I> {
    name: string;
    options?: Omit<AddOptions, "idempotencyKey">;
    run: JobHandler<I>;
}
declare function defineJob<I>(definition: JobDefinition<I>): JobDefinition<I>;
interface WorkflowStep<I, O> {
    name: string;
    run(input: I): O | Promise<O>;
}
declare function defineWorkflow<T>(name: string, steps: Array<WorkflowStep<any, any>>): {
    name: string;
    steps: WorkflowStep<any, any>[];
    run(input: T): Promise<unknown>;
};
declare function cronToInterval(cron: string): number;
declare function createQueue(options?: QueueOptions): Queue;

export { type AddOptions, type Job, type JobDefinition, type JobHandler, type Queue, type QueueOptions, type WorkflowStep, createQueue, cronToInterval, defineJob, defineWorkflow };
```

---

## @wrnexus/reactive

Documentation URL: https://wrnexusjs.dev/packages/reactive

# @wrnexus/reactive

> Tiny, type-safe reactive primitives (signals) with zero dependencies.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/reactive` is the seed of WrNexus's reactivity layer: a minimal `signal`
primitive that holds a value, notifies subscribers when it changes, and hands back
an unsubscribe function. It is deliberately small and framework-agnostic — it powers
nothing on its own, but is shaped so client islands (and later the `.wrn` compiler's
`state` blocks) can build reactive bindings on top of it. Reach for it when you need
observable state without pulling in a full reactivity library.

## Installation

```bash
bun add @wrnexus/reactive
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

The package has a single entry point (`.`) exporting one function and three types.

### `signal<T>(initial: T): Signal<T>`

Creates a reactive signal seeded with `initial`. Returns a `Signal<T>`:

| Member      | Signature                          | Description                                                                                              |
| ----------- | ---------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `get`       | `(): T`                            | Read the current value.                                                                                  |
| `set`       | `(next: T): void`                  | Write a new value. Subscribers run **only when the value actually changes** (compared with `Object.is`). |
| `update`    | `(fn: (current: T) => T): void`    | Apply a function to the current value; equivalent to `set(fn(get()))`.                                   |
| `subscribe` | `(fn: Subscriber<T>): Unsubscribe` | Register a subscriber; returns a function that removes it.                                               |

### Types

```ts
type Subscriber<T> = (value: T) => void;
type Unsubscribe = () => void;

interface Signal<T> {
  get(): T;
  set(next: T): void;
  update(fn: (current: T) => T): void;
  subscribe(fn: Subscriber<T>): Unsubscribe;
}
```

Notes on semantics:

- **No-op updates are skipped.** `set` compares the incoming value to the current
  one with `Object.is`; identical values do not notify subscribers.
- **Safe unsubscribe during notification.** Subscribers are iterated over a copy of
  the subscriber set, so a subscriber may call its own (or another's) unsubscribe
  while a notification is in flight.

## Usage

```ts
import { signal } from "@wrnexus/reactive";

const count = signal(0);

count.get(); // 0

// Subscribe; the returned function unsubscribes.
const off = count.subscribe((value) => {
  console.log("count is now", value);
});

count.set(1); // logs: count is now 1
count.set(1); // no-op — value unchanged, no notification
count.update((n) => n + 1); // logs: count is now 2

off(); // stop listening
count.set(3); // nothing logged
```

Typed signals infer `T` from the initial value, or can be annotated explicitly:

```ts
import { signal, type Signal } from "@wrnexus/reactive";

const user: Signal<{ name: string } | null> = signal(null);
user.set({ name: "Ada" });
```

## Requirements / Notes

- **Bun-only.** Distributed as TypeScript source (`main`/`exports` point at
  `src/index.ts`); consume it under Bun, which runs `.ts` directly.
- **Zero dependencies.** The only runtime API used is the standard `Object.is`.
- Foundational primitive for WrNexus client islands and the forthcoming `.wrn`
  compiler `state` blocks.

### Exported TypeScript declarations

```ts
/**
 * Fine-grained reactive primitives shared by server utilities and client code.
 * Updates are synchronous by default and coalesced inside `batch()`.
 */
type Subscriber<T> = (value: T, previous?: T) => void;
type Unsubscribe = () => void;
type Cleanup = () => void;
interface Signal<T> {
    get(): T;
    set(next: T): void;
    update(fn: (current: T) => T): void;
    subscribe(fn: Subscriber<T>): Unsubscribe;
}
interface ReadonlySignal<T> {
    get(): T;
    subscribe(fn: Subscriber<T>): Unsubscribe;
}
/** Coalesce every signal notification made by `fn` into one flush. */
declare function batch<T>(fn: () => T): T;
/** Read reactive values without recording dependencies. */
declare function untrack<T>(fn: () => T): T;
declare function signal<T>(initial: T): Signal<T>;
/**
 * Run a dependency-tracked side effect. Dependencies are rebuilt after every
 * execution, preventing stale subscriptions when conditional reads change.
 */
declare function effect(run: () => void | Cleanup): Cleanup;
/** Create a lazily readable derived signal with automatic dependency tracking. */
declare function computed<T>(read: () => T): ReadonlySignal<T>;

export { type Cleanup, type ReadonlySignal, type Signal, type Subscriber, type Unsubscribe, batch, computed, effect, signal, untrack };
```

---

## @wrnexus/router

Documentation URL: https://wrnexusjs.dev/packages/router

# @wrnexus/router

> File-based router that maps an `app/` directory onto route tables and matches request paths against them.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/router` scans an application's `app/` directory once at startup and builds route tables for pages, API endpoints, realtime channels, middleware, server-rendered `.wrn` components, layouts, and validation schemas. It also compiles URL patterns (`/users/[id]`) into RegExps and matches request paths against them. Request input is never turned into a file path, which makes the router immune to path traversal. This is a server-side package used by the WrNexus runtime to resolve incoming requests, plus a codegen helper for compile-time typed links.

## Installation

```bash
bun add @wrnexus/router
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## Directory conventions

The router maps files under `appDir` onto routes:

```
app/pages/index.tsx        -> GET /
app/pages/about.tsx        -> GET /about
app/pages/users/[id].tsx   -> GET /users/:id
app/api/hello.ts           -> /api/hello
app/realtime/chat.ts       -> /realtime/chat
app/pages/*.wrn  (api)    -> embedded /api/* routes
app/pages/*.wrn  (rt)     -> embedded /realtime/* routes
app/middleware/*.ts        -> global middleware (alphabetical)
app/components/*.wrn      -> server-rendered components (by basename)
app/layouts/*.wrn         -> named page layouts
app/schemas/*.ts           -> validation schemas
```

Allowed route extensions are `.ts`, `.tsx`, and `.wrn`. Dotfiles and underscore-prefixed files are ignored. A trailing `index` segment is dropped from the route. `.wrn` pages may embed `api` and `realtime` blocks, which the router extracts and mounts under `/api/*` and `/realtime/*`.

## API

### `buildRouter(appDir, opts?): Router`

Scan an app directory and build all route tables.

```ts
function buildRouter(appDir: string, opts?: RouterOptions): Router;

interface RouterOptions {
  /** Extra dirs scanned for `.wrn` components (e.g. `@wrnexus/ui`), before
   *  `app/components`, so an app component of the same name wins. */
  componentDirs?: string[];
}
```

The returned `Router` exposes the built tables plus per-kind matchers:

```ts
interface Router {
  pages: Route[];
  api: Route[];
  realtime: Route[];
  /** Absolute paths of middleware modules, in execution order (alphabetical). */
  middlewareFiles: string[];
  /** Server-rendered `.wrn` components, mounted via `data-component`. */
  components: ComponentRef[];
  /** Named page layouts (`app/layouts/<name>.wrn`); a page picks one via `layout`. */
  layouts: ComponentRef[];
  /** Validation schemas (`app/schemas/<name>.ts`) shared by API + forms. */
  schemas: ComponentRef[];
  matchPage(pathname: string): RouteMatch | null;
  matchApi(pathname: string): RouteMatch | null;
  matchRealtime(pathname: string): RouteMatch | null;
}

interface ComponentRef {
  /** Validated component name (matches a `data-component` attribute). */
  name: string;
  /** Absolute path to the component's `.wrn` module. */
  file: string;
}
```

Component, layout, and schema names are validated with `isSafeIslandName` from `@wrnexus/core`; unsafe names are skipped with a warning. Realtime channel names are validated the same way.

### Route matching

| Export                | Signature                                                   | Description                                                                                                         |
| --------------------- | ----------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| `compileRoutePattern` | `(raw: string) => Pick<Route, "regex" \| "paramNames">`     | Compile a `/users/[id]` pattern into a RegExp (with optional trailing slash) plus ordered param names.              |
| `matchRoute`          | `(routes: Route[], pathname: string) => RouteMatch \| null` | Return the first route whose regex matches; captured params are `decodeURIComponent`-decoded.                       |
| `sortRoutes`          | `(routes: Route[]) => Route[]`                              | Order routes so static routes win over dynamic ones (fewer params first), then longer/more specific patterns first. |

```ts
interface Route {
  raw: string; // e.g. "/users/[id]"
  file: string; // absolute path to the handling module
  regex: RegExp; // compiled matcher
  paramNames: string[]; // ordered dynamic param names
}

interface RouteMatch {
  route: Route;
  params: Record<string, string>;
}
```

### Typed-routes codegen

```ts
function generateRoutesFile(pages: Route[]): string;
```

Emits the source for `app/routes.gen.ts`: a `Routes` map (each page path → its `[param]` types), a `RoutePath` union, and an `href()` builder that fills params and rejects unknown paths at compile time. Entries are de-duplicated and sorted by path.

### Re-exports

`Middleware` (the type from `@wrnexus/core`) is re-exported for callers that load middleware modules themselves.

## Usage

```ts
import { buildRouter } from "@wrnexus/router";

const router = buildRouter("./app", {
  componentDirs: ["./node_modules/@wrnexus/ui/components"],
});

// Resolve an incoming request.
const match = router.matchPage("/users/42");
if (match) {
  console.log(match.route.file); // absolute path to the page module
  console.log(match.params); // { id: "42" }
}

const api = router.matchApi("/api/hello");
const rt = router.matchRealtime("/realtime/chat");
```

Generating the typed-routes file (as `wrnexus dev` does):

```ts
import { generateRoutesFile } from "@wrnexus/router";
import { writeFileSync } from "node:fs";

const router = buildRouter("./app");
writeFileSync("./app/routes.gen.ts", generateRoutesFile(router.pages));
```

```ts
// Then, in app code, links are checked at compile time:
import { href } from "./routes.gen.ts";

href("/users/[id]", { id: "42" }); // "/users/42"
href("/about"); // "/about"
href("/nope"); // type error: unknown path
```

Lower-level pattern matching, if you need it directly:

```ts
import { compileRoutePattern, matchRoute, sortRoutes, type Route } from "@wrnexus/router";

const { regex, paramNames } = compileRoutePattern("/posts/[slug]");
const routes = sortRoutes([{ raw: "/posts/[slug]", file: "…", regex, paramNames }]);
const m = matchRoute(routes, "/posts/hello"); // { route, params: { slug: "hello" } }
```

## Requirements / Notes

- Scanning uses `node:fs` (`existsSync`, `readdirSync`, `statSync`) and `node:path` — runs under Bun.
- Depends on [`@wrnexus/compiler`](../compiler) to `parse` `.wrn` pages and extract embedded `api` / `realtime` blocks.
- Depends on [`@wrnexus/core`](../core) for `isSafeIslandName` (name validation) and the `Middleware` type.
- Missing route directories are tolerated — a route kind you don't use simply yields an empty table.

### Exported TypeScript declarations

```ts
export { Middleware } from '@wrnexus/core';

/**
 * Route compilation + matching.
 *
 * Supported segments:
 *   [id]          required parameter
 *   [id?]         optional parameter
 *   [[id]]        optional parameter (directory-friendly form)
 *   [...slug]     required catch-all
 *   [[...slug]]   optional catch-all
 */
interface RouteParam {
    name: string;
    optional: boolean;
    catchAll: boolean;
}
interface Route {
    /** The human-readable route pattern, e.g. `/users/[id]`. */
    raw: string;
    /** Absolute path to the module that handles this route. */
    file: string;
    /** Compiled matcher. */
    regex: RegExp;
    /** Ordered names of dynamic params captured by `regex`. */
    paramNames: string[];
    /** Rich parameter metadata. Optional for compatibility with old manifests. */
    paramMeta?: RouteParam[];
}
interface RouteMatch {
    route: Route;
    params: Record<string, string>;
}
/** Return parameter metadata without requiring callers to inspect the regex. */
declare function getRouteParams(raw: string): RouteParam[];
/** Compile a WRNexus route pattern into a RegExp + parameter metadata. */
declare function compileRoutePattern(raw: string): Pick<Route, "regex" | "paramNames" | "paramMeta">;
/**
 * Order routes so static and constrained routes win over optional/catch-all
 * routes. The ordering remains deterministic for identical specificity.
 */
declare function sortRoutes(routes: Route[]): Route[];
/** Find duplicate URL patterns before request handling starts. */
declare function findRouteConflicts(routes: Route[]): Array<{
    raw: string;
    files: string[];
}>;
/** Find the first route whose pattern matches `pathname`. */
declare function matchRoute(routes: Route[], pathname: string): RouteMatch | null;

/**
 * Typed-routes codegen. From the scanned page routes, emit `app/routes.gen.ts`
 * with a `Routes` map (path -> param types) and an `href()` builder.
 */

declare function generateRoutesFile(pages: Route[]): string;

/**
 * @wrnexus/router — file-based router.
 *
 * Maps the `app/` directory onto route tables:
 *   app/pages/index.tsx     -> GET /
 *   app/pages/about.tsx     -> GET /about
 *   app/pages/users/[id].tsx-> GET /users/:id
 *   app/api/hello.ts        -> /api/hello
 *   app/realtime/chat.ts    -> /realtime/chat
 *   app/pages/*.wrn api      -> embedded /api/* routes
 *   app/pages/*.wrn realtime -> embedded /realtime/* routes
 *   app/middleware/*.ts     -> global middleware (alphabetical)
 *   app/components/*.wrn   -> server-rendered components (by basename),
 *                              mounted in a page via data-component="<name>"
 */

interface ComponentRef {
    /** Validated component name (matches a `data-component` attribute). */
    name: string;
    /** Absolute path to the component's `.wrn` module. */
    file: string;
}
interface Router {
    pages: Route[];
    api: Route[];
    realtime: Route[];
    /** Absolute paths of middleware modules, in execution order. */
    middlewareFiles: string[];
    /** Server-rendered `.wrn` components, mounted via `data-component`. */
    components: ComponentRef[];
    /** Named page layouts (`app/layouts/<name>.wrn`); a page picks one via `layout`. */
    layouts: ComponentRef[];
    /** Validation schemas (`app/schemas/<name>.ts`) shared by API + forms. */
    schemas: ComponentRef[];
    matchPage(pathname: string): RouteMatch | null;
    matchApi(pathname: string): RouteMatch | null;
    matchRealtime(pathname: string): RouteMatch | null;
}
interface RouterOptions {
    /**
     * Extra directories to scan for `.wrn` components (e.g. `@wrnexus/ui`).
     * Scanned before `app/components`, so an app component of the same name wins.
     */
    componentDirs?: string[];
}
/**
 * Convert a scanned file's relative path into a URL route pattern.
 *  - strips the extension
 *  - drops a trailing `index` segment
 *  - prefixes with `prefix` (e.g. "/api")
 */
declare function fileToRoute(rel: string, prefix?: string): string;
/** Scan an app directory and build all route tables. */
declare function buildRouter(appDir: string, opts?: RouterOptions): Router;

export { type ComponentRef, type Route, type RouteMatch, type Router, type RouterOptions, buildRouter, compileRoutePattern, fileToRoute, findRouteConflicts, generateRoutesFile, getRouteParams, matchRoute, sortRoutes };
```

---

## @wrnexus/ssr

Documentation URL: https://wrnexusjs.dev/packages/ssr

# @wrnexus/ssr

> Server-side rendering: wraps a page's HTML body in a complete HTML document with a metadata-driven `<head>`.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

Pages in WrNexus return an HTML string for the body. `@wrnexus/ssr` takes that body and produces a full HTML document — building the `<head>` from page metadata and global SEO defaults, resolving canonical/Open Graph/Twitter tags, and injecting module preloads and `<script type="module">` tags. It is deliberately server-only: nothing in this package touches the DOM or ships to the browser, keeping server code genuinely server-only. Reach for it on the server when turning a rendered page body into a response document.

## Installation

```bash
bun add @wrnexus/ssr
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

The package has a single export.

### `renderDocument(opts: RenderOptions): string`

Renders a complete HTML document as a string, beginning with `<!doctype html>`. All metadata is HTML-escaped (via `escapeHtml` from `@wrnexus/core`), so a malicious title or description cannot break out of its element or attribute. The body is placed inside `<div id="app">`.

#### `RenderOptions`

| Field          | Type        | Description                                                                                                                                    |
| -------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
| `meta`         | `PageMeta`  | Page metadata for the document head (required).                                                                                                |
| `body`         | `string`    | Rendered HTML for the body, placed inside `#app` (required).                                                                                   |
| `seo`          | `SeoConfig` | Global SEO defaults, typically from `wrnexus.config.ts`.                                                                                       |
| `url`          | `URL`       | Current request URL, used to resolve canonical/Open Graph URLs.                                                                                |
| `scripts`      | `string[]`  | URLs of `<script type="module">` tags to load (e.g. per-island chunks or the reactive runtime). Each also gets a `<link rel="modulepreload">`. |
| `defaultTitle` | `string`    | Default document title used when `meta.title` is absent.                                                                                       |
| `extraHead`    | `string`    | Raw HTML injected at the end of `<head>` (trusted, framework-controlled — not escaped).                                                        |
| `extraBody`    | `string`    | Raw HTML injected at the end of `<body>` (trusted, framework-controlled — not escaped).                                                        |
| `htmlAttrs`    | `string`    | Attributes for the `<html>` element, e.g. ` data-theme="dark"` (trusted).                                                                      |

`PageMeta` and `SeoConfig` come from `@wrnexus/core`. `PageMeta` is an alias of `SeoConfig`, whose fields are all optional:

```ts
type SeoConfig = {
  title?: string;
  titleTemplate?: string; // e.g. "%s — My Site"; %s is replaced with the page title
  description?: string;
  canonical?: string;
  canonicalBase?: string; // origin used to absolutize canonical/image URLs
  robots?: string;
  keywords?: string | string[];
  image?: string;
  siteName?: string;
  type?: string; // Open Graph type; defaults to "website"
  locale?: string;
  twitterCard?: string; // defaults to "summary"
  twitterSite?: string;
  themeColor?: string;
};
```

#### Metadata resolution

`renderDocument` merges page metadata (`meta`) over global defaults (`seo`), field by field, so per-page values win. Notable behavior:

- **Title**: uses `meta.title`, else `seo.title`, else `defaultTitle`, else `"WrNexus"`. When the page sets its own title and `seo.titleTemplate` contains `%s`, the template is applied.
- **Canonical / image URLs**: resolved against `canonicalBase` (or the request `url`'s origin) into absolute URLs when possible.
- **Keywords**: an array is joined with `", "`.
- **Emitted tags**: `<title>`, and as applicable `description`, `robots`, `keywords`, `theme-color`, and `canonical` link, plus Open Graph (`og:title`, `og:description`, `og:type`, `og:url`, `og:site_name`, `og:locale`, `og:image`) and Twitter (`twitter:card`, `twitter:title`, `twitter:description`, `twitter:image`, `twitter:site`) meta tags. The document always includes `charset`, `viewport`, and a `/favicon.ico` icon link.

## Usage

### Render an SEO-ready application page

```ts
import { renderDocument } from "@wrnexus/ssr";

const html = renderDocument({
  meta: {
    title: "About Us",
    description: "Learn more about our team.",
  },
  seo: {
    titleTemplate: "%s — Acme",
    siteName: "Acme",
    canonicalBase: "https://acme.example",
    twitterSite: "@acme",
  },
  url: new URL("https://acme.example/about"),
  body: "<h1>About Us</h1>",
  scripts: ["/_wire/runtime.js", "/_wire/islands/about.js"],
  htmlAttrs: ' data-theme="dark"',
});

return new Response(html, {
  headers: { "content-type": "text/html; charset=utf-8" },
});
```

The produced document has `<title>About Us — Acme</title>`, the SEO/Open Graph/Twitter tags derived from the merged metadata, a `modulepreload` link and module `<script>` for each entry in `scripts`, and the body wrapped in `<div id="app">`.

### Add trusted framework assets and boot data

Use `extraHead` and `extraBody` only for HTML generated by your application or the
framework. User-provided values belong in `meta`, where they are escaped.

```ts
const html = renderDocument({
  meta: { title: "Dashboard", robots: "noindex" },
  body: dashboardHtml,
  url: ctx.url,
  extraHead: '<link rel="stylesheet" href="/_wrnexus/admin.css">',
  extraBody: `<script type="application/json" id="boot">${JSON.stringify(bootData).replaceAll("<", "\\u003c")}</script>`,
});

return new Response(html, { headers: { "content-type": "text/html; charset=utf-8" } });
```

## Requirements / Notes

- **Server-only.** This module never imports or touches the DOM and is safe to keep out of client bundles.
- **Depends on [`@wrnexus/core`](../core)** for `escapeHtml` and the `PageMeta` / `SeoConfig` types.
- **Bun-only** — like the rest of WrNexus, this package targets the Bun runtime (Node is not supported).

### Exported TypeScript declarations

```ts
import { PageMeta, SeoConfig } from '@wrnexus/core';

/**
 * @wrnexus/ssr — server-side rendering.
 *
 * Pages return an HTML string for the body; this module wraps that body in a
 * full document with a `<head>` built from page metadata. It is intentionally
 * isolated from any client runtime: nothing here touches the DOM or ships to
 * the browser, which keeps "server-only code" genuinely server-only.
 */

interface RenderOptions {
    /** Page metadata for the document head. */
    meta: PageMeta;
    /** Global SEO defaults from `wrnexus.config.ts`. */
    seo?: SeoConfig;
    /** Current request URL, used to resolve canonical/Open Graph URLs. */
    url?: URL;
    /** Rendered HTML for the body (placed inside `#app`). */
    body: string;
    /**
     * URLs of `<script type="module">` tags to load (e.g. per-island chunks or
     * the reactive runtime). Only the scripts a page actually needs are passed.
     */
    scripts?: string[];
    /** Optional default document title used when meta.title is absent. */
    defaultTitle?: string;
    /** Raw HTML injected at the end of `<head>` (trusted, framework-controlled). */
    extraHead?: string;
    /** Raw HTML injected at the end of `<body>` (trusted, framework-controlled). */
    extraBody?: string;
    /** Attributes for the `<html>` element, e.g. ` data-theme="dark"` (trusted). */
    htmlAttrs?: string;
}
/**
 * Render a complete HTML document.
 *
 * Metadata is HTML-escaped so a malicious title/description can never break
 * out of its element or attribute.
 */
declare function renderDocument(opts: RenderOptions): string;
interface StreamRenderOptions extends Omit<RenderOptions, "body"> {
    body: string | Promise<string> | AsyncIterable<string>;
}
/**
 * Stream a complete document while preserving the exact head/body contract of
 * `renderDocument`. Async iterables can flush a shell, primary content, and
 * slower fragments without buffering the entire route.
 */
declare function renderDocumentStream(opts: StreamRenderOptions): ReadableStream<Uint8Array>;
declare function streamDocumentResponse(opts: StreamRenderOptions, init?: ResponseInit): Response;

export { type RenderOptions, type StreamRenderOptions, renderDocument, renderDocumentStream, streamDocumentResponse };
```

---

## @wrnexus/styles

Documentation URL: https://wrnexusjs.dev/packages/styles

# @wrnexus/styles

> Global CSS bundling, the `--wire-*` design-token theme system, and the `wrnexus.config.ts` app-config loader for WrNexus apps.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

This package owns three server-side concerns that shape every page a WrNexus app renders:

1. **Global stylesheet pipeline** — finds `app/styles/global.css` (or aggregates `app/styles/*.css`), bundles it with Bun's CSS bundler (which resolves `@import`, including from `node_modules`), and produces one stylesheet that is `<link>`ed into every page's `<head>`. Because it is a plain global sheet, it styles server-rendered markup and hydrated client islands identically. A custom `process` hook lets you swap in Tailwind / PostCSS / Sass.
2. **Theme system** — design tokens exposed as CSS custom properties (`--wire-<key>`), with built-in `light`/`dark` sets, deep-merged user overrides, an SSR `<html data-theme>` render (no flash), and a tiny client runtime to toggle/persist the choice.
3. **App config** — loads `wrnexus.config.ts` (the `AppConfig` type), applies named profile overrides, and loads the `.env` cascade.

It runs server-side / at build time. Reach for it when configuring an app, defining themes, or customising how global CSS is produced.

## Installation

```bash
bun add @wrnexus/styles
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

Everything is exported from the package root (`@wrnexus/styles`).

### Config loading

| Export           | Signature                                                      | Purpose                                                                                                                               |
| ---------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- |
| `loadAppConfig`  | `(appRoot: string, profile?: string) => Promise<AppConfig>`    | Load `wrnexus.config.*` with the active profile deep-merged in (`profiles` stripped from the result).                                 |
| `loadRawConfig`  | `(appRoot: string) => Promise<AppConfig>`                      | Load the raw config with the `profiles` map intact; returns `{}` if no config file exists.                                            |
| `resolveProfile` | `(options?: { explicit?; mode? }) => string`                   | Resolve the active profile: explicit arg > `WRNEXUS_PROFILE` env var > mode-based default (`production` in prod, else `development`). |
| `loadEnv`        | `(appRoot: string, profile: string) => Record<string, string>` | Load the `.env` cascade for a profile into `process.env` without clobbering real env vars. Returns what it loaded.                    |
| `headToString`   | `(head?: string \| string[]) => string`                        | Flatten `AppConfig.head` into a single HTML string.                                                                                   |

Config file names probed, in order: `wrnexus.config.ts`, `wrnexus.config.js`, `wrnexus.config.mjs`.

`.env` cascade precedence (low → high): `.env` < `.env.<profile>` < `.env.local` < `.env.<profile>.local`. Variables already present in the real environment always win.

### `AppConfig`

The type of the object your `wrnexus.config.ts` default-exports. Every field is optional.

| Field       | Type                                                                    | Description                                                                                                                                                          |
| ----------- | ----------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `head`      | `string \| string[]`                                                    | Raw HTML appended to every page's `<head>` (e.g. CDN stylesheet/script links).                                                                                       |
| `seo`       | `SeoConfig`                                                             | Global SEO defaults, merged with each page's exported `meta`. (from `@wrnexus/core`)                                                                                 |
| `security`  | `SecurityConfig`                                                        | Framework security headers and optional CORS policy. (from `@wrnexus/core`)                                                                                          |
| `styles`    | `StylesConfig`                                                          | Global stylesheet pipeline config (see below).                                                                                                                       |
| `theme`     | `ThemeConfig`                                                           | Design-token themes, deep-merged over the built-in light/dark.                                                                                                       |
| `i18n`      | `{ default?: string; locales?: string[] }`                              | Default language + supported locales (strings live in `app/locales/*.json`).                                                                                         |
| `db`        | `{ driver: "sqlite" \| "postgres" \| "mysql" \| "mongo"; url: string }` | Default database connection; reached with `getDb()`.                                                                                                                 |
| `databases` | `Record<string, { driver; url }>`                                       | Additional named databases, reached with `getDb("<name>")`; each has its own `app/db/<name>/` migrations/queries.                                                    |
| `realtime`  | `{ scale?: boolean; redisUrl?: string }`                                | When `scale` is true (or `redisUrl` is set), room broadcasts bridge over Redis pub/sub so they reach clients on every app process.                                   |
| `port`      | `number`                                                                | Default server port.                                                                                                                                                 |
| `profiles`  | `Record<string, Partial<Omit<AppConfig, "profiles">>>`                  | Named profiles (dev, prod, uat, test, …). The active profile's overrides are deep-merged over the base config. Selected via `--profile=<name>` or `WRNEXUS_PROFILE`. |

### Styles pipeline

| Export           | Signature                                                              | Purpose                                                                                                                                                                                                     |
| ---------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `findStyleEntry` | `(appDir, appRoot, override?) => string \| null`                       | Resolve the CSS entry: `override` (relative to `appRoot`) → `app/styles/global.css` → an aggregate of all `app/styles/*.css` (written to `app/.wrnexus/styles-entry.css`). `null` if the app has no styles. |
| `bundleCss`      | `(entryPath: string, mode: Mode) => Promise<string>`                   | Bundle an entry with `Bun.build` (CSS bundler). Resolves `@import` (local + node_modules), handles nesting, minifies when `mode === "production"`.                                                          |
| `renderStyles`   | `(ctx: StyleProcessContext, styles?: StylesConfig) => Promise<string>` | Produce final CSS: runs `styles.process(ctx)` if provided, else `bundleCss`. Returns `""` when `ctx.entryPath` is null.                                                                                     |

`StylesConfig`:

```ts
interface StylesConfig {
  /** CSS entry path relative to the app root. Default: app/styles/global.css */
  entry?: string;
  /** Custom processor — return the final CSS string (Tailwind/PostCSS/Sass). */
  process?: (ctx: StyleProcessContext) => string | Promise<string>;
}

interface StyleProcessContext {
  entryPath: string | null; // resolved absolute CSS entry, or null
  appDir: string;
  appRoot: string;
  mode: Mode; // "development" | "production"
}
```

### Theme system

| Export               | Type / Signature                                                     | Purpose                                                                                                                                    |
| -------------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `DEFAULT_THEMES`     | `Record<string, ThemeTokens>`                                        | Built-in `light` and `dark` token maps.                                                                                                    |
| `THEME_COOKIE`       | `"wire-theme"`                                                       | Cookie the resolved theme is read from / persisted to.                                                                                     |
| `THEME_CSS_HREF`     | `"/__wrnexus/theme.css"`                                             | URL the generated theme stylesheet is served at.                                                                                           |
| `THEME_JS_HREF`      | `"/__wrnexus/theme.js"`                                              | URL the client theme runtime is served at.                                                                                                 |
| `resolveThemeConfig` | `(config?: ThemeConfig) => ResolvedTheme`                            | Deep-merge the user's `theme` config over the defaults; pick the default theme (config's `default` if valid, else `dark`, else the first). |
| `resolveThemeName`   | `(cookieValue: string \| undefined, theme: ResolvedTheme) => string` | Pick a valid theme name from a cookie, falling back to `theme.default`.                                                                    |
| `renderThemeCss`     | `(theme: ResolvedTheme) => string`                                   | Generate the theme stylesheet: a `:root{…}` default plus one `[data-theme="<name>"]{…}` block per theme.                                   |
| `renderThemeRuntime` | `(theme: ResolvedTheme) => string`                                   | Generate the client runtime (see below).                                                                                                   |

Tokens are emitted as `--wire-<key>` custom properties, **except** the reserved key `color-scheme`, which is emitted as the native `color-scheme` CSS property so form controls and scrollbars match the theme.

`ThemeConfig` / `ThemeTokens` / `ResolvedTheme`:

```ts
type ThemeTokens = Record<string, string>;

interface ThemeConfig {
  palette?: ThemePaletteName | CustomThemePalette;
  default?: string; // theme used when no cookie is present
  themes?: Record<string, ThemeTokens>; // deep-merged over built-in light/dark
}

interface ResolvedTheme {
  default: string;
  names: string[];
  themes: Record<string, ThemeTokens>;
}
```

Built-in palettes are `blue`, `indigo`, `violet`, `emerald`, `cyan`, `rose`,
`amber`, and `slate`. Each supplies primary, secondary, info, success, warning,
danger/error, hover, and contrast colors to every light/dark theme. Built-in
token keys also include surfaces, text, borders, radii, fonts, and shadows.

A custom palette is intentionally complete, so components never fall back to an
unrelated blue status or action color:

```ts
theme: {
  palette: {
    primary: "#7c3aed",
    primaryHover: "#6d28d9",
    primaryContrast: "#ffffff",
    secondary: "#db2777",
    secondaryHover: "#be185d",
    secondaryContrast: "#ffffff",
    info: "#2563eb",
    success: "#059669",
    warning: "#d97706",
    danger: "#dc2626",
  },
}
```

The client runtime (`renderThemeRuntime`) exposes `window.wireTheme` with `{ get, set, toggle, bind, themes }`, wires up any `[data-wire-theme-toggle]` and `[data-wire-theme-set]` elements on load, and persists the choice to the `wire-theme` cookie (`max-age` 1 year, `samesite=lax`). `toggle()` cycles through the configured theme names in order.

## Usage

### `wrnexus.config.ts`

```ts
import type { AppConfig } from "@wrnexus/styles";

export default {
  head: [
    '<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5/dist/css/bootstrap.min.css">',
  ],
  port: 3000,
  db: { driver: "sqlite", url: "app.db" },
  theme: {
    palette: "violet",
    default: "dark",
    themes: {
      light: { "color-primary": "#7c3aed" }, // override one token; rest inherited
      brand: {
        // add a whole new theme
        "color-scheme": "dark",
        "color-bg": "#0a0a0a",
        "color-primary": "#22d3ee",
      },
    },
  },
  styles: {
    entry: "app/styles/main.css",
  },
  profiles: {
    production: {
      db: { driver: "postgres", url: process.env.DATABASE_URL! },
    },
  },
} satisfies AppConfig;
```

### Loading config + producing CSS

```ts
import {
  loadAppConfig,
  resolveProfile,
  loadEnv,
  findStyleEntry,
  renderStyles,
} from "@wrnexus/styles";

const appRoot = process.cwd();
const mode = "production" as const;

const profile = resolveProfile({ mode });
loadEnv(appRoot, profile);

const config = await loadAppConfig(appRoot, profile);

const appDir = `${appRoot}/app`;
const entryPath = findStyleEntry(appDir, appRoot, config.styles?.entry);
const css = await renderStyles({ entryPath, appDir, appRoot, mode }, config.styles);
```

### Rendering the theme

```ts
import {
  resolveThemeConfig,
  resolveThemeName,
  renderThemeCss,
  renderThemeRuntime,
  THEME_COOKIE,
} from "@wrnexus/styles";

const theme = resolveThemeConfig(config.theme);

// Server: pick the active theme from the request cookie (no flash).
const active = resolveThemeName(cookies[THEME_COOKIE], theme);
// → render <html data-theme={active}>

const themeCss = renderThemeCss(theme); // served at THEME_CSS_HREF
const themeJs = renderThemeRuntime(theme); // served at THEME_JS_HREF
```

In templates, consume tokens via the custom properties:

```css
.card {
  background: var(--wire-color-surface);
  color: var(--wire-color-text);
  border: 1px solid var(--wire-color-border);
  border-radius: var(--wire-radius);
  box-shadow: var(--wire-shadow-1);
}
```

```html
<button data-wire-theme-toggle>Toggle theme</button>
<button data-wire-theme-set="brand">Brand theme</button>
```

## Requirements / Notes

- **Bun-only.** `bundleCss` uses `Bun.build`'s CSS bundler for `@import` resolution, nesting, and minification. Node is not supported.
- Config and env loading use `node:fs` / `node:path` / `node:url` and read from `process.env`.
- Peer package: `@wrnexus/core` supplies the `SeoConfig` and `SecurityConfig` types referenced by `AppConfig`.
- The bundled global stylesheet, the theme stylesheet (`THEME_CSS_HREF`), and the theme runtime (`THEME_JS_HREF`) are wired into pages by the framework's server; this package only produces their contents.

### Exported TypeScript declarations

```ts
import { PerformanceBudgets, SeoConfig, SecurityConfig } from '@wrnexus/core';
import { PluginInput } from '@wrnexus/plugin';
import { StorageConfig } from '@wrnexus/uploader';

/**
 * Theme system — design tokens that work SSR and client-side.
 *
 * Tokens are plain CSS custom properties (`--wire-<key>`) so they cascade and
 * can be overridden by user CSS. Each theme is a flat token map; the framework
 * ships default `light`/`dark` sets and the user's config deep-merges over them.
 *
 * The server renders `<html data-theme="…">` from the `wire-theme` cookie (no
 * flash), and a tiny client runtime toggles/persists it. The reserved token key
 * `color-scheme` is emitted as the native CSS property (not a variable) so form
 * controls and scrollbars match the theme.
 */
type ThemeTokens = Record<string, string>;
declare const THEME_PALETTE_NAMES: readonly ["blue", "indigo", "violet", "emerald", "cyan", "rose", "amber", "slate"];
type ThemePaletteName = (typeof THEME_PALETTE_NAMES)[number];
/** Required semantic colors for a custom application palette. */
interface CustomThemePalette {
    primary: string;
    primaryHover: string;
    primaryContrast: string;
    secondary: string;
    secondaryHover: string;
    secondaryContrast: string;
    info: string;
    success: string;
    warning: string;
    danger: string;
}
interface ThemeConfig {
    /** Built-in palette name, or a complete custom semantic color palette. */
    palette?: ThemePaletteName | CustomThemePalette;
    /** Name of the theme used when no `wire-theme` cookie is present. */
    default?: string;
    /** Named token maps. Deep-merged over the framework's built-in light/dark. */
    themes?: Record<string, ThemeTokens>;
}
interface ResolvedTheme {
    default: string;
    names: string[];
    themes: Record<string, ThemeTokens>;
}
/** Cookie the resolved theme is read from / persisted to. */
declare const THEME_COOKIE = "wire-theme";
declare const THEME_CSS_HREF = "/__wrnexus/theme.css";
declare const THEME_JS_HREF = "/__wrnexus/theme.js";
declare const THEME_PALETTES: Record<ThemePaletteName, CustomThemePalette>;
/** Built-in themes so components have tokens out of the box. */
declare const DEFAULT_THEMES: Record<string, ThemeTokens>;
/** Merge the user's theme config over the built-in defaults. */
declare function resolveThemeConfig(config?: ThemeConfig): ResolvedTheme;
/** Pick a valid theme name from a cookie value, falling back to the default. */
declare function resolveThemeName(cookieValue: string | undefined, theme: ResolvedTheme): string;
/** Generate the theme stylesheet: a `:root` default plus one block per theme. */
declare function renderThemeCss(theme: ResolvedTheme): string;
/**
 * Generate the client theme runtime. It exposes `window.wireTheme` and binds
 * `[data-wire-theme-toggle]` / `[data-wire-theme-set]` elements. The configured
 * theme names are baked in so `toggle()` cycles through them in order.
 */
declare function renderThemeRuntime(theme: ResolvedTheme): string;

/**
 * Font configuration.
 *
 * Declare fonts in `wrnexus.config.ts` under `fonts` and the framework emits
 * optimized `<head>` markup for you:
 *   - Google Fonts: `preconnect` hints + a single subsetted stylesheet request
 *     (only the weights you list) with `font-display`. The CSP is auto-extended
 *     so the fonts load under the default security policy (see loadAppConfig).
 *   - Self-hosted fonts: generated `@font-face` rules + optional `<link rel=preload>`
 *     for above-the-fold text (the fastest, no-third-party option).
 *   - Family stacks: `sans`/`mono`/`serif` become `--wrn-font-*` CSS variables,
 *     and `sans` is applied to `body`.
 */
type FontDisplay = "auto" | "block" | "swap" | "fallback" | "optional";
interface GoogleFont {
    /** Family name as it appears on fonts.google.com, e.g. "Inter". */
    family: string;
    /** Weights to load — ONLY these are fetched. Default: [400]. */
    weights?: (number | string)[];
    /** Also load italic styles for each weight. */
    italic?: boolean;
    /** Per-font `font-display` override (else the config default). */
    display?: FontDisplay;
}
interface LocalFontFace {
    /** `font-family` name this face defines. */
    family: string;
    /** URL to the font file, typically served from `public/` (e.g. "/fonts/inter.woff2"). */
    src: string;
    /** e.g. 400, "700", or "100 900" for a variable font. Default: 400. */
    weight?: number | string;
    style?: "normal" | "italic";
    /** CSS `src` format; inferred from the file extension when omitted. */
    format?: string;
    display?: FontDisplay;
    /** Emit `<link rel="preload" as="font">` — use for the primary above-the-fold face. */
    preload?: boolean;
    /** Optional `unicode-range` subset. */
    unicodeRange?: string;
}
interface FontConfig {
    /** Google Fonts, loaded with preconnect + weight subsetting + `font-display`. */
    google?: GoogleFont[];
    /** Self-hosted `@font-face` definitions (files served from `public/`). */
    local?: LocalFontFace[];
    /** Default `font-display` for faces that don't set their own. Default: "swap". */
    display?: FontDisplay;
    /** Body / default family stack → `--wrn-font-sans` + `body { font-family }`. */
    sans?: string;
    /** Monospace family stack → `--wrn-font-mono`. */
    mono?: string;
    /** Serif family stack → `--wrn-font-serif`. */
    serif?: string;
}
/**
 * Render all `<head>` markup for a font config. Returns "" when nothing is
 * configured. The output is trusted, framework-controlled HTML.
 */
declare function renderFontHead(fonts?: FontConfig): string;
/**
 * Production variant that inlines the small Google Fonts stylesheet at build
 * time. This removes a render-blocking CSS round trip while retaining the same
 * font files, `font-display`, CSP sources, and offline-safe fallback markup.
 */
declare function renderProductionFontHead(fonts?: FontConfig, fetcher?: (input: string, init?: RequestInit) => Promise<Response>): Promise<string>;
/**
 * CSP source hosts required by the configured fonts, so the policy can be
 * auto-extended (Google Fonts need their CSS + static hosts allow-listed).
 */
declare function fontCspSources(fonts?: FontConfig): {
    style: string[];
    font: string[];
};

/**
 * App configuration loader (`wrnexus.config.ts`).
 *
 * The config is optional. It lets an app inject arbitrary `<head>` HTML (ideal
 * for CDN-delivered CSS frameworks like Bootstrap or the Tailwind Play CDN) and
 * customise the global stylesheet pipeline (entry file or a custom processor for
 * Tailwind / PostCSS / Sass).
 */

type Mode = "development" | "production";
interface StyleProcessContext {
    /** Resolved absolute path to the CSS entry, or null if there is none. */
    entryPath: string | null;
    appDir: string;
    appRoot: string;
    mode: Mode;
}
interface StylesConfig {
    /** Path to the CSS entry, relative to the app root. Default: app/styles/global.css */
    entry?: string;
    /**
     * Optional custom processor. Return the final CSS string. Use this to run
     * Tailwind, PostCSS, Sass, etc. When omitted, the built-in Bun CSS bundler is
     * used (which already resolves `@import`, including from node_modules).
     */
    process?: (ctx: StyleProcessContext) => string | Promise<string>;
}
interface MobileConfig {
    enabled?: boolean;
    /** Mobile renderer. `webview` uses Capacitor; `native` scaffolds an Expo/React Native app. */
    mode?: "webview" | "native";
    appId?: string;
    appName?: string;
    serverUrl?: string;
    userAgent?: string;
    layout?: string;
    backgroundColor?: string;
    icon?: string;
    errorTitle?: string;
    errorMessage?: string;
    /** Base URL used by a fully native client for WrNexus API and realtime requests. */
    apiUrl?: string;
    /** URL scheme used for native deep links (defaults to a slug of appName). */
    scheme?: string;
    /** Advanced Expo app config fields merged into generated app.config.ts. */
    expo?: Record<string, unknown>;
    /** Advanced CapacitorConfig fields merged into generated capacitor.config.ts. */
    capacitor?: Record<string, unknown>;
}
interface PwaScreenshot {
    src: string;
    sizes: string;
    type?: string;
    formFactor?: "wide" | "narrow";
    label?: string;
}
interface PwaShortcut {
    name: string;
    shortName?: string;
    description?: string;
    url: string;
    icons?: Array<{
        src: string;
        sizes: string;
        type?: string;
        purpose?: string;
    }>;
}
interface PwaConfig {
    enabled?: boolean;
    id?: string;
    name?: string;
    shortName?: string;
    description?: string;
    startUrl?: string;
    scope?: string;
    lang?: string;
    display?: "standalone" | "fullscreen" | "minimal-ui" | "browser";
    orientation?: "any" | "natural" | "landscape" | "landscape-primary" | "landscape-secondary" | "portrait" | "portrait-primary" | "portrait-secondary";
    themeColor?: string;
    backgroundColor?: string;
    icons?: Array<{
        src: string;
        sizes: string;
        type?: string;
        purpose?: string;
    }>;
    categories?: string[];
    screenshots?: PwaScreenshot[];
    shortcuts?: PwaShortcut[];
    /** Disable service-worker registration while keeping the web manifest. */
    serviceWorker?: boolean;
    /** Navigation shown when both the network and requested page cache are unavailable. */
    offlineUrl?: string;
    /** Additional same-origin URLs precached during service-worker installation. */
    cacheUrls?: string[];
    /** Service-worker cache key. Change it to invalidate existing PWA caches. */
    cacheName?: string;
}
type DevToolbarPosition = "bottom-center" | "bottom-left" | "bottom-right";
interface DevToolbarConfig {
    enabled?: boolean;
    position?: DevToolbarPosition;
    defaultOpen?: boolean;
    keyboardShortcut?: string;
    scanOnNavigation?: boolean;
    scanOnHmr?: boolean;
    openEditor?: boolean;
    editor?: string;
    rules?: Partial<Record<string, boolean>>;
    severity?: Partial<Record<string, "error" | "warning" | "info" | "suggestion">>;
    ignoredRules?: string[];
    ignoredPaths?: string[];
    slowRequestMs?: number;
    largeImageBytes?: number;
    veryLargeImageBytes?: number;
}
interface ExperimentalConfig {
    serverComponents?: boolean;
    streaming?: boolean;
    partialHydration?: boolean;
    typedRpc?: boolean;
    pluginTransforms?: boolean;
    [feature: string]: boolean | undefined;
}
interface PerformanceConfig {
    budgets?: PerformanceBudgets;
    /** `warn` reports budget violations; `error` fails production builds. */
    enforcement?: "off" | "warn" | "error";
    analyze?: boolean;
}
interface ObservabilityConfig {
    enabled?: boolean;
    serviceName?: string;
    serverTiming?: boolean;
    sampleRate?: number;
    exporter?: "console" | "otlp" | "none";
    endpoint?: string;
}
interface TenancyConfig {
    mode?: "subdomain" | "domain" | "path" | "custom";
    required?: boolean;
    rootDomains?: string[];
    pathPrefix?: string;
}
interface BuildConfig {
    cache?: boolean;
    cacheDir?: string;
    sourceMaps?: boolean;
    report?: boolean;
    adapter?: "bun" | "node" | "static" | "serverless" | "edge" | string;
}
interface AppConfig {
    /** Compiler/dev/build plugins, resolved in deterministic pre/normal/post order. */
    plugins?: PluginInput;
    /** Opt-in APIs that are not yet covered by stable compatibility guarantees. */
    experimental?: ExperimentalConfig;
    /** Route and asset budgets plus build analyzer behavior. */
    performance?: PerformanceConfig;
    /** Request tracing, Server-Timing, and exporter configuration. */
    observability?: ObservabilityConfig;
    /** First-class tenant resolution defaults. */
    tenancy?: TenancyConfig;
    /** Build cache, source map, report, and deployment adapter settings. */
    build?: BuildConfig;
    /** Development-only page diagnostics toolbar. Enabled by default in development. */
    devToolbar?: boolean | DevToolbarConfig;
    /** Raw HTML appended to every page's `<head>` (e.g. CDN stylesheet links). */
    head?: string | string[];
    /** Global SEO defaults merged with every page's exported `meta`. */
    seo?: SeoConfig;
    /** Framework security headers and optional CORS policy. */
    security?: SecurityConfig;
    styles?: StylesConfig;
    /** Capacitor/native shell defaults and mobile-only page rendering. */
    mobile?: MobileConfig;
    /** Progressive Web App metadata. Enabled by default unless set to false. */
    pwa?: PwaConfig | false;
    /**
     * Fonts. Declare Google Fonts (subsetted + preconnect + `font-display`) and/or
     * self-hosted `@font-face` (with preload), and set `sans`/`mono`/`serif` family
     * stacks. Google Fonts auto-extend the CSP so they load under the default policy.
     */
    fonts?: FontConfig;
    /** Design-token themes (deep-merged over the built-in light/dark). */
    theme?: ThemeConfig;
    /** i18n: default language + supported locales (strings live in app/locales/*.json). */
    i18n?: {
        default?: string;
        locales?: string[];
    };
    /** Default database connection (driver + url); reached with `getDb()`. */
    db?: {
        driver: "sqlite" | "postgres" | "mysql" | "mongo";
        url: string;
    };
    /**
     * File-upload storage. Declare named stores (local dir or S3-compatible),
     * upload with `handleUpload`/`upload` from `@wrnexus/uploader`, and serve
     * files back. Each store is `access: "public" | "private"`.
     */
    storage?: StorageConfig;
    /**
     * Additional named databases, reached with `getDb("<name>")`. Each has its own
     * migrations/queries under `app/db/<name>/`. Connect to as many as you like and
     * read/write to any of them per request.
     *
     *   databases: { analytics: { driver: "postgres", url: "…" } }
     */
    databases?: Record<string, {
        driver: "sqlite" | "postgres" | "mysql" | "mongo";
        url: string;
    }>;
    /**
     * Realtime scaling. When `scale` is true (or `redisUrl` is set), room
     * broadcasts are bridged over Redis pub/sub so they reach clients on **every**
     * app process/instance — realtime that works with multiple running apps.
     */
    realtime?: {
        scale?: boolean;
        redisUrl?: string;
    };
    /** Default server port. */
    port?: number;
    /**
     * Named config profiles (dev, prod, uat, test, …). When a profile is active
     * its overrides are DEEP-MERGED over the base config. Select with
     * `--profile=<name>` or the `WRNEXUS_PROFILE` env var.
     */
    profiles?: Record<string, Partial<Omit<AppConfig, "profiles">>>;
}
/**
 * Resolve the active profile name: explicit argument > `WRNEXUS_PROFILE` env var
 * > a mode-based default ("production" in prod, else "development").
 */
declare function resolveProfile(options?: {
    explicit?: string;
    mode?: Mode;
}): string;
/** Load the raw `wrnexus.config.*` (with the `profiles` map intact), or `{}`. */
declare function loadRawConfig(appRoot: string): Promise<AppConfig>;
/** Load `wrnexus.config.*`, applying the active profile's overrides. */
declare function loadAppConfig(appRoot: string, profile?: string): Promise<AppConfig>;
/**
 * Load the `.env` cascade for a profile into `process.env`, WITHOUT clobbering
 * variables already set in the real environment (which always win). Order, low
 * → high precedence: `.env` < `.env.<profile>` < `.env.local` < `.env.<profile>.local`.
 * Returns the variables it loaded.
 */
declare function loadEnv(appRoot: string, profile: string): Record<string, string>;
interface ConfigIssue {
    path: string;
    severity: "error" | "warning";
    message: string;
}
declare function defineConfig(config: AppConfig): AppConfig;
declare function validateAppConfig(config: AppConfig): ConfigIssue[];
interface ExplainedConfig {
    profile: string;
    config: AppConfig;
    issues: ConfigIssue[];
    sources: string[];
}
declare function explainAppConfig(appRoot: string, profile?: string): Promise<ExplainedConfig>;
/** Flatten a head config into a single HTML string. */
declare function headToString(head?: string | string[]): string;

/**
 * Global stylesheet pipeline.
 *
 * Convention: `app/styles/global.css` is the entry. If it is absent but other
 * `app/styles/*.css` files exist, they are aggregated into one entry. The entry
 * is bundled by Bun's CSS bundler, which resolves `@import` — including from
 * node_modules — so any npm CSS framework (Bootstrap, etc.) works by importing
 * it. A custom `process` hook can replace the bundler for Tailwind/PostCSS/Sass.
 */

/**
 * Resolve the CSS entry for an app.
 *  - `override` (from config.styles.entry) is resolved relative to `appRoot`.
 *  - otherwise prefer `app/styles/global.css`.
 *  - otherwise aggregate all `app/styles/*.css` into a generated entry.
 * Returns null when the app has no styles.
 */
declare function findStyleEntry(appDir: string, appRoot: string, override?: string): string | null;
/**
 * Bundle a CSS entry into a single stylesheet string using Bun's CSS bundler.
 * Resolves `@import` (local and node_modules), handles nesting, minifies in prod.
 */
declare function bundleCss(entryPath: string, mode: Mode): Promise<string>;

/**
 * @wrnexus/styles — global stylesheet pipeline + app config.
 *
 * Works for SSR and CSR: the bundled stylesheet is `<link>`ed into every page's
 * `<head>`, so it styles server-rendered markup and hydrated client islands
 * alike. Use any CSS framework via `@import` in global.css (npm) or via a CDN
 * link in `wrnexus.config.ts`'s `head` field.
 */

/**
 * Produce the final CSS for an entry: run the config's custom processor if one
 * is provided (Tailwind/PostCSS/Sass), otherwise use the built-in Bun bundler.
 *
 * If a custom processor throws (e.g. Tailwind can't resolve `tailwindcss`
 * because deps aren't installed), we DON'T crash every request — we log a clear,
 * actionable message and fall back to best-effort CSS so the app keeps serving.
 */
declare function renderStyles(ctx: StyleProcessContext, styles?: StylesConfig): Promise<string>;

export { type AppConfig, type BuildConfig, type ConfigIssue, type CustomThemePalette, DEFAULT_THEMES, type DevToolbarConfig, type ExperimentalConfig, type ExplainedConfig, type FontConfig, type FontDisplay, type GoogleFont, type LocalFontFace, type MobileConfig, type Mode, type ObservabilityConfig, type PerformanceConfig, type PwaConfig, type ResolvedTheme, type StyleProcessContext, type StylesConfig, type Mode as StylesMode, THEME_COOKIE, THEME_CSS_HREF, THEME_JS_HREF, THEME_PALETTES, THEME_PALETTE_NAMES, type TenancyConfig, type ThemeConfig, type ThemePaletteName, type ThemeTokens, bundleCss, defineConfig, explainAppConfig, findStyleEntry, fontCspSources, headToString, loadAppConfig, loadEnv, loadRawConfig, renderFontHead, renderProductionFontHead, renderStyles, renderThemeCss, renderThemeRuntime, resolveProfile, resolveThemeConfig, resolveThemeName, validateAppConfig };
```

---

## @wrnexus/syntax

Documentation URL: https://wrnexusjs.dev/packages/syntax

# @wrnexus/syntax

Canonical WRN lexer, parser, AST, language metadata, source positions, and stable
diagnostics. Framework tooling should import this package instead of implementing a
separate `.wrn` parser.

See `docs/WRN-LANGUAGE-SPEC-1.0.md` in the WRNexusJS repository.

### Exported TypeScript declarations

```ts
export { LexError, Lexer } from './tokenizer.js';
export { ActionBlock, ApiBlock, Attr, ComputedDecl, DataApiBlock, DataMode, EffectBlock, LifecycleBlock, LoadBlock, ModeFunctionsBlock, PageAst, ParseError, PropDecl, RealtimeBlock, RealtimeHandler, SeoBlock, StateDecl, VOID_ELEMENTS, ViewNode, WatchBlock, parse, parseHtmlView } from './parser.js';
export { RuntimeType, eraseFunctionTypes, inferredRuntimeType, runtimeTypeOf, validateTypedInitializer } from './types.js';
export { DiagnoseOptions, WrnDiagnostic, WrnDiagnosticSeverity, WrnSourcePosition, assertValidAst, classifyParseError, diagnose, diagnosticFromError, formatDiagnostic, isHydrationStrategy, isRuntimeTarget, positionAt } from './diagnostics.js';
export { WRN_DIAGNOSTIC_CODES, WRN_HYDRATION_STRATEGIES, WRN_LANGUAGE_VERSION, WRN_ROOT_KINDS, WRN_ROOT_MEMBERS, WRN_RUNTIME_TARGETS, WrnHydrationStrategy, WrnRootKind, WrnRootMember, WrnRuntimeTarget } from './spec.js';
```

---

## @wrnexus/test

Documentation URL: https://wrnexusjs.dev/packages/test

# @wrnexus/test

> Testing utilities for WrNexus apps — component rendering, reactive-DOM mounting, route handler calls, and a full in-process app harness, plus a one-import re-export of `bun:test`.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/test` is the server-side test toolkit you reach for when writing tests
for a WrNexus app. It runs under `bun test` (invoked via `wrnexus test`) and gives
you a single import surface: the `bun:test` primitives (`test`, `expect`, `mock`,
…) re-exported alongside WrNexus-aware helpers that compile `.wrn` components,
hydrate server HTML in a DOM, invoke API route handlers, and boot the real app on
an ephemeral port for integration tests.

## Installation

```bash
bun add @wrnexus/test
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

### Re-exported test primitives

For one-import DX, the following are re-exported straight from `bun:test`:

`test`, `expect`, `describe`, `it`, `beforeEach`, `afterEach`, `beforeAll`,
`afterAll`, `mock`, `spyOn`.

`createContext` is also re-exported from `@wrnexus/core`.

### `renderComponent(source, props?)`

```ts
function renderComponent(source: string, props?: Record<string, unknown>): Promise<string>;
```

Compiles a `.wrn` component `source` string (via `@wrnexus/compiler`) and renders
it to an HTML string with the given `props`. Throws if the compiled module has no
`render` export.

### `mountHtml(html)`

```ts
function mountHtml(html: string): {
  document: Document;
  window: unknown;
  querySelector: (sel: string) => Element | null;
  querySelectorAll: (sel: string) => Element[];
};
```

Mounts server-rendered `html` in a `happy-dom` window with the reactive runtime
hydrated, so you can test `data-scope` / `data-text` / `data-for` / `data-show`
behaviour. Returns the window plus `document` and query helpers; assert on those.

> `happy-dom` is loaded lazily (via `require`), so importing this package never
> requires it unless you actually call `mountHtml`.

### `callRoute(handler, request)`

```ts
function callRoute(
  handler: (ctx: Context) => Response | Promise<Response>,
  request: Request,
): Promise<Response>;
```

Calls an API route `handler` with a `Context` built from a `Request` (using
`createContext`). Returns the handler's `Response`.

### `createHarness(projectRoot, options?)`

```ts
function createHarness(projectRoot: string, options?: HarnessOptions): Promise<Harness>;

interface HarnessOptions {
  /** Config/env profile. Default "test". */
  profile?: string;
}

interface Harness {
  /** Base URL of the ephemeral test server. */
  url: string;
  /** Fetch a path on the app (relative to `url`). */
  fetch(path: string, init?: RequestInit): Promise<Response>;
  /** The scanned router (pages/api/realtime/components). */
  router: unknown;
  /** Stop the server. */
  close(): void;
}
```

Boots the app at `projectRoot` on an ephemeral port (`port: 0`) for integration
tests covering pages, API routes, middleware, and the full request pipeline. Loads
env and app config for the given `profile` (default `"test"`) so it picks up your
test database/env. The server runs in `development` mode with HMR disabled.
Remember to `await app.close()` when done.

## Usage

```ts
import { test, expect, renderComponent, mountHtml, createHarness } from "@wrnexus/test";

test("counter renders its label", async () => {
  const html = await renderComponent(SRC, { start: 3, label: "Hits" });
  expect(html).toContain("Hits");
});

test("reactive scope hydrates", () => {
  const { querySelector } = mountHtml(serverHtml);
  expect(querySelector("[data-text]")?.textContent).toBe("3");
});

test("home page responds", async () => {
  const app = await createHarness("examples/basic-app");
  const res = await app.fetch("/");
  expect(res.status).toBe(200);
  await app.close();
});
```

Calling an API route handler directly:

```ts
import { test, expect, callRoute } from "@wrnexus/test";
import { GET } from "../app/api/health.ts";

test("health endpoint", async () => {
  const res = await callRoute(GET, new Request("http://test/api/health"));
  expect(res.status).toBe(200);
});
```

## Requirements / Notes

- **Bun-only.** Runs under `bun test` (via `wrnexus test`); uses Bun's module
  loading and the `bun:test` runtime.
- `mountHtml` requires **`happy-dom`** to be available in the workspace (loaded
  lazily; it's a dev dependency, not a runtime dependency of this package).
- Works with the rest of the WrNexus toolchain:
  [`@wrnexus/compiler`](../compiler) (compiles `.wrn` sources),
  [`@wrnexus/core`](../core) (`Context` / `createContext`),
  [`@wrnexus/csr`](../csr) (reactive runtime for `mountHtml`),
  [`@wrnexus/dev-server`](../dev-server) (`startServer` behind `createHarness`),
  and [`@wrnexus/styles`](../styles) (config/env/profile loading for the harness).

### Exported TypeScript declarations

```ts
import { Context } from '@wrnexus/core';
export { createContext } from '@wrnexus/core';
export { afterAll, afterEach, beforeAll, beforeEach, describe, expect, it, mock, spyOn, test } from 'bun:test';

/**
 * @wrnexus/test — testing utilities for WrNexus apps. Runs on `bun test` (via
 * `wrnexus test`). Import everything from one place:
 *
 *   import { test, expect, renderComponent, mountHtml, createHarness } from "@wrnexus/test";
 *
 *   test("counter renders its label", async () => {
 *     const html = await renderComponent(SRC, { start: 3, label: "Hits" });
 *     expect(html).toContain("Hits");
 *   });
 *
 *   test("home page responds", async () => {
 *     const app = await createHarness("examples/basic-app");
 *     const res = await app.fetch("/");
 *     expect(res.status).toBe(200);
 *     await app.close();
 *   });
 */

/** Compile a `.wrn` component source + render it to HTML with the given props. */
declare function renderComponent(source: string, props?: Record<string, unknown>): Promise<string>;
/**
 * Mount server-rendered HTML in a happy-dom window with the reactive runtime
 * hydrated, so you can test `data-scope`/`data-text`/`data-for`/`data-show`
 * behaviour. Returns the window; assert on `win.document`.
 */
declare function mountHtml(html: string): {
    document: Document;
    window: unknown;
    querySelector: (sel: string) => Element | null;
    querySelectorAll: (sel: string) => Element[];
};
/** Call an API route handler with a `Context` built from a Request. */
declare function callRoute(handler: (ctx: Context) => Response | Promise<Response>, request: Request): Promise<Response>;
interface Harness {
    /** Base URL of the ephemeral test server. */
    url: string;
    /** Fetch a path on the app (relative to `url`). */
    fetch(path: string, init?: RequestInit): Promise<Response>;
    /** The scanned router (pages/api/realtime/components). */
    router: unknown;
    /** Stop the server. */
    close(): void;
}
interface HarnessOptions {
    /** Config/env profile. Default "test". */
    profile?: string;
}
/**
 * Boot the app on an ephemeral port for integration tests (pages, API routes,
 * middleware, the full pipeline). Uses the "test" profile by default so it picks
 * up your test database/env. Remember to `await app.close()`.
 */
declare function createHarness(projectRoot: string, options?: HarnessOptions): Promise<Harness>;

export { type Harness, type HarnessOptions, callRoute, createHarness, mountHtml, renderComponent };
```

---

## @wrnexus/tracking

Documentation URL: https://wrnexusjs.dev/packages/tracking

# @wrnexus/tracking

> Error tracking for WrNexus apps: capture exceptions manually or via middleware and fan them out to pluggable sinks.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/tracking` is a small, server-side error-capture layer. You create a
tracker with one or more **sinks**, then feed it errors — either manually with
`tracker.capture(err, context)` or automatically by mounting `tracker.middleware()`
in your request pipeline. A `consoleSink` is included; forwarding to Sentry,
Datadog, or any other backend is just a matter of writing a tiny sink. Reach for
it when you want a single, sink-agnostic place to route application errors. Sinks
run best-effort — a throwing sink never breaks the request.

## Installation

```bash
bun add @wrnexus/tracking
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

### `createTracker(options?): Tracker`

Creates a tracker. `TrackerOptions`:

| Option       | Type                                        | Description                                                                 |
| ------------ | ------------------------------------------- | --------------------------------------------------------------------------- |
| `sinks`      | `ErrorSink[]`                               | Initial sinks to fan events out to. Defaults to `[]`.                       |
| `now`        | `() => number`                              | Clock used for `event.timestamp` (epoch ms). Defaults to `Date.now`.        |
| `beforeSend` | `(event: ErrorEvent) => ErrorEvent \| null` | Scrub/enrich an event before it reaches any sink. Return `null` to drop it. |

The returned `Tracker`:

| Member       | Signature                                                              | Description                                                                                                                                                                          |
| ------------ | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `capture`    | `(error: unknown, context?: Record<string, unknown>) => Promise<void>` | Normalizes any thrown value into an `Error`, builds an `ErrorEvent`, runs `beforeSend`, then dispatches to all sinks. Non-`Error` values are wrapped in an `Error` named `NonError`. |
| `addSink`    | `(sink: ErrorSink) => void`                                            | Registers an additional sink at runtime.                                                                                                                                             |
| `middleware` | `() => Middleware`                                                     | Returns a WrNexus `Middleware` that captures any error thrown downstream, then re-throws it so the framework's error handler still produces the response.                            |

The middleware attaches this context to captured events:

```ts
{ method: ctx.req.method, path: ctx.url.pathname, requestId: ctx.locals.requestId }
```

### `consoleSink: ErrorSink`

A built-in sink that logs a compact one-line message via `console.error`, e.g.
`[error] TypeError: cannot read x {"userId":42}`.

### Types

```ts
interface ErrorEvent {
  error: Error;
  context: Record<string, unknown>; // request info, user id, tags…
  timestamp: number; // epoch ms
}

interface ErrorSink {
  name?: string;
  capture(event: ErrorEvent): void | Promise<void>;
}
```

## Usage

Manual capture:

```ts
import { createTracker, consoleSink } from "@wrnexus/tracking";

const tracker = createTracker({ sinks: [consoleSink] });

try {
  await doWork();
} catch (err) {
  await tracker.capture(err, { userId: 42, op: "doWork" });
  throw err;
}
```

As request middleware:

```ts
import { createTracker, consoleSink } from "@wrnexus/tracking";

const tracker = createTracker({ sinks: [consoleSink] });

app.use(tracker.middleware()); // captures + re-throws downstream errors
```

A custom sink with `beforeSend` scrubbing:

```ts
import { createTracker, type ErrorSink } from "@wrnexus/tracking";

const sentrySink: ErrorSink = {
  name: "sentry",
  async capture(event) {
    await Sentry.captureException(event.error, { extra: event.context });
  },
};

const tracker = createTracker({
  sinks: [sentrySink],
  beforeSend(event) {
    delete event.context.password; // scrub secrets
    return event; // return null to drop the event entirely
  },
});

tracker.addSink(anotherSink); // add more sinks later
```

## Requirements / Notes

- Runs on **Bun** only (Node is not supported).
- Peer package: [`@wrnexus/core`](../core) — the `Context` and `Middleware` types
  used by `tracker.middleware()` come from there.
- Sink dispatch is fire-and-forget-safe: all sinks run via `Promise.all`, and a
  sink that throws is swallowed so it can never break the app.

### Exported TypeScript declarations

```ts
import { Middleware } from '@wrnexus/core';

/**
 * @wrnexus/tracking — error tracking with pluggable sinks. Capture exceptions
 * manually or via middleware, and fan them out to any sink (console by default;
 * write a small sink to forward to Sentry/Datadog/etc.).
 *
 *   const tracker = createTracker({ sinks: [consoleSink] });
 *   app-middleware: tracker.middleware()   // captures + re-throws request errors
 *   tracker.capture(err, { userId });      // manual
 */

interface ErrorEvent {
    error: Error;
    /** Arbitrary structured context (request info, user id, tags…). */
    context: Record<string, unknown>;
    /** Epoch ms. */
    timestamp: number;
}
interface ErrorSink {
    name?: string;
    capture(event: ErrorEvent): void | Promise<void>;
}
interface Tracker {
    capture(error: unknown, context?: Record<string, unknown>): Promise<void>;
    addSink(sink: ErrorSink): void;
    /** Middleware that captures errors thrown downstream, then re-throws them. */
    middleware(): Middleware;
}
interface TrackerOptions {
    sinks?: ErrorSink[];
    now?: () => number;
    /** Scrub/enrich an event before it hits sinks (return null to drop it). */
    beforeSend?: (event: ErrorEvent) => ErrorEvent | null;
}
/** A sink that logs a compact one-line error to the console. */
declare const consoleSink: ErrorSink;
declare function createTracker(options?: TrackerOptions): Tracker;

export { type ErrorEvent, type ErrorSink, type Tracker, type TrackerOptions, consoleSink, createTracker };
```

---

## @wrnexus/ui

Documentation URL: https://wrnexusjs.dev/packages/ui

# @wrnexus/ui

> First-party Wire UI component library — a set of themeable `.wrn` components plus a single tokenized stylesheet.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

`@wrnexus/ui` ships a library of server-rendered `.wrn` components (layout, form
controls, and feedback UI) together with one themeable stylesheet, `ui.css`. The
components are **auto-discovered** by the framework router — you don't import them
in code. Once the package's component directory is on the router's scan path, you
mount any component in a page with `data-component="<name>"`. Every visual is
driven by `var(--wire-*)` theme tokens, so components restyle instantly when the
theme changes. The tiny JS surface (`src/index.ts`) exists only so the toolchain
(CLI build + dev server) can locate the component directory and stylesheet.

The complete PDF-aligned catalog currently contains **891 components**. The
generated `COMPONENTS.md` and `component-reference.json` files document every
mount name, prop, inferred type, default/required status, slot, event, category,
and source file directly from the packaged `.wrn` source.

## Installation

```bash
bun add @wrnexus/ui
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

In practice you rarely install this directly: `@wrnexus/cli` and
`@wrnexus/dev-server` already depend on it and wire it into the router for you
(see [Auto-discovery](#auto-discovery)).

## Components

Components live as `.wrn` files under `packages/ui/components/`. The mount name
is the **lowercase file basename** (e.g. `button.wrn` → `data-component="button"`).
Each accepts a `class` prop (appended to its root element) and most render their
body from either a named prop or the default slot.

### Layout

| Name        | Purpose                            | Key props   |
| ----------- | ---------------------------------- | ----------- |
| `container` | Max-width centered content wrapper | `class`     |
| `stack`     | Vertical column with gap           | `gap` (0–8) |
| `hstack`    | Horizontal row with gap            | `gap` (0–8) |
| `grid`      | CSS grid container                 | see source  |
| `divider`   | Horizontal rule                    | `class`     |
| `spacer`    | Flexible/empty spacing element     | see source  |

### Core / feedback

| Name           | Purpose                                              | Key props                                                                                       |
| -------------- | ---------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
| `button`       | Button                                               | `label`, `variant` (`default`\|`primary`\|`danger`\|`ghost`), `size` (`sm`\|`md`\|`lg`), `type` |
| `input`        | Text input                                           | see source                                                                                      |
| `textarea`     | Multi-line input                                     | see source                                                                                      |
| `checkbox`     | Checkbox                                             | see source                                                                                      |
| `badge`        | Small status badge                                   | `label`, `variant`                                                                              |
| `alert`        | Callout box                                          | `variant` (`info`\|`success`\|`danger`\|`warning`), `title`, `message`                          |
| `card`         | Padded, bordered surface                             | `class`                                                                                         |
| `avatar`       | User avatar                                          | see source                                                                                      |
| `spinner`      | Loading indicator                                    | see source                                                                                      |
| `disclosure`   | Expandable details/summary                           | see source                                                                                      |
| `theme-toggle` | Theme switch button (binds `data-wire-theme-toggle`) | `label`                                                                                         |

### Additional controls & data display

Also shipped: `select`, `radio`, `switch`, `progress`, `tag`, `skeleton`,
`tooltip`, `table`, `FAQAccordion`, `AnnouncementBar`, and `BackToTop`.

The PDF-defined minimum release and essential build-first set also includes
typed typography, form primitives, loading actions, combobox and multi-select,
time/date-time and recurring schedule controls, confirmation dialogs, data
tables, filters, desktop/mobile navigation, mega menus, marketing/product/legal
page shells, product and metric cards, FAQ composition, pricing comparison,
SDK tabs, legal navigation, and cookie preferences.

`Seo` and `StructuredData` remain framework/page concerns rather than body
components: use the native page `seo { ... }` block and document-head APIs so
metadata is emitted in `<head>` instead of invalid component markup.

The authoritative, always-current list is `uiComponentNames()` (below), which reads
the component directory at runtime.

For the full catalog, see [`COMPONENTS.md`](./COMPONENTS.md). The machine-readable
equivalent is exported as `@wrnexus/ui/component-reference.json`.

## API

The JS module (`@wrnexus/ui`) exposes four helpers used by the build tooling to
locate the component assets. There is no component code to import — the components
are `.wrn` files rendered server-side.

| Export             | Signature        | Returns                                                                                    |
| ------------------ | ---------------- | ------------------------------------------------------------------------------------------ |
| `uiComponentsDir`  | `() => string`   | Absolute path to the `.wrn` component directory (feed to `buildRouter`'s `componentDirs`). |
| `uiCssPath`        | `() => string`   | Absolute path to `ui.css`.                                                                 |
| `uiCss`            | `() => string`   | The `ui.css` file contents (all `.wire-*` classes, themed via tokens).                     |
| `uiComponentNames` | `() => string[]` | Sorted list of built-in component names (e.g. for `wrnexus eject` listing).                |

### `./ui.css` asset export

`package.json` also exposes the raw stylesheet as a subpath asset:

```json
"exports": {
  ".": "./src/index.ts",
  "./ui.css": "./ui.css"
}
```

The framework serves this stylesheet once at `/__wrnexus/ui.css`, so pages get all
component styles from a single request.

### Tailwind and motion

Components use static Tailwind utility classes alongside the shared `.wire-*`
layer. If the package is consumed by a separate Tailwind build, include its
component sources so every utility is generated:

```css
@import "tailwindcss";
@source "../node_modules/@wrnexus/ui/components/*.wrn";
```

The shared stylesheet gives all component boundaries consistent, GPU-friendly
entry and interaction motion. Override `--wire-motion-fast`,
`--wire-motion-base`, `--wire-motion-slow`, `--wire-ease-standard`, or
`--wire-ease-emphasized` to tune it. Hover lift is limited to precise pointing
devices and `prefers-reduced-motion` is honored automatically.

### Using the selected theme in application UI

The active theme and palette are not limited to `@wrnexus/ui` components. The
framework exposes the resolved values as semantic CSS custom properties, so
pages and custom `.wrn` components can use the same contract:

```css
.account-card {
  background: var(--wire-color-surface);
  color: var(--wire-color-text);
  border: 1px solid var(--wire-color-border);
}

.account-card__action {
  background: var(--wire-color-primary);
  color: var(--wire-color-primary-contrast);
}
```

Stable no-spacing helper classes are also available: `wire-bg-page`,
`wire-bg-surface`, `wire-bg-surface-2`, `wire-bg-primary`, `wire-bg-secondary`,
`wire-text`, `wire-text-muted`, `wire-text-primary`, `wire-text-success`,
`wire-text-warning`, `wire-text-danger`, and `wire-border`.

Tailwind-authored custom markup can continue using the palette families already
used by packaged components. `indigo-*` and `violet-*` resolve to primary,
`blue-*` to info, `emerald-*`/`green-*` to success, `amber-*` to warning, and
`red-*`/`rose-*` to danger. These aliases live at `:root`, so they work outside
a `[data-component]` boundary too.

## Usage

### Auto-discovery

The router scans extra `componentDirs` (in addition to the app's own
`app/components`) and keys components by name. Library dirs are scanned **first**
and `app/components` **last**, so an app component of the same name shadows the
library's. The CLI build (`@wrnexus/cli`) and dev server (`@wrnexus/dev-server`)
both wire the UI directory in for you:

```ts
import { buildRouter } from "@wrnexus/router";
import { uiComponentsDir } from "@wrnexus/ui";

const router = buildRouter(appDir, { componentDirs: [uiComponentsDir()] });
```

### Mounting components in a page

Once discovered, mount any component by name via `data-component`. Quoted
attributes (other than `data-component`) become string props:

```html
<div data-component="card">
  <div data-component="badge" label="New"></div>
  <button data-component="button" label="Save" variant="primary" size="lg"></button>
  <div data-component="alert" variant="success" title="Done" message="Saved."></div>
</div>
```

## Overrides

Ways to customize the components, in increasing order of power:

1. **Theme tokens** — override CSS custom properties such as `--wire-color-primary`,
   `--wire-color-surface`, `--wire-radius-sm`, etc. Every component style resolves
   through `var(--wire-*)`, so changing a token restyles everything instantly
   (including across theme switches).
2. **App CSS** — redefine a `.wire-*` class in your own stylesheet, which is loaded
   after `ui.css` and therefore wins.
3. **`class` prop** — pass a `class` prop to a component; it is appended to the
   component's root element, letting you add per-instance classes without touching
   the base styles.
4. **`wrnexus eject <name>`** — copy the component's `.wrn` source into your
   `app/components`, where (because app components shadow library ones) you fully
   own and can edit it. Use `uiComponentNames()` for the list of ejectable names.

## Requirements / Notes

- **Bun-only** — the package uses standard fs/path/url APIs but is published and
  consumed within the Bun-native WrNexus toolchain (Node is not supported).
- Peer packages: components are discovered and rendered by
  [`@wrnexus/router`](../router) (via `componentDirs`) and served by
  [`@wrnexus/dev-server`](../dev-server) / built by [`@wrnexus/cli`](../cli).
- Depends on [`@wrnexus/core`](../core) (`dependencies`).
- `theme-toggle` relies on the framework's theme runtime, which binds the
  `data-wire-theme-toggle` attribute — no per-component JS is required.

### Exported TypeScript declarations

```ts
/**
 * @wrnexus/ui — the Wire UI component library.
 *
 * Components are `.wrn` files under `components/`, auto-discovered by the
 * framework (the router scans this directory in addition to the app's own
 * `app/components`). Mount them in any page with `data-component="<name>"`.
 * Their styles live in a single themeable stylesheet, `ui.css`, served once at
 * `/__wrnexus/ui.css` — every class uses `var(--wire-*)` theme tokens.
 *
 * Override, in increasing order of power:
 *   1. theme tokens (change `--wire-color-primary`, etc.)
 *   2. redefine a `.wire-*` class in your own CSS (loaded after ui.css)
 *   3. pass a `class` prop (appended to the component root)
 *   4. `wrnexus eject <name>` to copy the component into `app/components` and own it
 */
/** Absolute path to the directory of Wire UI component `.wrn` files. */
declare function uiComponentsDir(): string;
/** Absolute path to the Wire UI stylesheet. */
declare function uiCssPath(): string;
/** The Wire UI stylesheet contents (all `.wire-*` classes, themed via tokens). */
declare function uiCss(): string;
/** Names of the built-in components (e.g. for `wrnexus eject` listing). */
declare function uiComponentNames(): string[];

export { uiComponentNames, uiComponentsDir, uiCss, uiCssPath };
```

---

## @wrnexus/uploader

Documentation URL: https://wrnexusjs.dev/packages/uploader

# @wrnexus/uploader

Config-driven file uploads + serving for [WrNexus](https://www.npmjs.com/org/wrnexus). Declare
named **storage stores** (local disk or any S3-compatible backend) in `wrnexus.config.ts`, upload
with one function call, drop a drag-and-drop widget on a page, and serve files back — public or
private. Zero external dependencies (S3 is signed with a built-in AWS SigV4 implementation, like the
rest of the framework).

## Usage

### Configure local and S3 stores

```ts
// wrnexus.config.ts
import type { AppConfig } from "@wrnexus/styles";

const config: AppConfig = {
  storage: {
    default: "public",
    stores: {
      // Local disk, world-readable — served by the framework with a 1-year cache.
      public: {
        driver: "local",
        dir: "uploads/public", // relative to the app root (dev) / cwd (prod)
        access: "public",
        maxBytes: 10_000_000,
        accept: ["image/*", ".pdf"], // MIME, "type/*" wildcards, or ".ext"
      },
      // Private S3 (works with AWS, Cloudflare R2, Backblaze B2, MinIO, DO Spaces).
      docs: {
        driver: "s3",
        access: "private",
        bucket: "my-bucket",
        region: "auto",
        endpoint: "https://<acct>.r2.cloudflarestorage.com",
        accessKeyId: process.env.S3_KEY!,
        secretAccessKey: process.env.S3_SECRET!,
      },
    },
  },
};
export default config;
```

### Upload from an API route or server function

```ts
// app/api/upload.ts — one-liner
import { handleUpload } from "@wrnexus/uploader";
export const POST = handleUpload({ store: "public" });
// → { ok: true, files: [{ key, url, name, type, size }] }
```

```ts
// or drive it yourself, anywhere you have the request
import { upload, getStore } from "@wrnexus/uploader";
const { files } = await upload("docs", ctx.req, { prefix: "invoices" });
await getStore("docs").driver.delete(files[0].key);
```

Uploads are validated (size + type), stored under a random, collision-proof, path-safe key
(the client filename is never used as a path), and — for public stores — returned with a servable
`url`.

### Add a client upload widget

Drop the element anywhere; the runtime (drag-and-drop, per-file progress, success/failed states) is
auto-injected on pages that contain `data-uploader`:

```html
<div
  data-uploader="public"
  data-endpoint="/api/upload"
  data-accept="image/*"
  data-max="10000000"
  data-multiple
></div>
```

Or via the first-party UI component:

```html
<div
  data-component="file-upload"
  store="public"
  endpoint="/api/upload"
  accept="image/*"
  multiple="true"
></div>
```

It dispatches bubbling events you can listen for:

- `wrnexus:upload` — `detail: { file, result: { key, url, name, size, type } }`
- `wrnexus:upload-error` — `detail: { file, error }`

### Serve private files behind application authentication

- **Public + local** → served automatically at `/__wrnexus/uploads/<store>/<key>` (immutable cache).
- **Public + S3** → `url` is the bucket/CDN URL directly.
- **Private** (any driver) → mount a route and gate it with your auth middleware:

```ts
// app/api/files/[key].ts
import { serveFromStore } from "@wrnexus/uploader";
export const GET = serveFromStore("docs"); // your middleware decides who gets in
```

## API

| Export                                  | What                                                            |
| --------------------------------------- | --------------------------------------------------------------- |
| `handleUpload(opts)`                    | POST route handler → JSON `{ ok, files }`                       |
| `upload(store, req, opts)`              | Parse + validate + store; returns `{ files }`                   |
| `serveFromStore(store)`                 | Route handler that streams an object back (gate it for private) |
| `getStore(name?)` / `hasStorage(name?)` | Reach a store's `driver` (`put`/`get`/`delete`/`publicUrl`)     |
| `configureStorage(config, root)`        | Build the registry (the framework calls this at startup)        |
| `s3Driver` / `localDriver` / `signS3`   | Lower-level building blocks                                     |

## Notes

- Uploads count against the server's `maxBodyBytes`; per-file limits use each store's `maxBytes`.
- SigV4 signing is implemented from scratch (no `@aws-sdk`); tested against local S3 semantics.
  Live AWS/R2 connectivity depends on your credentials + bucket policy.
- v1 buffers each file in memory up to its size cap (fine for images/docs up to tens of MB).

### Exported TypeScript declarations

```ts
import { Context } from '@wrnexus/core';

/**
 * Storage driver contract + config types.
 *
 * A `StorageDriver` is the low-level object store (local disk, S3, …). It knows
 * how to put/get/delete raw bytes under a key — nothing about HTTP, multipart
 * parsing, validation, or URLs. The registry (`client.ts`) builds one driver per
 * configured store and the upload layer (`upload.ts`) drives them. This mirrors
 * `@wrnexus/db`'s driver/adapter split.
 */
/** Whether a store's objects are world-readable or served behind app auth. */
type StoreAccess = "public" | "private";
/** An object read back from a store. */
interface StoredObject {
    /** Object bytes as a web stream (preferred) or a buffer. */
    body: ReadableStream<Uint8Array> | Uint8Array;
    /** MIME type to serve with. */
    contentType: string;
    /** Size in bytes, when known. */
    size?: number;
}
/** Metadata passed alongside the bytes on `put`. */
interface PutMeta {
    contentType: string;
    /** Original client filename (informational only — NEVER used as a path). */
    filename?: string;
}
/** The low-level object store. Implementations: `adapters/local.ts`, `adapters/s3.ts`. */
interface StorageDriver {
    /** Persist `data` under `key` (overwrites). */
    put(key: string, data: Uint8Array, meta: PutMeta): Promise<void>;
    /** Fetch an object, or `null` if it doesn't exist. */
    get(key: string): Promise<StoredObject | null>;
    /** Remove an object. No error if it's already gone. */
    delete(key: string): Promise<void>;
    /**
     * A directly-servable absolute URL for a PUBLIC object (e.g. an S3/CDN URL), or
     * `null` when the framework should serve it (local public stores). Private
     * stores always return `null`.
     */
    publicUrl(key: string): string | null;
}
/** Local-disk store. `dir` is resolved against the app root when relative. */
interface LocalStoreConfig {
    driver: "local";
    access: StoreAccess;
    /** Directory the files live under (e.g. "uploads/public"). */
    dir: string;
    /** Reject files larger than this many bytes (per file). */
    maxBytes?: number;
    /** Allowed types: MIME (`"image/*"`, `"application/pdf"`) and/or extensions (`".pdf"`). */
    accept?: string[];
}
/** S3 / S3-compatible store (AWS, Cloudflare R2, Backblaze B2, MinIO, DO Spaces). */
interface S3StoreConfig {
    driver: "s3";
    access: StoreAccess;
    bucket: string;
    region: string;
    accessKeyId: string;
    secretAccessKey: string;
    /**
     * Custom endpoint for non-AWS services, e.g.
     * `https://<acct>.r2.cloudflarestorage.com`. Omit for AWS S3.
     */
    endpoint?: string;
    /** Force path-style URLs (`/bucket/key`). Defaults on for custom endpoints. */
    forcePathStyle?: boolean;
    /** Public base URL for `publicUrl()` (a CDN or public bucket domain). */
    publicBaseUrl?: string;
    maxBytes?: number;
    accept?: string[];
}
type StoreConfig = LocalStoreConfig | S3StoreConfig;
/** The `storage` block in `wrnexus.config.ts`. */
interface StorageConfig {
    /** Name of the store used when a call omits one. Defaults to the first store. */
    default?: string;
    /** Named stores, reached with `getStore("<name>")` / `upload("<name>", …)`. */
    stores: Record<string, StoreConfig>;
}

/**
 * Process-wide store registry, configured once at server startup from the
 * `storage` block in `wrnexus.config.ts` (mirrors `@wrnexus/db`'s registry).
 * Handlers then call `getStore("<name>")` — or omit the name for the default.
 */

interface Store {
    name: string;
    access: StoreAccess;
    driver: StorageDriver;
    config: StoreConfig;
}
/** Build a driver per configured store. Safe to call again (fully replaces). */
declare function configureStorage(config: StorageConfig | undefined, appRoot: string): void;
/** Whether the default (or a named) store is configured. */
declare function hasStorage(name?: string): boolean;
/** The default store, or a named one. Throws if it isn't configured. */
declare function getStore(name?: string): Store;
/** Names of all configured stores. */
declare function storeNames(): string[];

/**
 * The HTTP-facing upload + serve layer: parse multipart requests, validate,
 * store, and serve files back. Built on the store registry (`client.ts`).
 */

/** Reserved prefix the framework serves PUBLIC local objects from. */
declare const UPLOADS_PREFIX = "/__wrnexus/uploads/";
interface UploadedFile {
    /** Storage key — pass to `getStore().driver.get/delete` or a serve route. */
    key: string;
    /** A servable URL for public objects, or `null` for private stores. */
    url: string | null;
    /** Original (sanitized) client filename, for display. */
    name: string;
    type: string;
    size: number;
}
interface UploadOptions {
    /** Only read files from this form field (default: every file field). */
    field?: string;
    /** Override the store's `maxBytes`. */
    maxBytes?: number;
    /** Override the store's `accept` list. */
    accept?: string[];
    /** Key prefix, e.g. `"avatars"` → keys become `avatars/<yyyy>/<mm>/<rand>.<ext>`. */
    prefix?: string;
}
/** A 4xx-carrying error so `handleUpload` can map it to a status. */
declare class UploadError extends Error {
    readonly status: number;
    constructor(message: string, status?: number);
}
/** The servable URL for a stored object (public → URL, private → null). */
declare function storedUrl(store: Store, key: string): string | null;
/**
 * Read multipart file(s) from a request and store them. Throws `UploadError`
 * (4xx) on validation failures. Call it directly, or use `handleUpload`.
 */
declare function upload(storeName: string | undefined, req: Request, opts?: UploadOptions): Promise<{
    files: UploadedFile[];
}>;
/**
 * Ready-made POST handler:
 *
 *   // app/api/upload.ts
 *   export const POST = handleUpload({ store: "public" });
 *
 * Returns `{ ok:true, files:[…] }` on success, or `{ ok:false, error }` with a
 * 4xx/5xx status.
 */
declare function handleUpload(opts?: UploadOptions & {
    store?: string;
}): (ctx: Context) => Promise<Response>;
/**
 * Serve an object from a store as a route handler — mount it behind your auth
 * middleware to gate PRIVATE files:
 *
 *   // app/api/files/[key].ts
 *   export const GET = serveFromStore("docs");
 *
 * Reads the key from `ctx.params.key` (or `ctx.params.path`); it may contain `/`.
 */
declare function serveFromStore(storeName?: string, opts?: {
    param?: string;
}): (ctx: Context) => Promise<Response>;
/**
 * Framework asset hook: serve PUBLIC local objects at
 * `/__wrnexus/uploads/<store>/<key>`. Returns `null` for anything it doesn't
 * own (unknown/private/S3-backed store) so the caller falls through. Wired into
 * the dev + prod asset servers.
 */
declare function serveStoredFile(pathname: string): Promise<Response | null>;

/**
 * Client runtime for `<div data-uploader>` elements — drag-and-drop + file
 * input, per-file progress bars, and success/failed states. Injected by
 * `collectScripts` only on pages that contain `data-uploader` (same mechanism as
 * `validate.js`). Self-contained: it injects its own themed stylesheet (using
 * `--wire-*` tokens) and posts each file via XHR so upload progress is live.
 *
 * Markup it enhances (also a valid no-JS `<form>` fallback if you wrap it):
 *   <div data-uploader="public" data-endpoint="/api/upload"
 *        data-accept="image/*" data-max="10000000" data-multiple></div>
 *
 * Events dispatched on the element (bubble):
 *   wrnexus:upload        detail: { file, result: { key, url, name, size, type } }
 *   wrnexus:upload-error  detail: { file, error }
 *
 * NOTE: written with single/double quotes + string concatenation only — no
 * backticks and no ${...}, so it embeds safely in the exported template string.
 */
declare const UPLOAD_JS_HREF = "/__wrnexus/uploader.js";
declare const UPLOAD_RUNTIME = "\n(function () {\n  if (typeof document === \"undefined\") return;\n  var CSRF_COOKIE = \"wire-csrf\";\n\n  var CSS =\n    \".wire-uploader{display:block}\" +\n    \".wire-uploader-zone{display:flex;align-items:center;justify-content:center;text-align:center;\" +\n      \"min-height:8rem;padding:1.25rem;border:2px dashed var(--wire-border,#cbd5e1);border-radius:12px;\" +\n      \"background:var(--wire-surface,transparent);color:var(--wire-muted,#64748b);cursor:pointer;\" +\n      \"transition:border-color .15s ease,background-color .15s ease;position:relative}\" +\n    \".wire-uploader-zone:hover,.wire-uploader-zone:focus-visible{border-color:var(--wire-brand,#3f7dff);outline:none}\" +\n    \".wire-uploader-zone.is-drag{border-color:var(--wire-brand,#3f7dff);background:color-mix(in oklab,var(--wire-brand,#3f7dff) 8%,transparent)}\" +\n    \".wire-uploader-prompt{font-size:.9rem;pointer-events:none}\" +\n    \".wire-uploader-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}\" +\n    \".wire-uploader-list{list-style:none;margin:.75rem 0 0;padding:0;display:flex;flex-direction:column;gap:.5rem}\" +\n    \".wire-uploader-item{display:grid;grid-template-columns:1fr auto;gap:.15rem .75rem;align-items:center;\" +\n      \"font-size:.82rem;padding:.5rem .7rem;border:1px solid var(--wire-border,#e2e8f0);border-radius:8px}\" +\n    \".wire-uploader-name{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--wire-text,#0f172a)}\" +\n    \".wire-uploader-meta{color:var(--wire-muted,#94a3b8);font-variant-numeric:tabular-nums}\" +\n    \".wire-uploader-bar{grid-column:1/-1;height:5px;border-radius:999px;background:var(--wire-border,#e2e8f0);overflow:hidden}\" +\n    \".wire-uploader-fill{height:100%;width:0;border-radius:999px;background:var(--wire-brand,#3f7dff);transition:width .15s ease}\" +\n    \".wire-uploader-status{grid-column:1/-1;font-size:.75rem;color:var(--wire-muted,#94a3b8);font-variant-numeric:tabular-nums}\" +\n    \".wire-uploader-item.is-done .wire-uploader-fill{background:var(--wire-success,#16a34a)}\" +\n    \".wire-uploader-item.is-done .wire-uploader-status{color:var(--wire-success,#16a34a)}\" +\n    \".wire-uploader-item.is-error .wire-uploader-fill{background:var(--wire-danger,#dc2626)}\" +\n    \".wire-uploader-item.is-error .wire-uploader-status{color:var(--wire-danger,#dc2626)}\";\n\n  function injectCss() {\n    if (document.getElementById(\"wire-uploader-css\")) return;\n    var s = document.createElement(\"style\");\n    s.id = \"wire-uploader-css\";\n    s.textContent = CSS;\n    document.head.appendChild(s);\n  }\n\n  function cookie(name) {\n    var m = document.cookie.match(new RegExp(\"(?:^|; )\" + name + \"=([^;]*)\"));\n    return m ? decodeURIComponent(m[1]) : \"\";\n  }\n  function el(tag, cls, text) {\n    var e = document.createElement(tag);\n    if (cls) e.className = cls;\n    if (text != null) e.textContent = text;\n    return e;\n  }\n  function fmt(n) {\n    if (n < 1024) return n + \" B\";\n    if (n < 1048576) return (n / 1024).toFixed(1) + \" KB\";\n    return (n / 1048576).toFixed(1) + \" MB\";\n  }\n  function accepts(accept, file) {\n    var list = (accept || \"\").split(\",\").map(function (s) { return s.trim().toLowerCase(); }).filter(Boolean);\n    if (!list.length) return true;\n    var type = (file.type || \"\").toLowerCase();\n    var name = (file.name || \"\").toLowerCase();\n    var ext = name.indexOf(\".\") >= 0 ? name.slice(name.lastIndexOf(\".\")) : \"\";\n    return list.some(function (rule) {\n      if (rule.charAt(0) === \".\") return rule === ext;\n      if (rule.slice(-2) === \"/*\") return type.indexOf(rule.slice(0, -1)) === 0;\n      return rule === type;\n    });\n  }\n\n  function setup(root) {\n    if (root.__wrnexusUploader) return;\n    root.__wrnexusUploader = true;\n\n    var endpoint = root.getAttribute(\"data-endpoint\") || \"/api/upload\";\n    var multipleAttr = root.getAttribute(\"data-multiple\");\n    var multiple = root.hasAttribute(\"data-multiple\") && multipleAttr !== \"false\";\n    var accept = root.getAttribute(\"data-accept\") || \"\";\n    var maxBytes = parseInt(root.getAttribute(\"data-max\") || \"0\", 10) || 0;\n    var field = root.getAttribute(\"data-field\") || (multiple ? \"files\" : \"file\");\n    var promptText = root.getAttribute(\"data-label\") || \"Drag files here or click to browse\";\n\n    root.classList.add(\"wire-uploader\");\n    var zone = el(\"div\", \"wire-uploader-zone\");\n    zone.setAttribute(\"role\", \"button\");\n    zone.setAttribute(\"tabindex\", \"0\");\n    zone.appendChild(el(\"div\", \"wire-uploader-prompt\", promptText));\n    var input = document.createElement(\"input\");\n    input.type = \"file\";\n    input.className = \"wire-uploader-input\";\n    if (multiple) input.multiple = true;\n    if (accept) input.accept = accept;\n    zone.appendChild(input);\n    var listEl = el(\"ul\", \"wire-uploader-list\");\n    root.appendChild(zone);\n    root.appendChild(listEl);\n\n    zone.addEventListener(\"keydown\", function (e) {\n      if (e.key === \"Enter\" || e.key === \" \") { e.preventDefault(); input.click(); }\n    });\n    [\"dragenter\", \"dragover\"].forEach(function (ev) {\n      zone.addEventListener(ev, function (e) { e.preventDefault(); zone.classList.add(\"is-drag\"); });\n    });\n    [\"dragleave\", \"drop\"].forEach(function (ev) {\n      zone.addEventListener(ev, function (e) { e.preventDefault(); zone.classList.remove(\"is-drag\"); });\n    });\n    zone.addEventListener(\"drop\", function (e) {\n      if (e.dataTransfer && e.dataTransfer.files) handle(e.dataTransfer.files);\n    });\n    input.addEventListener(\"change\", function () {\n      if (input.files) handle(input.files);\n      input.value = \"\";\n    });\n\n    function handle(files) {\n      var arr = Array.prototype.slice.call(files);\n      if (!multiple) arr = arr.slice(0, 1);\n      arr.forEach(uploadOne);\n    }\n\n    function row(file) {\n      var li = el(\"li\", \"wire-uploader-item\");\n      li.appendChild(el(\"span\", \"wire-uploader-name\", file.name));\n      li.appendChild(el(\"span\", \"wire-uploader-meta\", fmt(file.size)));\n      var bar = el(\"div\", \"wire-uploader-bar\");\n      var fill = el(\"div\", \"wire-uploader-fill\");\n      bar.appendChild(fill);\n      li.appendChild(bar);\n      var status = el(\"span\", \"wire-uploader-status\", \"\");\n      li.appendChild(status);\n      listEl.appendChild(li);\n      return { li: li, fill: fill, status: status };\n    }\n\n    function uploadOne(file) {\n      var ui = row(file);\n      if (maxBytes && file.size > maxBytes) return fail(ui, \"Too large (max \" + fmt(maxBytes) + \")\", file);\n      if (!accepts(accept, file)) return fail(ui, \"Type not allowed\", file);\n\n      var fd = new FormData();\n      fd.append(field, file, file.name);\n      var xhr = new XMLHttpRequest();\n      xhr.open(\"POST\", endpoint, true);\n      var token = cookie(CSRF_COOKIE);\n      if (token) xhr.setRequestHeader(\"x-csrf-token\", token);\n      xhr.upload.addEventListener(\"progress\", function (e) {\n        if (e.lengthComputable) {\n          var pct = Math.round((e.loaded / e.total) * 100);\n          ui.fill.style.width = pct + \"%\";\n          ui.status.textContent = pct + \"%\";\n        }\n      });\n      xhr.addEventListener(\"load\", function () {\n        var data = null;\n        try { data = JSON.parse(xhr.responseText); } catch (e2) {}\n        if (xhr.status >= 200 && xhr.status < 300 && data && data.ok) {\n          done(ui, (data.files && data.files[0]) || null, file);\n        } else {\n          fail(ui, (data && data.error) || (\"Upload failed (\" + xhr.status + \")\"), file);\n        }\n      });\n      xhr.addEventListener(\"error\", function () { fail(ui, \"Network error\", file); });\n      xhr.send(fd);\n    }\n\n    function done(ui, info, file) {\n      ui.li.classList.remove(\"is-error\");\n      ui.li.classList.add(\"is-done\");\n      ui.fill.style.width = \"100%\";\n      ui.status.textContent = \"\\u2713 Uploaded\";\n      root.dispatchEvent(new CustomEvent(\"wrnexus:upload\", { bubbles: true, detail: { file: file, result: info } }));\n    }\n    function fail(ui, msg, file) {\n      ui.li.classList.add(\"is-error\");\n      ui.status.textContent = \"\\u2717 \" + msg;\n      root.dispatchEvent(new CustomEvent(\"wrnexus:upload-error\", { bubbles: true, detail: { file: file, error: msg } }));\n    }\n  }\n\n  function init() {\n    injectCss();\n    var nodes = document.querySelectorAll(\"[data-uploader]\");\n    for (var i = 0; i < nodes.length; i++) setup(nodes[i]);\n  }\n  if (document.readyState === \"loading\") document.addEventListener(\"DOMContentLoaded\", init);\n  else init();\n})();\n";

/**
 * Local-disk storage driver. Files live under a configured directory; keys map
 * to relative paths inside it. Path traversal is rejected — a key can never
 * escape the base dir.
 */

declare function localDriver(config: LocalStoreConfig, appRoot: string): StorageDriver;

/**
 * S3 (and S3-compatible) storage driver — zero deps, SigV4-signed `fetch`.
 * Works with AWS S3, Cloudflare R2, Backblaze B2, MinIO, DigitalOcean Spaces.
 *
 * Path-style vs virtual-hosted: AWS defaults to virtual-hosted
 * (`bucket.s3.region.amazonaws.com`); custom endpoints (R2/MinIO) default to
 * path-style (`endpoint/bucket/key`). Override with `forcePathStyle`.
 */

declare function s3Driver(config: S3StoreConfig): StorageDriver;

/**
 * AWS Signature Version 4 for S3 requests — zero external deps, built on
 * `node:crypto` + `fetch`. Matches the framework's zero-dep ethos (like
 * `@wrnexus/ai`) and works with any S3-compatible service (AWS, Cloudflare R2,
 * Backblaze B2, MinIO, DigitalOcean Spaces).
 *
 * Reference: docs.aws.amazon.com/general/latest/gr/sigv4_signing.html
 */
/** Hex-encoded SHA-256 of a payload. */
declare function sha256Hex(data: Uint8Array | string): string;
/**
 * Percent-encode an S3 object key for the request path. Every character except
 * the RFC 3986 unreserved set is encoded; `/` between segments is preserved.
 */
declare function encodeKey(key: string): string;
interface SignInput {
    method: string;
    host: string;
    /** Canonical URI — already `%`-encoded, begins with `/`. */
    path: string;
    region: string;
    accessKeyId: string;
    secretAccessKey: string;
    /** Hex SHA-256 of the body, or `"UNSIGNED-PAYLOAD"`. */
    payloadHash: string;
    /** Extra headers to sign (e.g. `content-type`). `host`/`x-amz-*` are added here. */
    headers?: Record<string, string>;
    date: Date;
    service?: string;
}
/**
 * Compute the signed header set for an S3 request. Returns the headers to send
 * (lowercased names, including `authorization`, `host`, `x-amz-date`,
 * `x-amz-content-sha256`).
 */
declare function signS3(input: SignInput): Record<string, string>;

/**
 * Minimal extension ↔ MIME mapping + `accept` matching. Zero-dep: just a table
 * big enough for the common upload types (images, docs, media, archives).
 */
/** Lowercased extension WITHOUT the dot (e.g. "png"), or "" if none. */
declare function extOf(name: string): string;
/** MIME type for a filename/key by its extension, or a safe default. */
declare function contentTypeOf(name: string, fallback?: string): string;
/** The conventional extension for a MIME type, or "" (used to name S3 keys). */
declare function extForType(type: string): string;
/**
 * Does `file` (its MIME `type` + `name`) satisfy an `accept` list? Each accept
 * entry is a MIME type (`"image/png"`), a wildcard MIME (`"image/*"`), or a
 * dotted extension (`".pdf"`). An empty/omitted list accepts everything.
 */
declare function accepts(accept: string[] | undefined, file: {
    type: string;
    name: string;
}): boolean;

export { type LocalStoreConfig, type PutMeta, type S3StoreConfig, type StorageConfig, type StorageDriver, type Store, type StoreAccess, type StoreConfig, type StoredObject, UPLOADS_PREFIX, UPLOAD_JS_HREF, UPLOAD_RUNTIME, UploadError, type UploadOptions, type UploadedFile, accepts, configureStorage, contentTypeOf, encodeKey, extForType, extOf, getStore, handleUpload, hasStorage, localDriver, s3Driver, serveFromStore, serveStoredFile, sha256Hex, signS3, storeNames, storedUrl, upload };
```

---

## @wrnexus/validation

Documentation URL: https://wrnexusjs.dev/packages/validation

# @wrnexus/validation

> One fluent schema, validated on the server (API bodies, env vars) and mirrored to an eval-free browser validator for forms.

Part of the **WrNexus** framework — an SSR-first, Bun-native full-stack web framework.

## Overview

Define a schema once with the fluent `v` builder, then reuse it in three places: `.parse()` runs server-side and returns coerced values plus per-field errors; `.describe()` emits a plain-JSON `SchemaDescriptor` that the browser runtime interprets (no `eval`, no bundled validator); and helpers like `parseBody` and `parseEnv` wire schemas straight into API routes and startup config. The server rule logic (`applyRule`/`checkField`) and the client runtime (`VALIDATE_RUNTIME`) mirror each other exactly, so a form validates identically in both places. Schemas are conventionally kept in `app/schemas/`.

## Installation

```bash
bun add @wrnexus/validation
```

> Private package — the machine must be authenticated to the `wrnexus` npm org
> (a read token in `~/.npmrc`). Requires **Bun** (Node is not supported).

## API

### The `v` builder

```ts
import { v } from "@wrnexus/validation";
```

| Factory            | Returns         | Field methods                                                                                                       |
| ------------------ | --------------- | ------------------------------------------------------------------------------------------------------------------- |
| `v.string()`       | `StringSchema`  | `email()`, `url()`, `uuid()`, `date()`, `length(n)`, `oneOf(string[])`, `pattern(re)`, `trim()`, `min(n)`, `max(n)` |
| `v.number()`       | `NumberSchema`  | `integer()`, `positive()`, `oneOf(number[])`, `min(n)`, `max(n)`                                                    |
| `v.boolean()`      | `BooleanSchema` | (base methods only)                                                                                                 |
| `v.object(fields)` | `ObjectSchema`  | `parse(input)`, `describe()`                                                                                        |

Every field schema is chainable and shares these base methods:

- `min(n, message?)` / `max(n, message?)` — for strings, bounds the length; for numbers, bounds the value.
- `required(message?)` — require a non-empty value and optionally replace the default `"Required"` message on both server and browser validation.
- `optional()` — an empty/missing value passes instead of erroring `"Required"`.
- `label(text)` — human label carried into the descriptor.
- `default(value)` — value substituted when the field is absent (implies `optional`).
- `refine(fn, message?)` — **server-only** predicate. `fn` returns `true` (ok), `false` (use `message`), or a `string` (that error). Not serialized to the client.

Each string rule accepts an optional trailing `message` to override the default error text.

### `ObjectSchema`

```ts
schema.parse(input: unknown): ParseResult
schema.describe(): SchemaDescriptor
```

`parse` coerces each field (strings stay strings, `v.number()` runs `Number()`, `v.boolean()` treats `true` / `"true"` / `"on"` as true), applies its rules and refinements, fills in `default()` values, and returns:

```ts
interface ParseResult<T = Record<string, unknown>> {
  ok: boolean; // true when errors is empty
  value: T; // coerced values (present pass or fail)
  errors: Record<string, string>; // field name → first failing message
}
```

`describe()` returns the JSON bridge for the client:

```ts
interface SchemaDescriptor {
  type: "object";
  fields: Record<string, FieldDescriptor>;
}
interface FieldDescriptor {
  type: "string" | "number" | "boolean";
  optional?: boolean;
  label?: string;
  trim?: boolean; // strings only
  rules: RuleDescriptor[];
}
```

### Rules and coercion

`RuleDescriptor` is a discriminated union of the serializable rules — `min`, `max`, `length`, `email`, `url`, `uuid`, `date`, `oneOf`, `pattern`, `integer`. Two exported functions apply them and are shared by the server (the client runtime reimplements the same logic):

- `applyRule(type, rule, value): string | null` — validate one already-coerced value against one rule.
- `checkField(desc, raw): { value, error }` — coerce and validate one field. Empty input (`undefined`/`null`/`""`) is `"Required"` unless `optional`. Strings with `trim` are trimmed first. Numbers that fail `Number()` yield `"Must be a number"`.

Notes on specific rules: `email`/`url`/`uuid` test built-in regexes; `date` uses `Date.parse`; `pattern` reconstructs a `RegExp` from its `source`/`flags` and passes silently if the pattern is invalid; `integer` requires `Number.isInteger`; `positive()` is implemented as `min(Number.MIN_VALUE)`.

### API helpers

```ts
invalid(errors: Record<string, string>): Response   // ready 400 { ok:false, errors }

parseBody<T>(schema, req):
  Promise<{ ok: true; value: T } | { ok: false; response: Response }>
```

`parseBody` reads the request body from JSON, `application/x-www-form-urlencoded`, or `multipart/form-data`, validates it, and on failure hands back a ready 400 `Response`.

### Environment config

```ts
parseEnv<T>(schema: ObjectSchema, source?): T
```

Validates env vars (from `Bun.env`, falling back to `process.env`) against a schema and coerces them (`PORT` → number, `DEBUG` → boolean). On any problem it throws **one** error listing every offending variable, so misconfiguration fails fast at startup.

### Client runtime (from `runtime.ts`)

```ts
renderSchemasScript(descriptors: Record<string, SchemaDescriptor>): string
VALIDATE_RUNTIME: string
```

- `renderSchemasScript` produces `window.__wireSchemas = { name: descriptor, … };` to inline in the page.
- `VALIDATE_RUNTIME` is a self-contained, eval-free IIFE string. Injected as a `<script>`, it binds every `form[data-schema]` and validates on submit and blur, writing messages into `[data-error="<field>"]` elements and toggling `aria-invalid` / `.wire-invalid`. On a valid submit it `fetch`es the form `action` as JSON (attaching the `wire-csrf` cookie as an `x-csrf-token` header), then follows `data-redirect` / a `redirect` in the response, surfaces server-side field errors, and fires `wire:success` / `wire:error` events. It exposes `window.__wireValidate.init(root)` and self-initializes on `DOMContentLoaded`.

## Usage

Define a schema and validate an API body:

```ts
import { v, parseBody } from "@wrnexus/validation";

export const signupSchema = v.object({
  email: v.string().required("Enter your email address").trim().email(),
  password: v.string().required("Enter your password").min(8).max(200),
  age: v.number().integer().min(13).max(120).optional(),
  role: v.string().oneOf(["user", "admin"]).default("user"),
  agree: v.boolean(),
});

// inside a route handler
const result = await parseBody(signupSchema, req);
if (!result.ok) return result.response; // ready 400 with field errors
const { email, password, role } = result.value;
```

Server-only refinement:

```ts
const schema = v.object({
  username: v
    .string()
    .min(3)
    .refine((name) => !RESERVED.has(String(name)), "That name is taken"),
});
```

Validate environment at startup:

```ts
import { v, parseEnv } from "@wrnexus/validation";

export const env = parseEnv(
  v.object({
    DATABASE_URL: v.string().min(1),
    PORT: v.number().integer().default(3000),
    DEBUG: v.boolean().optional(),
  }),
);
// throws one readable error listing every bad variable if misconfigured
```

Wire the same schema into the browser:

```ts
import { renderSchemasScript, VALIDATE_RUNTIME } from "@wrnexus/validation";
import { signupSchema } from "./app/schemas/signup.ts";

const head = `<script>${renderSchemasScript({ signup: signupSchema.describe() })}</script>
<script>${VALIDATE_RUNTIME}</script>`;
// render a <form data-schema="signup"> with [data-error="email"] etc.
```

## Requirements / Notes

- **Bun-only.** `parseEnv` reads `Bun.env` (falling back to `process.env`); `parseBody` and `invalid` use the Web `Request`/`Response` APIs that back `Bun.serve`.
- Refinements (`refine`) run only server-side and are never serialized — client and server agree on every other rule because both interpret the same `RuleDescriptor` list.
- No runtime dependencies. Ships as TypeScript source (`src/index.ts`) executed directly by Bun.
- Pairs with the WrNexus server (`@wrnexus/core`) for route handlers and the SSR layer that injects `renderSchemasScript` / `VALIDATE_RUNTIME`.

### Exported TypeScript declarations

```ts
/**
 * Client-side validation. `renderSchemasScript` bakes the discovered schema
 * descriptors into `window.__wireSchemas`; `VALIDATE_RUNTIME` is a generic,
 * eval-free validator that reads them and validates every `form[data-schema]`
 * on submit and blur, writing messages into `[data-error="<field>"]` elements.
 * The rule logic mirrors `checkField`/`applyRule` in index.ts.
 */

/** `window.__wireSchemas = { name: descriptor, ... }` for the client validator. */
declare function renderSchemasScript(descriptors: Record<string, SchemaDescriptor>): string;
declare const VALIDATE_RUNTIME: string;

/**
 * @wrnexus/validation — one schema, validated on the server (API) and the browser
 * (forms). A schema is a fluent builder; `.parse()` runs server-side and returns
 * coerced values + field errors, while `.describe()` emits a JSON descriptor the
 * eval-free client validator interprets. Define schemas once in `app/schemas/`.
 */
type RuleDescriptor = {
    kind: "min";
    n: number;
    message?: string;
} | {
    kind: "max";
    n: number;
    message?: string;
} | {
    kind: "length";
    n: number;
    message?: string;
} | {
    kind: "email";
    message?: string;
} | {
    kind: "url";
    message?: string;
} | {
    kind: "uuid";
    message?: string;
} | {
    kind: "date";
    message?: string;
} | {
    kind: "oneOf";
    values: (string | number)[];
    message?: string;
} | {
    kind: "pattern";
    source: string;
    flags?: string;
    message?: string;
} | {
    kind: "integer";
    message?: string;
};
interface FieldDescriptor {
    type: "string" | "number" | "boolean";
    optional?: boolean;
    /** Message used when a required field is empty. Defaults to "Required". */
    requiredMessage?: string;
    label?: string;
    /** Trim string input before validating. */
    trim?: boolean;
    rules: RuleDescriptor[];
}
interface SchemaDescriptor {
    type: "object";
    fields: Record<string, FieldDescriptor>;
}
interface ParseResult<T = Record<string, unknown>> {
    ok: boolean;
    /** Coerced values (present whether or not validation passed). */
    value: T;
    /** Field name → message, only for fields that failed. */
    errors: Record<string, string>;
}
/**
 * Apply one rule to an already-coerced value. Shared by the server; the client
 * runtime (runtime.ts) mirrors this exactly. Returns an error message or null.
 */
declare function applyRule(type: string, rule: RuleDescriptor, value: unknown): string | null;
/** Coerce + validate one field against its descriptor. */
declare function checkField(desc: FieldDescriptor, raw: unknown): {
    value: unknown;
    error: string | null;
};
/** A server-only refinement (a predicate that can't be serialized to the client). */
type Refinement = {
    fn: (value: unknown) => boolean | string;
    message?: string;
};
declare abstract class FieldSchema {
    abstract readonly type: "string" | "number" | "boolean";
    protected _optional: boolean;
    protected _requiredMessage?: string;
    protected _label?: string;
    protected _default?: unknown;
    protected rules: RuleDescriptor[];
    protected refinements: Refinement[];
    optional(): this;
    /** Require a non-empty value and optionally replace the default message. */
    required(message?: string): this;
    label(label: string): this;
    /** Value used when the field is absent (implies optional). */
    default(value: unknown): this;
    min(n: number, message?: string): this;
    max(n: number, message?: string): this;
    /**
     * Custom SERVER-side validation. `fn` returns true (ok), false (use `message`),
     * or a string (that error). Not mirrored to the client validator.
     */
    refine(fn: (value: unknown) => boolean | string, message?: string): this;
    getDefault(): unknown;
    runRefinements(value: unknown): string | null;
    describe(): FieldDescriptor;
}
declare class StringSchema extends FieldSchema {
    readonly type: "string";
    private _trim;
    email(message?: string): this;
    url(message?: string): this;
    uuid(message?: string): this;
    date(message?: string): this;
    length(n: number, message?: string): this;
    oneOf(values: string[], message?: string): this;
    trim(): this;
    pattern(re: RegExp, message?: string): this;
    describe(): FieldDescriptor;
}
declare class NumberSchema extends FieldSchema {
    readonly type: "number";
    integer(message?: string): this;
    positive(message?: string): this;
    oneOf(values: number[], message?: string): this;
}
declare class BooleanSchema extends FieldSchema {
    readonly type: "boolean";
}
declare class ObjectSchema {
    private readonly fields;
    constructor(fields: Record<string, FieldSchema>);
    /** Validate an input object; returns coerced values + per-field errors. */
    parse(input: unknown): ParseResult;
    describe(): SchemaDescriptor;
}
/** The fluent schema builder. */
declare const v: {
    string: () => StringSchema;
    number: () => NumberSchema;
    boolean: () => BooleanSchema;
    object: (fields: Record<string, FieldSchema>) => ObjectSchema;
};
/**
 * Validate environment variables against a schema at startup. Values are read
 * from `Bun.env` / `process.env` by default and coerced by the schema (so
 * `PORT` becomes a number, `DEBUG` a boolean). On any problem it throws ONE
 * readable error listing every offending variable, so misconfiguration fails
 * fast with an actionable message instead of surfacing deep inside the app.
 *
 *   export const env = parseEnv(v.object({
 *     DATABASE_URL: v.string().min(1),
 *     PORT: v.number(),
 *   }));
 */
declare function parseEnv<T = Record<string, unknown>>(schema: ObjectSchema, source?: Record<string, string | undefined>): T;
/** A 400 response carrying field errors, for API routes. */
declare function invalid(errors: Record<string, string>): Response;
/**
 * Parse a request's JSON body against a schema. On failure returns
 * `{ ok: false, response }` (a ready 400); on success `{ ok: true, value }`.
 */
declare function parseBody<T = Record<string, unknown>>(schema: ObjectSchema, req: Request): Promise<{
    ok: true;
    value: T;
} | {
    ok: false;
    response: Response;
}>;

export { type FieldDescriptor, ObjectSchema, type ParseResult, type RuleDescriptor, type SchemaDescriptor, VALIDATE_RUNTIME, applyRule, checkField, invalid, parseBody, parseEnv, renderSchemasScript, v };
```
