# DRYL — full component reference Version: 3.19.0. Index: https://components.dryl.dev/llms.txt Every component below is `Dryl`-prefixed, token-driven and animated by default. Parameters marked *(required)* use `[EditorRequired]`. AI-aware components accept `Ai` (AiState) and default it to `None`. ## CanvasNodeView *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | HasSiblings | `Boolean` | `false` | Set by the parent view: a node without siblings has nothing to reorder against, so it is offered no drag handle. | | IsRoot | `Boolean` | `false` | True for the one node `DrylCanvas` renders itself: the artifact's root is the artifact, not an element inside it, so it is never selectable. | | Node *(required)* | `CanvasNode` | `null` | The node to render. Its Type selects the mapped component. | ## ChartFrame *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | | | AriaLabel | `String` | `null` | | | Aura | `RenderFragment` | `—` | | | Layout *(required)* | `CartesianLayout` | `null` | | | Marks | `RenderFragment` | `—` | | | RootClass *(required)* | `String` | `"chart"` | | ## DrylAgentAttachments *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Class | `String` | `null` | Extra CSS class(es) merged onto the container's own classes. | | Run | `DrylRunBase` | `null` | The agent run whose display-tool calls to render. | ## DrylAgentError *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | OnRetry | `EventCallback` | `—` | Optional retry action; when set, a retry button is shown inside the alert. | | RetryLabel | `String` | `"Retry"` | Label of the retry button. | | Run | `DrylRunBase` | `null` | The agent run whose error to surface. Renders nothing while `Run.Error` is null. | | Title | `String` | `"Agent run failed"` | Title of the danger alert. | ## DrylAgentToolCalls *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ActiveOnly | `Boolean` | `false` | When true, render only the calls running or awaiting approval; otherwise the full trace (default). | | ApproveAllLabel | `String` | `"Approve all"` | Visible text of the group's Approve all button. Default "Approve all". | | ApproveLabel | `String` | `"Approve"` | Visible text of each card's Approve button. Default "Approve". | | DenyAllLabel | `String` | `"Deny all"` | Visible text of the group's Deny all button. Default "Deny all". | | DenyLabel | `String` | `"Deny"` | Visible text of each card's Deny button. Default "Deny". | | Run | `DrylRunBase` | `null` | The agent run whose tool calls to visualise. | ## DrylAgentUsage *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Run | `DrylRunBase` | `null` | The agent run whose token usage to display. Renders nothing while `Run.Usage` is null. | ## DrylAiBuild *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ChildContent | `RenderFragment>` | `—` | Child content receiving the live ArtifactSnapshot`1. | | Key | `String` | `—` | Optional activity key; when set, a surrounding `DrylAiScope Key="..."` settles with the build. This key should match the `aiKey` passed to `DrylAgentRunner.StartBuild` for the same run. The runner owns the activity service mid-run and drives the scope's live glow; `DrylAiBuild` only touches the service at settle. Without a matching key, the scope will not glow during the build — it will only transition once the run completes. | | Run | `DrylArtifactRun` | `—` | The artifact build to visualise. Replacing it resubscribes. | | SettleTo | `AiState` | `—` | State to settle to after the Generated reveal. Default None. | ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ## DrylAiCanvas *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | AllowExpand | `Boolean` | `true` | Whether the header offers an expand-to-fullscreen button. The expanded canvas is an overlay, not a modal — it neither traps focus nor blocks the page, and `Escape` collapses it. Set to `false` for canvases embedded in a surface that owns its own layering (a dialog, a fixed side panel). | | BuildingAnnouncement | `String` | `"Building artifact…"` | Screen-reader announcement when a generation starts streaming. | | BuildingText | `Func` | `null` | Status pill while the artifact streams, from its element count (0 before the first element). Leave `null` for `"Building"` / `"Building · n elements"`. | | Class | `String` | `null` | Extra CSS class(es) merged onto the canvas root. | | EmptyText | `String` | `"Ask the assistant to create one."` | Message of the empty state shown before the first artifact. | | EmptyTitle | `String` | `"No artifact yet"` | Headline of the empty state shown before the first artifact. | | ErrorTitle | `String` | `"Artifact failed"` | Title of the alert shown when the run failed. | | FailedAnnouncement | `String` | `"Artifact failed."` | Screen-reader announcement when the run fails. | | FallbackTitle | `String` | `"Artifact"` | Header title while the artifact has none of its own. | | IdleText | `String` | `"Idle"` | Status pill while nothing is running. | | OnAction | `EventCallback` | `—` | Raised after every completed action button in the artifact — successful or not. The canvas has already applied the result (patch, refresh, toast, inline error) by then. | | OnEdit | `EventCallback` | `—` | Raised after every completed direct manipulation — see `DrylCanvas.OnEdit`. | | OnInteraction | `EventCallback` | `—` | Raised when the user triggers a button intent inside the artifact. Send `interaction.ToPromptMessage()` as the next chat turn to route it to the AI. | | ReadyAnnouncement | `String` | `"Artifact ready."` | Screen-reader announcement when the first generation of an artifact completes. | | ReadyText | `Func` | `null` | Status pill once the artifact stands, from its element count. Leave `null` for `"Ready"`. | | Run | `DrylCanvasRun` | `null` | The canvas run to render. Rebinding to a different run resets the interactive form state. | | Selection | `CanvasSelection` | `null` | Opt-in for direct manipulation — see `DrylCanvas.Selection`. Share the same instance with `DrylCanvasDock` so the selected element travels into the next prompt. | | Texts | `CanvasTexts` | `CanvasTexts { Expand = Expand artifact, ExitFullscreen = Exit fullscreen, Refresh = Refresh data, Prompt = Prompt about this element, Pin = Pin element, Unpin = Unpin element, Duplicate = Duplicate element, Remove = Remove element, Reorder = Reorder element, TypeName = System.Func`2[System.String,System.String], PinnedState = pinned, WaitingFor = System.Func`2[System.String,System.String], Required = Required, NotUpToDate = Not up to date, Truncated = System.Func`2[System.Int32,System.String], DataGrid = Data grid, SourceUnavailable = System.Func`2[System.String,System.String], ActionFailed = System.Func`2[System.String,System.String], ConfirmUnavailable = Confirmation is unavailable — the action was not run., Confirm = Confirm, Cancel = Cancel, Selected = System.Func`3[System.String,System.String,System.String], SelectionCleared = Selection cleared., Pinned = System.Func`2[System.String,System.String], Unpinned = System.Func`2[System.String,System.String], Duplicated = System.Func`2[System.String,System.String], Removed = System.Func`2[System.String,System.String], MovedTo = System.Func`4[System.String,System.Int32,System.Int32,System.String], PinEdit = System.Func`2[System.String,System.String], DuplicateEdit = System.Func`2[System.String,System.String], RemoveEdit = System.Func`2[System.String,System.String], MoveEdit = System.Func`2[System.String,System.String], Undo = Undo, Redo = Redo, VersionHistory = Version history, Undone = System.Func`2[System.String,System.String], Redone = System.Func`2[System.String,System.String], Restored = System.Func`3[System.Int32,System.Int32,System.String], CloseView = System.Func`2[System.String,System.String], VersionLabel = System.Func`2[System.Int32,System.String] }` | The fixed words of the canvas's own chrome — header buttons, the node toolbar, node hints and the selection announcements; see `DrylCanvas.Texts`. Defaults to Default (English). | | UpdatedAnnouncement | `Func` | `null` | Screen-reader announcement when an update completes, from the number of changed elements. Leave `null` for `"Artifact updated, n changes."`. | | WorkingText | `String` | `"Working"` | Status pill while the run is thinking. | ## DrylAiCommandPalette *Agents · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Ai | `AiState` | `AiState.None` | AI result panel state of the palette shell. Defaults to None — the resolver's own thinking state needs no opt-in. | | AiContent | `RenderFragment` | `—` | Content rendered inside the AI result panel when Ai is non-None. | | AriaLabel | `String` | `null` | ARIA label for the palette dialog. When set, wins over AriaLabel. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope`. | | ChildContent | `RenderFragment` | `—` | Hosts declarative `DrylCommand` children. | | Class | `String` | `null` | Additional CSS classes applied to the palette panel. | | Debounce | `TimeSpan` | `00:00:00.2500000` | How long a non-empty query rests before SearchProvider is asked. Defaults to 250 ms. | | EmptyText | `String` | `null` | Empty-state text. When null, the palette's own default applies (EmptyText). | | Fallback | `Func` | `null` | One entry kept present for every non-blank query; return `null` to show none for that query. | | GroupOrder | `CommandGroupOrder` | `CommandGroupOrder.Alphabetical` | How the groups of the result rows are ordered. Defaults to Alphabetical. | | HotKey | `Boolean` | `true` | Enables the global ⌘K / Ctrl+K toggle. | | Items | `CommandItem[]` | `null` | Static item list used when SearchProvider is not set. | | MaxResults | `Int32` | `8` | Maximum number of registry commands shown for a query. | | OnItemRun | `EventCallback` | `—` | Fires whenever an item runs, before its navigation or action. | | Open | `Boolean` | `false` | Two-way visibility. Supports @bind-Open. | | OpenChanged | `EventCallback` | `—` | Fires when Open changes — enables two-way @bind-Open binding. | | Placeholder | `String` | `null` | Search input placeholder. When null, the palette's own default applies (Placeholder). | | SearchProvider | `Func>` | `null` | Async search provider invoked with the current query; takes precedence over Items. | | Texts | `CommandPaletteTexts` | `null` | Every human word of the palette's own chrome — the place to translate it. Defaults to Default. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum CommandGroupOrder - `Alphabetical` — Groups sorted by name, case-insensitively; rows without a group come last. The default. - `AsProvided` — Groups in the order their first row arrives — provider items first, then registry commands. Rows without a group form a group of their own at that place. ## DrylAiField *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AcceptLabel | `String` | `null` | Label of the accept chip. When set, wins over Accept. | | Agent *(required)* | `AIAgent` | `null` | The agent that generates or transforms the field value. | | CancelLabel | `String` | `null` | Tooltip and aria-label of the trigger while a run can be cancelled. When set, wins over Cancel. | | ChildContent | `RenderFragment` | `—` | The wrapped input (any markup containing one text-like input or textarea). | | Class | `String` | `null` | Extra CSS class(es) merged onto the wrapper's own classes. | | Context | `String` | `null` | Extra context sent with the prompt (e.g. the mail body when generating a subject). | | Disabled | `Boolean` | `false` | Hides the affordance entirely; the wrapped input renders unchanged. | | Instruction | `String` | `null` | Fixed instruction (e.g. "Make it more professional"). Null opens the mini-prompt instead. | | OnAccepted | `EventCallback` | `—` | Fires when the user accepts a suggestion — receives the final field value. | | OnError | `EventCallback` | `—` | Fires when the run fails; the field is restored automatically. | | OnRejected | `EventCallback` | `—` | Fires when the user rejects a suggestion (chip, Esc, or cancel mid-stream). | | PromptPlaceholder | `String` | `null` | Placeholder of the mini-prompt input. When set, wins over PromptPlaceholder. | | RejectLabel | `String` | `null` | Label of the reject chip. When set, wins over Reject. | | SendLabel | `String` | `null` | Tooltip and aria-label of the mini-prompt send button. When set, wins over Send. | | SessionFactory | `Func>` | `null` | Optional session factory for session reuse. Default: a fresh session per invocation. | | ShowPrompt | `Boolean` | `false` | Always opens the mini-prompt; Instruction becomes the prefill. | | Texts | `AiFieldTexts` | `null` | Every human word the field renders or announces of its own. Defaults to Default. | | TriggerLabel | `String` | `null` | Tooltip and aria-label of the ✨ trigger. When set, wins over Trigger. | ## DrylAiGenerate *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ChildContent | `RenderFragment>` | `—` | Child content receiving the live GenerationSnapshot`1. | | Key | `String` | `—` | Optional activity key; when set, a surrounding `DrylAiScope Key="..."` reacts. | | SettleTo | `AiState` | `—` | State to settle to after the Generated reveal. Default None. | | Source | `IAsyncEnumerable` | `—` | Raw JSON token stream (e.g. from `DrylAgentRunner.GenerateStreamingAsync<T>`). Replacing it restarts. | | ThrottleMs | `Int32` | `—` | Minimum milliseconds between streaming re-renders. Fast token bursts are coalesced to this budget (a slow stream still renders every token, and the final snapshot always renders), which keeps the Blazor Server render/SignalR load bounded. `0` renders on every token. Default 66 (~15fps). | ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ## DrylAiIndicator *Intelligence* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes. | | ChildContent | `RenderFragment` | `—` | Override the default state-derived label. | | Class | `String` | `null` | Extra CSS class(es) merged onto the indicator's own classes. | | State | `AiState` | `AiState.Active` | Drives label and animation speed. | ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
Primary + Active Secondary + Active Secondary + Thinking Ghost + Active
``` ## DrylAiScope *Intelligence* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Aura | `AiAura?` | `null` | Aura variant broadcast to every AI-aware descendant that does not pin its own `Aura`. Leave `null` to let descendants fall back to Comet; set Aurora once here to calm a whole dense subtree. | | ChildContent | `RenderFragment` | `—` | Content whose AI-aware descendants inherit the scope state. | | Key | `String` | `null` | Operation key. When set and `AddDrylComponents()` registered the service, the scope mirrors IDrylAiActivityService state for this key. | | State | `AiState?` | `null` | Explicit state override. When set, the scope broadcasts this value and ignores the service entirely — useful for demos or fully manual control. Leave `null` to track the service by Key. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor @implements IDisposable @inject IDrylAiActivityService AiActivity
Generate across the scope Clear
@* Nothing inside sets an Ai parameter — they all inherit the scope's state. *@
Card · inherits the scope

No Ai here — it lights up because it sits inside the scope.

Scoped button
@code { private bool _running; private string _prompt = string.Empty; private AiState _state = AiState.None; private CancellationTokenSource? _cts; protected override void OnInitialized() => AiActivity.OnChanged += OnChanged; private void OnChanged(string key) { if (key != "demo-scope") return; _state = AiActivity.GetState("demo-scope"); InvokeAsync(StateHasChanged); } private async Task Run() { _cts?.Cancel(); _cts = new CancellationTokenSource(); var ct = _cts.Token; try { _running = true; using var op = AiActivity.Begin("demo-scope", AiState.Thinking); await Task.Delay(1400, ct); op.Streaming(); await Task.Delay(1600, ct); op.Generated(); await Task.Delay(1200, ct); // op disposed here → scope settles back to None } catch (OperationCanceledException) { } finally { _running = false; StateHasChanged(); } } private void Clear() { _cts?.Cancel(); AiActivity.Clear("demo-scope"); } public void Dispose() { AiActivity.OnChanged -= OnChanged; _cts?.Cancel(); _cts?.Dispose(); AiActivity.Clear("demo-scope"); } } ``` ## DrylAiStream *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ChildContent | `RenderFragment` | `—` | Renders the streamed text + state. Receives an AiStreamContext. | | Key | `String` | `null` | Optional operation key. When set and the service is registered, the stream pushes its state to IDrylAiActivityService so a surrounding `DrylAiScope` reacts. | | OnCompleted | `EventCallback` | `—` | Raised once the stream completes successfully, with the full text. | | Paused | `Boolean` | `false` | Set while the stream is open but nobody is writing into it — e.g. a run resting at Proposed while a tool call awaits approval. The live states (Thinking, Streaming) then read as None, for the context and the Key alike; the text stays and keeps accumulating. Completion is unaffected: a stream that ends while paused still reaches Generated and SettleTo. | | SettleTo | `AiState` | `AiState.None` | State to settle to after the Generated reveal. Default None. | | Smooth | `Boolean` | `false` | Reveal incoming text at a steady pace instead of rendering each chunk as it arrives. Providers that buffer parts of a response (e.g. Ollama while it parses tool-call syntax) deliver large bursts at once; Smooth spreads them into a type-out so the answer still reads as streaming. The pace adapts to the backlog, so live token streams are not slowed. | | Source | `IAsyncEnumerable` | `null` | The token stream to consume. Replacing it cancels the previous run and starts over. | ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ## DrylAlert *Feedback · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes (e.g. data-*, style for layout overrides). | | Ai | `AiState` | `AiState.None` | Ambient AI state — drives the gradient border, the glow and the reveal animation. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | ChildContent | `RenderFragment` | `—` | Body content of the alert. | | Class | `String` | `null` | Extra CSS class(es) merged onto the alert's own classes. | | Dismissible | `Boolean` | `false` | When true, a dismiss button is shown. | | Icon | `String` | `null` | Icon override. An empty string `""` suppresses the icon entirely. | | Kind | `AlertKind` | `AlertKind.Info` | Semantic variant — drives the icon and the accent colour. | | OnDismiss | `EventCallback` | `—` | Raised when the user dismisses the alert. | | Title | `String` | `null` | Optional title, shown in bold above the body text. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum DrylAlert.AlertKind - `Info` - `Success` - `Warning` - `Danger` - `Ai` ### Example ```razor
This alert is permanently marked as an AI-driven surface. The model is working on a request right now. Content is being generated piece by piece… The analysis has finished. Please review the result before you rely on it. The AI suggests closing three duplicate tickets. Nothing changes until you accept. The AI variant is not required — any variant can turn on AI mode.
``` ## DrylAlertDialog *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Instance | `IDrylDialogInstance` | `null` | | | Message | `String` | `""` | | | OkLabel | `String` | `"OK"` | | ## DrylAppBar *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Center | `RenderFragment` | `—` | Optically centred region (title, breadcrumbs). Setting it switches the bar to slotted layout. | | ChildContent | `RenderFragment` | `—` | Bar contents in legacy single-row mode. Ignored when any of Start / Center / End is set. | | Class | `String` | `null` | Extra CSS class(es) applied to the .topbar root. | | Context | `DrylLayoutContext` | `null` | Cascaded from DrylLayout. Null if the app bar is used outside a layout. | | Elevation | `AppBarElevation` | `AppBarElevation.Flat` | Resting elevation of the bar. Default Flat. | | End | `RenderFragment` | `—` | Trailing region (actions, avatar, badges). Setting it switches the bar to slotted layout. | | ShowDrawerToggle | `Boolean` | `true` | When true (default), renders a hamburger on mobile that toggles the sibling drawer overlay. | | ShowSidebarToggle | `Boolean` | `false` | When true, renders a desktop-visible button that collapses / expands the sibling sidebar (via ToggleSidebarAsync). Default `false`. | | Start | `RenderFragment` | `—` | Leading region (brand, nav). Setting it switches the bar to slotted layout. | ### enum AppBarElevation - `Flat` — Flush with the content — a 1px bottom border only (default). - `Raised` — Lifted off the content with `var(--shadow-md)` and a denser glass tint. ## DrylAreaChart *Data · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the chart root. | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | AriaLabel | `String` | `null` | Accessible summary label. Defaults to an auto-generated description. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | Class | `String` | `null` | Extra CSS class(es) merged onto the chart's own classes. | | Height | `Int32` | `260` | Chart height in pixels. Width always fills the container. | | Labels | `IReadOnlyList` | `null` | Category labels for the x-axis (and tooltip titles). | | Series | `IReadOnlyList` | `null` | The data series to plot. | | ShowGridLines | `Boolean` | `true` | Show horizontal gridlines at the y-ticks. | | ShowLegend | `Boolean?` | `null` | Legend visibility. Default (null) is automatic: shown for two or more series, hidden for one (the title/context already names a single series). | | ShowXAxis | `Boolean` | `true` | Show the x-axis label row. | | ShowYAxis | `Boolean` | `true` | Show the y-axis tick column. | | Smooth | `Boolean` | `false` | Smooth the line with a Catmull-Rom spline instead of straight segments. | | ValueFormat | `String` | `null` | Display format for axis ticks and tooltip values: either a .NET format string (e.g. "N0", "C0") or a template with a `{value}` placeholder where the number goes (e.g. "€{value} Tsd", "{value}%"), optionally with an inner .NET format ("{value:0.0}"). Display values are intentionally culture-aware. | | YMax | `Double?` | `null` | Fixed upper bound of the y-range. Default: automatic. | | YMin | `Double?` | `null` | Fixed lower bound of the y-range. Default: automatic. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
@code { private readonly string[] _months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug"]; private readonly ChartSeries[] _series = [ new("Requests", new double[] { 1200, 1900, 1700, 2400, 2200, 3100, 2800, 3600 }), new("Errors", new double[] { 40, 65, 52, 90, 71, 110, 84, 95 }) { ColorSlot = 5 }, ]; private readonly ChartSeries[] _single = [ new("Speicher (GB)", new double[] { 210, 230, 245, 262, 291, 305, 322, 340 }), ]; } ``` ## DrylAskChoiceDialog *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Instance | `IDrylDialogInstance` | `null` | | | Options | `IReadOnlyList` | `System.String[]` | The selectable options. | | Question | `String` | `""` | The question shown above the options. | | Recommended | `String` | `null` | The recommended option, marked with a badge and selected by default. | ## DrylAskMultiChoiceDialog *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Instance | `IDrylDialogInstance` | `null` | | | Options | `IReadOnlyList` | `System.String[]` | The selectable options. | | Question | `String` | `""` | The question shown above the options. | | Recommended | `IReadOnlyList` | `null` | Options recommended by the model — pre-checked and badged. | ## DrylAskTextDialog *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Instance | `IDrylDialogInstance` | `null` | | | Placeholder | `String` | `null` | Optional placeholder for the text field. | | Question | `String` | `""` | The question shown above the text field. | ## DrylAspectRatio *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes. | | ChildContent | `RenderFragment` | `—` | Boxed content (image, iframe, video …). | | Class | `String` | `null` | Extra CSS class(es) merged onto the box's own classes. | | Ratio | `AspectRatio` | `AspectRatio.Video` | Aspect ratio preset. Defaults to Video (16/9). | | RatioValue | `String` | `null` | Custom `aspect-ratio` value (e.g. "3 / 2"); used only when Ratio is Custom. | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | ### enum DrylAspectRatio.AspectRatio - `Square` - `Video` - `Photo` - `Wide` - `Custom` ### Example ```razor 16 / 9 1 / 1 4 / 3 ``` ## DrylAuraElements *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Aura *(required)* | `AuraLifecycle` | `null` | The host's aura lifecycle (mount state + fade-out coordination). | | Frameless | `Boolean` | `false` | When true, no ring, comet, glow, wash or wave is rendered — only the screen-reader text of Proposed. For a host without a surface of its own, whose marks carry the AI state instead of a frame. | | GenTick | `Int32` | `0` | A counter the host bumps each time it (re-)enters Generated, so the one-shot wash re-keys and its bloom animation replays. | ## DrylAutocomplete *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `—` | | | Ai | `AiState` | `—` | AI ambient state — controls the gradient border, glow, and reveal animation. | | AriaLabel | `String` | `—` | Accessible label — required when `Label` is not set. | | Aura | `AiAura?` | `—` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | CreateLabel | `Func` | `—` | Text of the create option, built from the trimmed query. `null` (default) renders `Create "{query}"`. Only used when OnCreate is set. | | Disabled | `Boolean` | `—` | If true, the input is greyed out and non-interactive. | | DisplayName | `String` | `—` | | | DisplayText | `Func` | `—` | Converts an item to its display string. Defaults to `item.ToString()`. | | EmptyText | `String` | `—` | Text shown in an open list without options. Default `"No results"`. | | HelperText | `String` | `—` | Helper text shown below the input. Replaced by validation errors when present. | | ItemTemplate | `RenderFragment` | `—` | Custom template for each option in the dropdown. | | Items | `IEnumerable` | `—` | Static item list used with client-side filtering. | | ItemsProvider | `Func>>` | `—` | Server-side search callback. Receives the current query and a CancellationToken. Takes precedence over `Items` / `SearchFunc`. | | Label | `String` | `—` | Optional label shown above the input. | | LoadingText | `String` | `—` | Text shown while a provider search runs and nothing is listed yet. Default `"Searching…"`. | | OnCreate | `Func>` | `—` | Enables creating an entry that does not exist yet. Receives the trimmed query and returns the new item, or `null` to abort. The returned item becomes the bound value exactly like a picked one; adding it to Items or the provider's source is the host's concern. Leave `null` (default) for a pick-only field. | | Placeholder | `String` | `—` | Placeholder text shown when the input is empty. | | SearchFunc | `Func, IEnumerable>` | `—` | Client-side filter function. Receives the query and the full `Items` list. | | State | `InputState` | `—` | Visual state override. An active validation error overrides this. | | Value | `TItem` | `—` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `—` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### Example ```razor
@foreach (var s in Enum.GetValues()) { @s.ToString() }
@code { private string? _aiCountry; private AiState _aiState = AiState.Active; private static readonly string[] _countries = [ "Austria", "Belgium", "Bulgaria", "Croatia", "Cyprus", "Czechia", "Denmark", "Estonia", "Finland", "France", "Germany", "Greece", "Hungary", "Ireland", "Italy", "Latvia", "Lithuania", "Luxembourg", "Malta", "Netherlands", "Poland", "Portugal", "Romania", "Slovakia", "Slovenia", "Spain", "Sweden", "Switzerland", "United Kingdom", "United States", "Canada", "Australia", "Japan", "South Korea", "Brazil", "Mexico", "Argentina", "India", "China", "Singapore" ]; } ``` ## DrylAvatar *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes applied to the avatar element. | | Alt | `String` | `null` | Alternative text for the image — also used as the accessible label. | | Class | `String` | `null` | Extra CSS class(es) merged onto the avatar's own classes. | | Icon | `String` | `null` | Fallback icon name shown when there is no image and no initials. | | Initials | `String` | `null` | Explicit initials. Overrides the value derived from Name. | | Name | `String` | `null` | Full name. Used to derive initials when Initials is not set. | | Shape | `AvatarShape` | `AvatarShape.Circle` | Outline shape. | | Size | `AvatarSize` | `AvatarSize.Medium` | Rendered diameter. | | Src | `String` | `null` | Image URL. When it fails to load, the avatar falls back to initials / icon. | | Status | `AvatarStatus` | `AvatarStatus.None` | Presence indicator dot. | ### enum AvatarShape - `Circle` — Fully round avatar. - `Square` — Rounded square avatar. ### enum AvatarSize - `Small` — Compact 24px avatar — dense lists, inline mentions. - `Medium` — Default 28px avatar — table rows, menus. - `Large` — Prominent 40px avatar — headers, profile cards, chat messages. ### enum AvatarStatus - `None` — No status dot. - `Online` — Online / available — green dot. - `Busy` — Busy / do-not-disturb — red dot. - `Away` — Away / idle — amber dot. - `Offline` — Offline — muted grey dot. ### Example ```razor
``` ## DrylAvatarGroup *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the group container. | | ChildContent | `RenderFragment` | `—` | The avatars in the group. | | Class | `String` | `null` | Extra CSS class(es) merged onto the group's own classes. | | Max | `Int32?` | `null` | Maximum number of avatars to show before collapsing the rest into a "+N" tile. | | Size | `AvatarSize` | `AvatarSize.Medium` | Uniform size applied to every avatar in the group. | ### enum AvatarSize - `Small` — Compact 24px avatar — dense lists, inline mentions. - `Medium` — Default 28px avatar — table rows, menus. - `Large` — Prominent 40px avatar — headers, profile cards, chat messages. ## DrylBadge *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes. | | ChildContent | `RenderFragment` | `—` | Badge content. Ignored when Value is set. | | Class | `String` | `null` | Extra CSS class(es) merged onto the badge's own classes. | | Dot | `Boolean` | `false` | If true, prefixes the label with a glowing dot. On Success, Warning and Danger the dot beats in a tempo that matches the kind. | | Icon | `String` | `null` | Optional icon name shown before the label. | | Kind | `BadgeKind` | `BadgeKind.Neutral` | Color treatment of the badge. A change after the first render squishes the pill once and flashes a ring in the new color. | | Value | `String` | `null` | The label as text. When set it takes precedence over ChildContent, and a change animates: if the old and the new value are both numbers, only the digits that changed roll (up when the number grows, down when it shrinks); otherwise the old label leaves upward while the new one rises in. The pill's width follows the label's length. | ### enum DrylBadge.BadgeKind - `Neutral` - `Accent` - `Success` - `Warning` - `Danger` ### Example ```razor
Idle Live Healthy Throttled Failing
``` ## DrylBarChart *Data · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the chart root. | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | AriaLabel | `String` | `null` | Accessible summary label. Defaults to an auto-generated description. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | Class | `String` | `null` | Extra CSS class(es) merged onto the chart's own classes. | | Height | `Int32` | `260` | Chart height in pixels. Width always fills the container. | | Labels | `IReadOnlyList` | `null` | Category labels for the x-axis (and tooltip titles). | | Series | `IReadOnlyList` | `null` | The data series to plot. | | ShowGridLines | `Boolean` | `true` | Show horizontal gridlines at the y-ticks. | | ShowLegend | `Boolean?` | `null` | Legend visibility. Default (null) is automatic: shown for two or more series, hidden for one (the title/context already names a single series). | | ShowXAxis | `Boolean` | `true` | Show the x-axis label row. | | ShowYAxis | `Boolean` | `true` | Show the y-axis tick column. | | Stacked | `Boolean` | `false` | Stack the series on top of each other instead of grouping side by side. | | ValueFormat | `String` | `null` | Display format for axis ticks and tooltip values: either a .NET format string (e.g. "N0", "C0") or a template with a `{value}` placeholder where the number goes (e.g. "€{value} Tsd", "{value}%"), optionally with an inner .NET format ("{value:0.0}"). Display values are intentionally culture-aware. | | YMax | `Double?` | `null` | Fixed upper bound of the y-range. Default: automatic. | | YMin | `Double?` | `null` | Fixed lower bound of the y-range. Default: automatic. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
@* Negative Werte wachsen von der Nulllinie nach unten (nur gruppiert). *@
@code { private readonly string[] _months = ["Jan", "Feb", "Mar", "Apr", "May"]; private readonly ChartSeries[] _series = [ new("Neu", new double[] { 34, 41, 38, 52, 47 }), new("Bestand", new double[] { 21, 24, 27, 25, 31 }), ]; private readonly ChartSeries[] _cashflow = [ new("Cashflow", new double[] { 12, -8, 15, -4, 22 }), ]; } ``` ## DrylBreadcrumbItem *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ChildContent | `RenderFragment` | `—` | Crumb label. | | Href | `String` | `null` | Navigation target. When omitted, the crumb is plain text. | | Icon | `String` | `null` | Optional icon name shown before the label. | ## DrylBreadcrumbs *Navigation* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the nav element. | | AriaLabel | `String` | `"Breadcrumb"` | Accessible label for the navigation landmark. | | ChildContent | `RenderFragment` | `—` | The crumbs. | | Class | `String` | `null` | Extra CSS class(es) merged onto the breadcrumbs nav's own classes. | | MaxItems | `Int32?` | `null` | Maximum crumbs to show before collapsing the middle into an ellipsis. Null = show all. | | Separator | `RenderFragment` | `—` | Custom separator rendered between crumbs. Defaults to a chevron. | ### Example ```razor Home Components Breadcrumbs ``` ## DrylButton *Actions · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes (e.g. data-*). | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | AriaLabel | `String` | `null` | Accessible label — required for icon-only buttons. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | ChildContent | `RenderFragment` | `—` | Button label content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the button's own classes. Because Blazor matches attribute names case-insensitively, a consumer-supplied `class="..."` also binds here and is merged in — it does not clobber the component's identity classes (which a bare `@attributes` splat would). | | Disabled | `Boolean` | `false` | If true, button is greyed out and non-clickable. | | IsSubmit | `Boolean` | `false` | If true, button submits the enclosing form. | | LeadingIcon | `String` | `null` | Icon name shown before the label. | | Loading | `Boolean` | `false` | If true, button shows a spinner and is non-clickable. | | OnClick | `EventCallback` | `—` | Click event handler. | | Pressed | `Boolean?` | `null` | Toggle state for a toggle button (mute, bold, filter on/off, …). When set, emits `aria-pressed` and highlights the button while pressed. Leave `null` (default) for a regular, non-toggle button. | | Size | `ButtonSize` | `ButtonSize.Medium` | Size of the button. | | TrailingIcon | `String` | `null` | Icon name shown after the label. | | Variant | `ButtonVariant` | `ButtonVariant.Primary` | Visual style of the button. Primary is quiet at rest and expressive on hover; Bold is the filled accent treatment, for the rare hero call to action. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum DrylButton.ButtonSize - `Small` - `Medium` - `Large` ### enum DrylButton.ButtonVariant - `Primary` - `Secondary` - `Ghost` - `Danger` - `Bold` ### Example ```razor
Primary Secondary Ghost Danger Bold
``` ## DrylButtonGroup *Actions* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes applied to the group element. | | AriaLabel | `String` | `null` | Accessible label describing the group's purpose (e.g. "Text format", "View"). | | Block | `Boolean` | `false` | If true, the group stretches to its container's full width and segments share the space equally. | | ChildContent | `RenderFragment` | `—` | The grouped buttons — place DrylButton components here. | | Class | `String` | `null` | Extra CSS class(es) merged onto the group's own classes. | ### Example ```razor
Save Duplicate Export
``` ## DrylCalendar *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | AriaLabel | `String` | `null` | Accessible label of the calendar. | | Availability | `IEnumerable` | `DRYL.Components.CalendarAvailability[]` | Working hours and absences per person. Drawn as muted areas behind the events — information only; the calendar repeats no span on other days. | | Class | `String` | `null` | Extra CSS class(es) merged onto the calendar's own classes. | | CollapseBelow | `Breakpoint?` | `Breakpoint.Md` | The calendar's own width below which the narrow layouts apply — whatever the width of the viewport. `null` never collapses. | | Culture | `CultureInfo` | `null` | Formats dates, day names and times. `null` uses the current culture. | | Date | `DateOnly` | `01/01/0001` | The date the visible range is built around. Supports two-way binding via `@bind-Date`. Left unset, the calendar starts on the date of Now, or of the server's clock. | | DateChanged | `EventCallback` | `—` | Raised when the user navigates. | | DayEnd | `TimeSpan` | `1.00:00:00` | Time of day the grid ends at. Defaults to the following midnight; a value that is not later than DayStart is replaced by it. | | DayStart | `TimeSpan` | `00:00:00` | First time of day the grid shows. Defaults to midnight. | | Editable | `Boolean` | `false` | Lets the user create, move and resize events on the grid, by pointer, touch or keyboard, and shows conflicts. Defaults to `false`. The calendar still changes no data: every completed change raises OnEventChangeRequested. | | EventTemplate | `RenderFragment` | `—` | Replaces the content of every event — title, times, avatars and the recurring mark. The event's box, position and colour stay the calendar's. | | Events | `IEnumerable` | `DRYL.Components.CalendarEvent[]` | The events to show. The host supplies those of the visible range; the calendar stores none of them and expands no recurrence of its own. | | FirstDayOfWeek | `DayOfWeek?` | `null` | The first column of a week. `null` follows Culture. | | Height | `String` | `null` | Height of the calendar, any CSS length; the grid scrolls inside it. | | HiddenPersonIds | `IReadOnlySet` | `null` | The ids of hidden people. Supports two-way binding via `@bind-HiddenPersonIds`; `null` shows everyone. | | HiddenPersonIdsChanged | `EventCallback>` | `—` | Raised with the complete new set when the user hides or shows a person. | | InitialScrollTime | `TimeSpan` | `07:00:00` | Time of day scrolled into view when the time grid is first shown. Defaults to 07:00. Later renders leave the scroll position alone. | | Labels | `CalendarLabels` | `CalendarLabels { Today = Today, Previous = Previous, Next = Next, Day = Day, Week = Week, Month = Month, AllDay = All day, More = +{0} more, Unassigned = Unassigned, Recurring = Recurring, People = People, Loading = Loading, NoEvents = No events, NewEvent = New event, EditHint = Arrow keys move, Shift and arrow keys resize, Enter drops, Escape cancels., CreateHint = Enter creates an event here., Requested = Change requested: {0}, Cancelled = Change cancelled., NotApplied = The change was not applied., ConflictOverlap = Overlaps another event of {0}, ConflictAbsence = {0} is absent, ConflictOutsideWorkingHours = Outside the working hours of {0} }` | Every text the calendar renders that is not a formatted date or time. | | Loading | `Boolean` | `false` | Marks the calendar as waiting for the host's data. What is already rendered stays in place. | | Now | `DateTime?` | `null` | The host's current time, for "today" and the current-time line. `null` uses the server's clock, and the line then advances on its own. | | OnEventChangeRequested | `EventCallback` | `—` | Raised once per completed create, move or resize while Editable is set. The host applies Proposed to Events within the handler, or leaves them as they are; while the handler's task runs, the event stays where the change put it. | | OnEventClick | `EventCallback` | `—` | Raised when an event is activated by pointer or keyboard. Every segment and bar of one event raises it with the same CalendarEvent. | | OnRangeChanged | `EventCallback` | `—` | Raised with the visible range — once after the first render, then whenever the range changes. The host supplies the events of that range. | | People | `IEnumerable` | `DRYL.Components.CalendarPerson[]` | The people events are assigned to, in display order. | | PersonLayout | `CalendarPersonLayout` | `CalendarPersonLayout.Overlay` | Overlaid in one grid, or a column per person in the day view. The week and month views are always overlaid. | | PersonTemplate | `RenderFragment` | `—` | Replaces the avatar and the name of a person's column header and legend entry. | | ShowLegend | `Boolean` | `true` | Renders the legend of people. Defaults to `true`. | | ShowToolbar | `Boolean` | `true` | Renders the toolbar. Defaults to `true`. | | SlotMinutes | `Int32` | `30` | Length of one grid slot, in minutes. Must divide sixty evenly; any other value is replaced by 30. | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | | ToolbarContent | `RenderFragment` | `—` | Extra content at the end of the toolbar. | | View | `CalendarView` | `CalendarView.Week` | The view shown. Supports two-way binding via `@bind-View`. | | ViewChanged | `EventCallback` | `—` | Raised when the user switches the view. | ### enum Breakpoint - `Sm` — 480px — phone landscape / small slots. - `Md` — 768px — tablet. - `Lg` — 1024px — desktop. - `Xl` — 1280px — large. ### enum CalendarPersonLayout - `Overlay` — Every person's events share one grid and are told apart by colour. Default. - `Columns` — A column per person beside a shared time axis. Applies to the day view; the week and month views stay overlaid. ### enum CalendarView - `Week` — Seven consecutive days as a time grid. Default. - `Day` — One day as a time grid. - `Month` — A grid of days, one row per week. ### Example ```razor
@_log
@code { private static readonly DateOnly _day = new(2026, 10, 15); private static DateTime At(double hour) => _day.ToDateTime(TimeOnly.MinValue).AddHours(hour); private readonly DateTime _now = At(11.3); private CalendarView _view = CalendarView.Day; private DateOnly _date = _day; private bool _refuseConflicts; private string _log = "Drag an event, pull its edge, or press on an empty slot. With the keyboard: arrow keys on an event, Enter on a cell."; private readonly List _people = [ new() { Id = "ada", Name = "Ada Lovelace" }, new() { Id = "bob", Name = "Bob Ross" }, new() { Id = "cy", Name = "Cy Twombly" } ]; private readonly List _availability = [ new() { PersonId = "ada", Start = At(8), End = At(12) }, new() { PersonId = "ada", Start = At(13), End = At(17) }, new() { PersonId = "bob", Start = At(9), End = At(18) }, new() { PersonId = "bob", Kind = CalendarAvailabilityKind.Absent, Start = At(14), End = At(16), Label = "Dentist" }, new() { PersonId = "cy", Start = At(10), End = At(18) } ]; private List _events = [ new() { Id = "standup", Title = "Stand-up", Start = At(9), End = At(9.5), PersonIds = ["ada", "bob"], SeriesId = "standup" }, new() { Id = "workshop", Title = "Workshop", Start = At(10), End = At(12), PersonIds = ["ada"] }, new() { Id = "call", Title = "Customer call", Start = At(11), End = At(11.75), PersonIds = ["bob"] }, new() { Id = "audit", Title = "Audit (locked)", Start = At(13), End = At(14), PersonIds = ["cy"], ReadOnly = true }, new() { Id = "review", Title = "Design review", Start = At(13.5), End = At(15), PersonIds = ["ada"] }, new() { Id = "retro", Title = "Retro", Start = At(15.5), End = At(16.5), PersonIds = ["ada", "bob"] } ]; // The calendar changes no data: it asks. The host applies the proposal — or, // here, refuses it when it would conflict and the switch says so. private async Task ApplyAsync(CalendarChangeRequest request) { await Task.Delay(250); // a round trip to the host's store if (_refuseConflicts && request.Conflicts.Count > 0) { _log = $"Refused: \"{Name(request)}\" would conflict ({string.Join(", ", request.Conflicts.Select(c => c.Kind))})."; return; } var proposed = request.Kind == CalendarChangeKind.Create ? request.Proposed with { Title = "New meeting" } : request.Proposed; _events = request.Kind == CalendarChangeKind.Create ? [.. _events, proposed] : _events.Select(e => e.Id == request.Original!.Id ? proposed : e).ToList(); _log = $"{request.Kind}: \"{Name(request)}\" {proposed.Start:HH:mm}–{proposed.End:HH:mm}" + (request.Conflicts.Count > 0 ? $", with {request.Conflicts.Count} conflict(s)." : "."); } private static string Name(CalendarChangeRequest request) => request.Original?.Title ?? "New meeting"; } ``` ## DrylCanvas *Intelligence · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | The canvas's AI state. Streaming / Thinking show the build line and render not-yet-valid nodes as "waiting…" skeletons rather than as finished-broken placeholders. Default: None. | | AllowExpand | `Boolean` | `true` | Whether the header offers an expand-to-fullscreen button. The expanded canvas is an overlay, not a modal — it neither traps focus nor blocks the page, and `Escape` collapses it. Set to `false` for canvases embedded in a surface that owns its own layering (a dialog, a fixed side panel). | | Announcement | `String` | `null` | Text announced to assistive tech through the canvas's `aria-live` region. | | Class | `String` | `null` | Extra CSS class(es) merged onto the canvas root. | | EmptyText | `String` | `"Nothing to show yet."` | Message shown when there is no artifact yet. | | EmptyTitle | `String` | `"No artifact yet"` | Headline of the empty state shown when there is no artifact yet. | | Epoch | `Int32` | `0` | Bump this to reset the interactive form state — a fresh artifact recycles field names, and the previous artifact's user input must not leak into it. | | Error | `String` | `null` | A fatal error for the whole artifact — rendered as an alert instead of the tree. | | ErrorTitle | `String` | `"Artifact failed"` | Title of the alert that replaces the tree when Error is set. | | FallbackTitle | `String` | `"Artifact"` | Header title while the artifact has none of its own. | | HeaderTools | `RenderFragment` | `—` | Extra controls in the header's tool row, left of refresh and expand. | | OnAction | `EventCallback` | `—` | Raised after every completed action button — successful or not. The canvas has already applied the result (patch, refresh, toast, inline error) by then; this is for the host's own logging or reactions. | | OnEdit | `EventCallback` | `—` | Raised after every completed direct manipulation — pin, duplicate, remove, reorder. Bump your workspace's `Revision` and set `RevisionLabel` from Label to make the user's own change a version like an AI round. | | OnInteraction | `EventCallback` | `—` | Raised when the user triggers a button intent inside the artifact — and when a registered action's result asked for it, carrying the ready-made chat turn in Message. | | OnPurge | `EventCallback` | `—` | Raised with a node id once its exit animation finished — the owner of the spec drops it from the tree (see `DrylCanvasRun.Purge`). | | OnWidthChanged | `Action` | `null` | Called with the measured usable body width in CSS px whenever it moves past a deadband. An artifact author can then budget its layout for the space it really has. A plain delegate rather than an `EventCallback` on purpose: an EventCallback bound to a component re-renders it, and dragging a window must never re-render the artifact tree. Nothing on screen depends on this value. | | Overlay | `RenderFragment` | `—` | Absolutely-positioned decoration rendered as the first child of the canvas root (e.g. an AI aura). Never part of the document flow. | | Pulse | `CanvasPulseTracker` | `null` | The change-pulse stamps to render. Supply the tracker a patch author already stamps into (e.g. `DrylCanvasRun.Pulse`); otherwise the canvas owns its own, which the data binder stamps on every refresh that actually changed a value. | | Selection | `CanvasSelection` | `null` | Opt-in for direct manipulation: hand the canvas a selection and its nodes become pickable — by click or keyboard, with a toolbar to prompt about the selected element, pin, duplicate, remove or reorder it. Share the same instance with `DrylCanvasDock` and its context chip carries the element into the next prompt. Without it nothing about the canvas changes. | | Spec | `CanvasSpec` | `null` | The artifact to render. May be mutated in place by its owner (patches, streaming); call `StateHasChanged` on the host when it changes. | | State | `AiState` | `AiState.None` | Obsolete alias for Ai, kept so the rename is not a break. Setting it is equivalent to setting Ai; setting both on one component is not supported, because the markup order would decide. | | Texts | `CanvasTexts` | `CanvasTexts { Expand = Expand artifact, ExitFullscreen = Exit fullscreen, Refresh = Refresh data, Prompt = Prompt about this element, Pin = Pin element, Unpin = Unpin element, Duplicate = Duplicate element, Remove = Remove element, Reorder = Reorder element, TypeName = System.Func`2[System.String,System.String], PinnedState = pinned, WaitingFor = System.Func`2[System.String,System.String], Required = Required, NotUpToDate = Not up to date, Truncated = System.Func`2[System.Int32,System.String], DataGrid = Data grid, SourceUnavailable = System.Func`2[System.String,System.String], ActionFailed = System.Func`2[System.String,System.String], ConfirmUnavailable = Confirmation is unavailable — the action was not run., Confirm = Confirm, Cancel = Cancel, Selected = System.Func`3[System.String,System.String,System.String], SelectionCleared = Selection cleared., Pinned = System.Func`2[System.String,System.String], Unpinned = System.Func`2[System.String,System.String], Duplicated = System.Func`2[System.String,System.String], Removed = System.Func`2[System.String,System.String], MovedTo = System.Func`4[System.String,System.Int32,System.Int32,System.String], PinEdit = System.Func`2[System.String,System.String], DuplicateEdit = System.Func`2[System.String,System.String], RemoveEdit = System.Func`2[System.String,System.String], MoveEdit = System.Func`2[System.String,System.String], Undo = Undo, Redo = Redo, VersionHistory = Version history, Undone = System.Func`2[System.String,System.String], Redone = System.Func`2[System.String,System.String], Restored = System.Func`3[System.Int32,System.Int32,System.String], CloseView = System.Func`2[System.String,System.String], VersionLabel = System.Func`2[System.Int32,System.String] }` | The fixed words of the canvas's own chrome — header buttons, the node toolbar, node hints and the screen-reader announcements. Defaults to Default (English); replace only what you translate with `CanvasTexts.Default with { … }`. | ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor @using System.Text.Json @using DRYL.Components.Canvas @* The write side of the same contract. Every button here is wired to a registered host command (AddDrylCanvasAction in Program.cs) — not to a chat message. The AI may place and label such a button, but there is no code path from a model output to a handler: only a press runs one. Try it: release 4702 (works, the table and both stats move), then release it again (fails inline, nothing moves). "Release" is confirmation-gated; "Book order" is not. *@
@if (_last is { } outcome) { OnAction: @outcome.Action → @(outcome.Succeeded ? "ok" : "failed") @if (!string.IsNullOrWhiteSpace(outcome.Message)) { @(" — " + outcome.Message) } }
@code { private CanvasActionOutcome? _last; // The canvas has already shown the toast, patched and refreshed by the time this runs — // OnAction is for the host's own logging, not for making the action work. private void Remember(CanvasActionOutcome outcome) => _last = outcome; // Written by hand, exactly as a line-of-business app would ship its standard screen: // presentation props here, the numbers behind "data", the writes behind "action". private const string SpecJson = """ { "title": "Order release", "root": { "id": "root", "type": "stack", "props": { "gap": "md" }, "children": [ { "id": "kpis", "type": "grid", "props": { "columns": 2 }, "children": [ { "id": "open", "type": "stat", "props": { "label": "Open orders" }, "data": { "source": "orders.openCount" } }, { "id": "revenue", "type": "stat", "props": { "label": "Revenue" }, "data": { "source": "sales.total" } } ] }, { "id": "orders", "type": "table", "props": {}, "data": { "source": "orders.open" } }, { "id": "pick", "type": "select", "props": { "name": "order", "label": "Order", "options": ["4702", "4705", "4708"], "value": "4702" } }, { "id": "approve", "type": "button", "props": { "label": "Release", "kind": "danger" }, "action": { "name": "orders.approve", "args": { "order": { "$field": "order" } }, "confirm": "Really release this order?" } }, { "id": "book", "type": "button", "props": { "label": "Book order", "kind": "secondary" }, "action": { "name": "orders.book" } } ] } } """; private readonly CanvasSpec _spec = JsonSerializer.Deserialize(SpecJson, CanvasJson.Options)!; } ``` ## DrylCanvasDock *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Actions | `RenderFragment` | `—` | Host controls in the dock head, left of the log toggle — stop, reset, save, whatever the dock itself does not own. Icon-only buttons need a `DrylTooltip` and an `AriaLabel`. Keep it to two or three: the status line yields space, but it does not vanish. | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | BuildingText | `Func` | `null` | Status line while an artifact streams, from its element count. Leave `null` for `"Building · n elements"`. | | Busy | `Boolean` | `false` | The host is busy with a turn: the composer locks and the dock breathes. | | Class | `String` | `null` | Extra CSS class(es) merged onto the dock root. | | ClearContextLabel | `String` | `"Clear context"` | Tooltip and aria-label of the context chip's clear button. | | CollapseLabel | `String` | `"Collapse assistant"` | Tooltip and aria-label of the collapse button in the dock head. | | Collapsed | `Boolean` | `false` | Whether the dock is collapsed to a single button. Supports two-way binding. | | CollapsedChanged | `EventCallback` | `—` | Fires when the dock collapses or expands. | | CollapsedIcon | `String` | `null` | A `DrylIcon` name for the collapsed button. Leave `null` for the sparkle — or the microphone when VoiceFirst applies. | | Corner | `DockCorner` | `DockCorner.BottomRight` | Which corner the dock floats in. Default BottomRight. | | ErrorText | `Func` | `null` | Status line of a failed run or voice session. Leave `null` to show the error's own message. A failure always outranks Status, so a translated status line can never hide it. | | HideLogLabel | `String` | `"Hide conversation"` | Tooltip and aria-label of the log toggle while the transcript is open. | | IdleText | `String` | `"Idle"` | Status line while nothing has happened yet. | | Log | `RenderFragment` | `—` | The transcript, revealed on demand. Without it the dock offers no disclosure. | | OnSend | `EventCallback` | `—` | Raised with the submitted text. | | Placeholder | `String` | `"Ask for a view…"` | Composer placeholder. | | ReadyText | `Func` | `null` | Status line once an artifact stands, from its element count. Leave `null` for `"Ready · n elements"`. | | Run | `DrylCanvasRun` | `null` | The canvas run the status line reads. Optional — without it the dock is just an input. | | Selection | `CanvasSelection` | `null` | The canvas's selection. With it the dock shows a context chip for the selected element and prefixes every prompt with a reference to it, so "make it a bar chart" lands on the right node. Hand the same instance to `DrylAiCanvas`. Without it the dock behaves exactly as before. | | ShowLogLabel | `String` | `"Show conversation"` | Tooltip and aria-label of the log toggle while the transcript is closed. | | Status | `String` | `null` | Overrides the status line derived from Run and Voice. A failure still outranks it — see ErrorText. | | Suggestions | `RenderFragment` | `—` | Prompt suggestions above the composer — typically small ghost buttons that send a ready-made prompt. Scrolls horizontally rather than widening the dock. | | Title | `String` | `"Assistant"` | Name of the assistant — the collapsed button's label and the composer's aria-label. | | Voice | `DrylVoiceRun` | `null` | A voice session for this dock. With it the head grows a microphone button, and a live session takes the dock over: composer, suggestions and context chip step aside for the orb, and the transcript keeps flowing into the Log. Without it nothing about the dock changes. | | VoiceFirst | `Boolean` | `false` | Makes the collapsed button the way into a voice session: with Voice set and no session running, one press expands the dock and starts listening. The button then carries VoiceLabel and a microphone. Without Voice it has no effect. | | VoiceLabel | `String` | `"Talk to the assistant"` | Label of the microphone button — tooltip and aria-label both. | | VoiceMuteLabel | `String` | `"Mute microphone"` | Tooltip and aria-label of the mute toggle while the microphone is open. | | VoiceMutedText | `String` | `"Muted"` | Status line of a live session while the microphone is muted and the model is neither thinking nor speaking. It outranks VoiceStatusText, which cannot see the mute. | | VoiceStatusText | `Func` | `null` | Status line of a voice session, from its phase and activity. Return `null` to fall through to the built-in text for that combination. Leave the parameter `null` for "Connecting…", "Listening…", "Thinking…", "Speaking…" and "Ending…". | | VoiceStopLabel | `String` | `"End voice session"` | Text of the button that ends a live voice session. | | VoiceUnmuteLabel | `String` | `"Unmute microphone"` | Tooltip and aria-label of the mute toggle while the microphone is muted. | | WorkingText | `String` | `"Working…"` | Status line while the host or the run is working and no artifact is streaming. | ### enum DockCorner - `BottomRight` — Bottom right — the default resting place for a command bar. - `BottomLeft` — Bottom left. - `TopRight` — Top right. - `TopLeft` — Top left. ### enum VoiceActivity - `Listening` — Waiting for the user to say something. - `UserSpeaking` — The user is talking. - `Thinking` — The model is working — reasoning, or running a tool. - `Speaking` — The model is talking. ### enum VoicePhase - `Idle` — Nothing running. - `Connecting` — Token minting, microphone acquisition and peer connection negotiation. - `Live` — Connected — the conversation is happening. - `Closing` — Tearing down. ## DrylCanvasWorkspace *Intelligence* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | AllowClose | `Boolean` | `true` | Whether each chip offers a close button. Default true. | | AriaLabel | `String` | `"Views"` | Accessible label of the view bar. | | AutoSave | `Boolean` | `false` | Whether a settled revision is written to the registered `ICanvasDocumentStore` after a short pause. Default false; without a registered store it does nothing. | | AutoSaveDelayMs | `Int32` | `1500` | How long to wait after the last revision before saving, in milliseconds. Default 1500. | | Class | `String` | `null` | Extra CSS class(es) merged onto the workspace root. | | DocumentId | `String` | `null` | The document autosave writes to. Null until the first save mints one. | | DocumentIdChanged | `EventCallback` | `—` | Reports the id the store assigned on the first save. | | DocumentTitle | `String` | `null` | Title stored with the document; defaults to the active view's title. | | EmptyText | `String` | `"Ask the assistant to open one."` | Text shown while there is nothing to show. | | EmptyTitle | `String` | `"No view yet"` | Headline shown while there is nothing to show. | | OnSaved | `EventCallback` | `—` | Raised after every successful autosave. | | Revision | `Int32` | `0` | A counter the host bumps after every settled round (typically `run.Round`). Every change commits a version of the active view. | | RevisionLabel | `String` | `null` | Label for the next committed version — typically the prompt that produced it. | | ShowBarWhenSingle | `Boolean` | `false` | Whether the bar shows for a single view too. Default false — one artifact deserves no chrome. | | ShowHistory | `Boolean` | `false` | Whether the bar offers undo, redo and the version history. Default false. | | Texts | `CanvasTexts` | `CanvasTexts { Expand = Expand artifact, ExitFullscreen = Exit fullscreen, Refresh = Refresh data, Prompt = Prompt about this element, Pin = Pin element, Unpin = Unpin element, Duplicate = Duplicate element, Remove = Remove element, Reorder = Reorder element, TypeName = System.Func`2[System.String,System.String], PinnedState = pinned, WaitingFor = System.Func`2[System.String,System.String], Required = Required, NotUpToDate = Not up to date, Truncated = System.Func`2[System.Int32,System.String], DataGrid = Data grid, SourceUnavailable = System.Func`2[System.String,System.String], ActionFailed = System.Func`2[System.String,System.String], ConfirmUnavailable = Confirmation is unavailable — the action was not run., Confirm = Confirm, Cancel = Cancel, Selected = System.Func`3[System.String,System.String,System.String], SelectionCleared = Selection cleared., Pinned = System.Func`2[System.String,System.String], Unpinned = System.Func`2[System.String,System.String], Duplicated = System.Func`2[System.String,System.String], Removed = System.Func`2[System.String,System.String], MovedTo = System.Func`4[System.String,System.Int32,System.Int32,System.String], PinEdit = System.Func`2[System.String,System.String], DuplicateEdit = System.Func`2[System.String,System.String], RemoveEdit = System.Func`2[System.String,System.String], MoveEdit = System.Func`2[System.String,System.String], Undo = Undo, Redo = Redo, VersionHistory = Version history, Undone = System.Func`2[System.String,System.String], Redone = System.Func`2[System.String,System.String], Restored = System.Func`3[System.Int32,System.Int32,System.String], CloseView = System.Func`2[System.String,System.String], VersionLabel = System.Func`2[System.Int32,System.String] }` | The fixed words of the workspace's chrome — undo, redo, the version history, its announcements, the close label and the generated version label — and of the fallback `DrylCanvas`, which receives the same instance. Defaults to Default (English); replace only what you translate with `CanvasTexts.Default with { … }`. | | View | `RenderFragment` | `—` | How the active view is rendered — put your `DrylAiCanvas` here. Without the slot the workspace renders a plain `DrylCanvas` over the view's spec. | | Workspace | `CanvasWorkspace` | `null` | The views to show. Without one the workspace renders its empty state. | ### Example ```razor @using System.Runtime.CompilerServices @using DRYL.Components.Canvas @using Microsoft.Extensions.AI @implements IAsyncDisposable @* Workspace + Dock — a business surface instead of a chat column. Fully self-contained: no API key, no network. Every prompt runs open_view on DrylCanvasTools.CreateReplay, which streams a canned CanvasSpec into the view it just opened — exactly the sequence a real model produces. *@
Overview Order 4711 Returns — ask for one of these below; the previous view stays in the bar.
@for (var i = 0; i < _log.Count; i++) { var line = _log[i]; // copy: the fragment must not capture the loop variable @line } @code { // One workspace, one run: the run always writes into the view the user is looking at. // Fully qualified on purpose: this file's own namespace ends in ".CanvasWorkspace", which // would otherwise win over the type name. private readonly DRYL.Components.Canvas.CanvasWorkspace _ws = new(); private readonly DrylCanvasRun _run = new(); private readonly CancellationTokenSource _cts = new(); private readonly List _log = []; private DrylCanvasTools _tools = default!; private bool _busy; protected override void OnInitialized() { _run.UseWorkspace(_ws); _ws.OnChange += Changed; // In your app you hand _tools.All to a real AIAgent. Here the "generator" is a script // that picks its canned artifact from the brief. _tools = DrylCanvasTools.CreateReplay(_run, Generate, workspace: _ws); } private void Changed() => InvokeAsync(StateHasChanged); private async Task Send(string text) { if (_busy) return; _busy = true; _log.Add(text); StateHasChanged(); try { // The model would call open_view itself; we invoke the scripted AIFunction directly. var fn = (AIFunction)_tools.OpenView!; await fn.InvokeAsync(new AIFunctionArguments(new Dictionary { ["name"] = ViewNameFor(text), ["brief"] = text, }!), _cts.Token); } catch (OperationCanceledException) { // Component is disposing (navigated away mid-stream) — exit quietly. return; } finally { _busy = false; } } private static string ViewNameFor(string text) => text.Contains("4711", StringComparison.OrdinalIgnoreCase) ? "Order 4711" : text.Contains("return", StringComparison.OrdinalIgnoreCase) ? "Returns" : "Overview"; private IAsyncEnumerable Generate(string prompt, CancellationToken ct) => Stream(ViewNameFor(prompt) switch { "Order 4711" => OrderJson, "Returns" => ReturnsJson, _ => OverviewJson, }, ct); // Replays a canned payload in ~30-char chunks so the artifact builds up visibly — the same // node-by-node cadence a live token stream produces. private static async IAsyncEnumerable Stream( string json, [EnumeratorCancellation] CancellationToken ct = default) { const int size = 30; for (var i = 0; i < json.Length; i += size) { ct.ThrowIfCancellationRequested(); await Task.Delay(30, ct); yield return json.Substring(i, Math.Min(size, json.Length - i)); } } // Numeric arrays go through InvariantCulture — under a German locale a bare $"{1.5}" would // emit "1,5" and break the JSON parser (project rule). private static string Nums(params double[] xs) => string.Join(",", xs.Select(x => FormattableString.Invariant($"{x}"))); // ── Scripted payloads ──────────────────────────────────────────────────────────────────── private static readonly string OverviewJson = """ {"title":"Overview","root":{"id":"root","type":"stack","props":{"gap":"lg"},"children":[ {"id":"kpis","type":"grid","props":{"columns":3},"children":[ {"id":"kpiOpen","type":"stat","props":{"label":"Open orders","value":"38","delta":"+4","direction":"up"}}, {"id":"kpiRevenue","type":"stat","props":{"label":"Revenue Q2","value":"€184k","delta":"+12.4%","direction":"up"}}, {"id":"kpiReturns","type":"stat","props":{"label":"Return rate","value":"2.1%","delta":"-0.3%","direction":"down"}} ]}, {"id":"trend","type":"lineChart","props":{"title":"Revenue per month","labels":["Apr","May","Jun"],"series":[ {"name":"2025","data":[ """ + Nums(148, 162, 184) + """ ]} ],"valueFormat":"N0"}} ]}} """; private static readonly string OrderJson = """ {"title":"Order 4711","root":{"id":"root","type":"stack","props":{"gap":"lg"},"children":[ {"id":"head","type":"markdown","props":{"content":"**Order 4711** — Contoso Ltd, due 12 Aug."}}, {"id":"pos","type":"table","props":{"columns":["Item","Qty","Total"],"rows":[ ["Sensor A","12","€1,440"],["Cable set","3","€210"],["Assembly","1","€480"] ]}}, {"id":"state","type":"badge","props":{"text":"Awaiting release","kind":"warning"}} ]}} """; private static readonly string ReturnsJson = """ {"title":"Returns","root":{"id":"root","type":"stack","props":{"gap":"lg"},"children":[ {"id":"bars","type":"barChart","props":{"title":"Returns by reason","labels":["Defective","Wrong item","Exchange"],"series":[ {"name":"Q2","data":[ """ + Nums(24, 11, 37) + """ ]} ],"valueFormat":"N0"}}, {"id":"note","type":"markdown","props":{"content":"Exchange stays the most common reason — the trend has not moved since April."}} ]}} """; public async ValueTask DisposeAsync() { _ws.OnChange -= Changed; // Stop any in-flight scripted stream before the run itself is torn down — a background // continuation must not mutate state on an already-disposed component. _cts.Cancel(); _cts.Dispose(); await _run.DisposeAsync(); } } ``` ## DrylCard *Surfaces · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes (e.g. role, data-*, @onclick). | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | ChildContent | `RenderFragment` | `—` | Card body content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the card's own classes. | | Depth | `DepthGlassIntensity?` | `null` | When set, the card becomes a 3D depth-warp surface that tilts toward the pointer (the same effect as DrylDepthGlass). Supersedes Spotlight. Leave null for a flat card. | | Padding | `CardPadding` | `CardPadding.Default` | Padding preset for the card. Use None for custom layout. | | Spotlight | `Boolean` | `true` | If true, an interactive cursor-following spotlight is rendered. Ignored when Depth is set. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum DrylCard.CardPadding - `None` - `Tight` - `Default` - `Loose` ### enum DepthGlassIntensity - `Subtle` — Gentle tilt and parallax. - `Medium` — Balanced default. - `Strong` — Deep tilt and pronounced parallax. ### Example ```razor
Subtle

Gentle tilt

Hover and move — the card warps in 3D toward your pointer.

Medium

Balanced depth

The content floats above the glass as the pane leans.

Strong

Deep warp

A pronounced lean with a glossy highlight that tracks the cursor.

``` ## DrylChat *Surfaces · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | AriaLabel | `String` | `"Conversation"` | Accessible label for the message log. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | AutoScroll | `Boolean` | `true` | When true, the log scrolls to the newest message after each render. | | ChildContent | `RenderFragment` | `—` | The message log content (typically DrylMessage elements). | | Class | `String` | `null` | Extra CSS class(es) merged onto the chat panel's own classes. | | Footer | `RenderFragment` | `—` | Pinned footer content, typically a DrylChatComposer. | | Height | `String` | `"480px"` | CSS height of the chat panel. Default 480px. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
@foreach (var m in _messages) { }
@code { private sealed class ChatMsg { public MessageRole Role { get; set; } public string? Author { get; set; } public string? Timestamp { get; set; } public string? Text { get; set; } public AiState Ai { get; set; } = AiState.None; public bool Typing { get; set; } } private readonly List _messages = new() { new ChatMsg { Role = MessageRole.Assistant, Author = "DRYL AI", Text = "Hi! Ask me anything about your data.", Timestamp = "09:20" } }; private string? _draft; private bool _busy; private async Task HandleSend(string text) { if (string.IsNullOrWhiteSpace(text) || _busy) return; _busy = true; _messages.Add(new ChatMsg { Role = MessageRole.User, Author = "You", Text = text, Timestamp = DateTime.Now.ToString("HH:mm") }); StateHasChanged(); var reply = new ChatMsg { Role = MessageRole.Assistant, Author = "DRYL AI", Typing = true, Ai = AiState.Thinking }; _messages.Add(reply); StateHasChanged(); await Task.Delay(900); reply.Typing = false; reply.Ai = AiState.Streaming; reply.Text = ""; var full = "Here's what I found: the trend is up 12% week-over-week, driven mostly by the EU region."; foreach (var word in full.Split(' ')) { reply.Text += (reply.Text!.Length == 0 ? "" : " ") + word; StateHasChanged(); await Task.Delay(60); } reply.Ai = AiState.Generated; reply.Timestamp = DateTime.Now.ToString("HH:mm"); StateHasChanged(); await Task.Delay(900); reply.Ai = AiState.None; _busy = false; StateHasChanged(); } } ``` ## DrylChatComposer *Other · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Ai | `AiState` | `AiState.None` | AI ambient state — wraps the composer in the gradient ring. | | AriaLabel | `String` | `"Message"` | Accessible label for the input. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `false` | When true, the composer is disabled. | | OnSend | `EventCallback` | `—` | Fires when the user sends a message (Enter or the send button). | | Placeholder | `String` | `"Type a message…"` | Placeholder text shown when empty. | | Value | `String` | `null` | Current draft text. Supports two-way binding. | | ValueChanged | `EventCallback` | `—` | Fires when the draft text changes. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ## DrylCheckbox *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | AriaLabel | `String` | `null` | Accessible label — required when no visible label is rendered. | | ChildContent | `RenderFragment` | `—` | Rich label content. Takes precedence over `Label`. | | Disabled | `Boolean` | `false` | If true, the checkbox is greyed out and non-interactive. | | DisplayName | `String` | `null` | | | Label | `String` | `null` | Plain-text label displayed next to the checkbox. | | Value | `Boolean` | `false` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ## DrylChipInput *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Additional HTML attributes forwarded to the inner input element. | | Ai | `AiState` | `AiState.None` | AI ambient state — drives the gradient border, glow, and reveal animation. | | AriaLabel | `String` | `null` | Accessible label — required when `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Class | `String` | `null` | Extra CSS class(es) merged onto the field root's own classes. | | Disabled | `Boolean` | `false` | If true, no new tags can be added and existing tags cannot be removed. | | HelperText | `String` | `null` | Helper text shown below the input. | | Label | `String` | `null` | Optional label shown above the input. | | MaxTags | `Int32` | `0` | Maximum number of tags. 0 means unlimited. | | Placeholder | `String` | `null` | Placeholder text shown when there are no tags and the input is empty. | | State | `InputState` | `InputState.Default` | Visual state override (Default / Error / Success). | | Tags | `IReadOnlyList` | `System.String[]` | The current list of tags. Use @bind-Tags for two-way binding. | | TagsChanged | `EventCallback>` | `—` | Raised whenever the tag list changes. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### Example ```razor
``` ## DrylCitation *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the chip. | | Class | `String` | `null` | Extra CSS class(es) merged onto the citation chip's own classes. | | Index | `Int32` | `1` | 1-based reference number shown in the chip and the popover label. | | Snippet | `String` | `null` | Optional excerpt that grounds the cited claim. | | Title | `String` | `null` | Source title shown at the top of the popover. | | Url | `String` | `null` | Source URL. Rendered as an external link in the popover. | ### Example ```razor

Berlin is the capital and largest city of Germany. Its population is roughly 3.7 million.

``` ## DrylCitationList *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | ChildContent | `RenderFragment` | `—` | The DrylCitationListItem entries. | | Class | `String` | `null` | Extra CSS class(es) merged onto the list's own classes. | | Title | `String` | `null` | Optional heading shown above the list (e.g. "Sources"). | ## DrylCitationListItem *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the list item. | | Class | `String` | `null` | Extra CSS class(es) merged onto the item's own classes. | | Index | `Int32` | `1` | 1-based reference number; matches the inline `DrylCitation`. | | Snippet | `String` | `null` | Optional grounding excerpt. | | Title | `String` | `null` | Source title. | | Url | `String` | `null` | Source URL, rendered as an external link. | ## DrylCodeBlock *Data · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Class | `String` | `null` | Extra CSS class(es) merged onto the code block's own classes. | | Code | `String` | `""` | The source code to display. Rendered verbatim (HTML-encoded). | | Highlight | `Boolean` | `true` | When true (default), the code is syntax-highlighted server-side based on Language. Set to `false` to render verbatim plain text. | | Language | `String` | `null` | Optional language label shown in the header (e.g. `csharp`, `json`). | | ShowLineNumbers | `Boolean` | `false` | When true, renders a left gutter with 1-based line numbers. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor @code { private const string _csharp = """ public sealed record Person(string Name, int Age) { public bool IsAdult => Age >= 18; } """; } ``` ## DrylColorModeToggle *Customization* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes (e.g. data-*). | | Class | `String` | `null` | Extra CSS class(es) merged onto the button's own classes. Because Blazor matches attribute names case-insensitively, a consumer-supplied `class="..."` also binds here and is merged in — it does not clobber the component's identity classes (which a bare `@attributes` splat would). | | Size | `Int32` | `18` | Icon size in pixels. Default 18. | ## DrylColumn *Other* Declarative column definition for DrylTable`1. Place these inside the table's `Columns` slot. The column registers itself with the parent table via a cascading reference and renders nothing on its own — the table iterates its registered columns to build the header and body cells. ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Align | `ColumnAlign` | `—` | Horizontal alignment of header and cells. Default Start. | | CellTemplate | `RenderFragment` | `—` | Cell renderer. Receives the row item. When omitted, the column renders `Field`'s value as text. | | ColumnKey | `String` | `—` | Stable key used for sort/filter/persistence. Auto-derived from Field's member name when not set explicitly. | | CompactRole | `ColumnCompactRole` | `—` | The part this column plays in a record while the table is compact (see CompactBelow). Default Auto: the table assigns the roles by column order. Has no effect while the table is wide. | | EditTemplate | `RenderFragment` | `—` | Editor renderer for inline editing. When set (and the parent table has Editable enabled), the cell swaps to this template while the row/cell is being edited. Receives the item under edit — bind your DRYL inputs to its properties (e.g. `<DrylInputText @bind-Value="row.Name" />`). When the table is given a CloneRow function the item passed here is an isolated working copy, so edits can be cancelled cleanly. Columns without an EditTemplate stay read-only during editing. | | Field | `Expression>` | `—` | Property accessor used as the column's value, default sort key, and default search source. Pass a lambda like `@(x => x.Name)`. Either Field or a CellTemplate is required. | | FilterType | `ColumnFilterType` | `—` | Variant of the filter UI. Default Auto. | | FilterValues | `Func, IEnumerable>` | `—` | Override for the list of values shown in a Select filter. Receives the underlying items and returns the distinct option set. When null and `FilterType=Select`, the table auto-derives distinct values from Field. | | Filterable | `Boolean` | `—` | Shows a filter icon in the header that opens a per-column filter popover. | | HeaderTemplate | `RenderFragment` | `—` | Optional header renderer. When omitted, Title is rendered as text. | | Hidden | `Boolean` | `—` | Initial visibility — when `true`, the column starts hidden. Users can toggle visibility at runtime via the column-visibility menu (see AllowColumnVisibility). | | Pinned | `ColumnPin` | `—` | Freezes this column to the leading or trailing edge so it stays in view during horizontal scroll (e.g. an identity column). Requires the table to be horizontally scrollable (set Height or place it in a constrained container). Pinned columns are excluded from drag-reorder. Default None. | | Primary | `Boolean` | `—` | Marks this column as the primary identifier — its cells get `tbl-td-primary` styling (full-color, medium weight). | | Reorderable | `Boolean` | `—` | When the table enables ReorderableColumns, set this to `false` to keep this column fixed in place. Pinned columns are never reorderable. Default `true`. | | Resizable | `Boolean` | `—` | When the table enables ResizableColumns, set this to `false` to lock this column's width. Default `true`. | | Searchable | `Boolean` | `—` | Includes this column's value in the global toolbar search. Has no effect when the table has its own `SearchPredicate` override. | | Sortable | `Boolean` | `—` | Enables click-to-sort on this column's header. | | Title | `String` | `—` | Header text. Omit and use HeaderTemplate for custom header markup. | | Width | `String` | `—` | Optional explicit column width (any CSS length, e.g. `"120px"` or `"15%"`). | ### enum ColumnAlign - `Start` — Left-aligned (LTR) / right-aligned (RTL). Default. - `Center` — Center-aligned. - `End` — Right-aligned (LTR) / left-aligned (RTL). Use for numeric columns. ### enum ColumnCompactRole - `Auto` — The table decides: the Primary column is the title, the next column the trailing value, the two after that the meta line, and the rest are shown when the record is unfolded. - `Title` — The record's title, leading its first line. - `Trailing` — The value at the end of the record's first line, e.g. a status. - `Meta` — A value on the record's second, quieter line. A record shows up to two. - `Detail` — Shown only when the record is unfolded, under the column's title. - `Hidden` — Not shown while the table is compact. ### enum ColumnFilterType - `Auto` — Infer from the column's field type — string→Text, enum/bool→Select, anything else→Text. - `Text` — Single text input. Uses the `Contains` operator (case-insensitive). - `Select` — Multi-select checkbox list of distinct values. Uses the `In` operator. ### enum ColumnPin - `None` — Not pinned — scrolls with the table body. Default. - `Start` — Pinned to the leading (left) edge. Use for the identity column. - `End` — Pinned to the trailing (right) edge. Use for an actions / total column. ## DrylCommand *Other* A single unit of application functionality declared once and usable three ways — click, keyboard `Enter` on a fuzzy match, and (when a resolver is supplied) an AI tool call — all flowing through the one OnRun handler. Place inside a DrylCommandPalette; it self-registers and hosts optional DrylCommandArgument children. ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ChildContent | `RenderFragment` | `—` | Hosts the command's DrylCommandArgument children. | | Description | `String` | `null` | Secondary line in the palette and the tool description sent to the model. | | Destructive | `Boolean` | `false` | De-prioritised in sort, styled as destructive, and forced through human-in-the-loop confirmation before running. | | Disabled | `Boolean` | `false` | Greyed and unselectable in the palette; excluded from the AI tool list. | | Group | `String` | `null` | Section grouping in the palette. | | Icon | `String` | `null` | Lucide icon name passed to `DrylIcon`. | | Id | `String` | `null` | Stable id (schema/tool name and de-dup key). Auto-generated from the title if absent. | | Keywords | `String[]` | `null` | Extra fuzzy-search aliases. | | OnRun | `EventCallback` | `—` | The one execution path. Receives a CommandContext carrying the resolved arguments (manual or AI-filled). | | Shortcut | `String` | `null` | Display-only shortcut hint, e.g. "⌘N". | | Title *(required)* | `String` | `""` | Primary label and the tool's display/selection hint. Required. | ## DrylCommandArgument *Other* A declarative argument of a DrylCommand. Renders no DOM of its own: it contributes (a) a manual input shown in the palette when the command is run with arguments, and (b) one property in the AI tool's JSON schema. ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Description | `String` | `null` | Human/model-facing description of the argument. | | Name *(required)* | `String` | `""` | The argument name (the schema property key and CommandContext key). Required. | | Options | `String[]` | `null` | Allowed values when Type is Choice. | | Required | `Boolean` | `false` | Whether the argument must be provided. | | Type | `CommandArgType` | `CommandArgType.Text` | The input/schema type. Defaults to Text. | ### enum CommandArgType - `Text` — Free text (default). - `Number` — Numeric input. - `Boolean` — Boolean toggle. - `Choice` — One value chosen from Options. ## DrylCommandPalette *Actions · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Ai | `AiState` | `AiState.None` | AI result panel state. When non-None the palette shell shows the shared AI aura and an AI result panel appears below the results list. Defaults to None — AI styling is opt-in. | | AiContent | `RenderFragment` | `—` | Content rendered inside the AI result panel when Ai is non-None. | | AriaLabel | `String` | `null` | ARIA label for the palette dialog element. When set, wins over AriaLabel. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | ChildContent | `RenderFragment` | `—` | Hosts declarative DrylCommand children. | | Class | `String` | `null` | Additional CSS classes applied to the palette panel element. | | Debounce | `TimeSpan` | `00:00:00.2500000` | How long a non-empty query rests before SearchProvider is asked. Defaults to 250 ms. | | EmptyText | `String` | `null` | Empty-state text shown when nothing matches. When set, wins over EmptyText. | | Fallback | `Func` | `null` | One entry the host keeps present for every non-blank query — "Ask the assistant: …", "Search the web", "Create '…'". It sits last while other rows match and moves first, focused, when none does. Return `null` to show none for that query. | | GroupOrder | `CommandGroupOrder` | `CommandGroupOrder.Alphabetical` | How the groups of the result rows are ordered. Defaults to Alphabetical. | | HotKey | `Boolean` | `true` | Enables the global ⌘K / Ctrl+K toggle. Defaults to true. | | Items | `CommandItem[]` | `null` | Static item list used when SearchProvider is not set. | | MaxResults | `Int32` | `8` | Maximum number of registry commands shown for a query. Items are not capped. | | OnItemRun | `EventCallback` | `—` | Fires whenever an item runs — a provider or static item, or the Fallback — before its navigation or action. The palette stores nothing; record what you want and return your recent items as the result of the empty query. | | Open | `Boolean` | `false` | Controls whether the palette overlay is visible. Supports @bind-Open. | | OpenChanged | `EventCallback` | `—` | Fires when the Open state changes — enables two-way @bind-Open binding. | | Placeholder | `String` | `null` | Placeholder text for the search input. When set, wins over Placeholder. | | Resolver | `ICommandResolver` | `null` | Optional AI seam. When set, a natural-language query is resolved into a single confirmable command suggestion shown at the top of the list. The core references no AI package; supply an implementation (e.g. `DRYL.Components.Agents.DrylAiCommandResolver`). | | SearchProvider | `Func>` | `null` | Async search provider invoked with the current query string. Takes precedence over Items when set. A non-empty query waits Debounce before the call; the empty query is asked at once. The provider ranks — the palette shows what it gets, in that order. | | Texts | `CommandPaletteTexts` | `null` | Every human word of the palette's own chrome. Defaults to Default. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum CommandGroupOrder - `Alphabetical` — Groups sorted by name, case-insensitively; rows without a group come last. The default. - `AsProvided` — Groups in the order their first row arrives — provider items first, then registry commands. Rows without a group form a group of their own at that place. ### Example ```razor
Open command palette
@if (_lastAction is not null) {

Last action: @_lastAction

} @code { private bool _open; private string? _lastAction; private CommandItem[] _items => [ new() { Label = "Go to Dashboard", Icon = "Home", Type = CommandItemType.Navigate, Href = "/", Description = "Overview page" }, new() { Label = "Go to Buttons", Icon = "Bolt", Type = CommandItemType.Navigate, Href = "/buttons" }, new() { Label = "Go to Dialog", Icon = "Box", Type = CommandItemType.Navigate, Href = "/dialog" }, new() { Label = "Copy page URL", Icon = "Copy", Type = CommandItemType.Action, Action = EventCallback.Factory.Create(this, () => Log("Copied URL")) }, new() { Label = "Reload page", Icon = "Refresh",Type = CommandItemType.Action, Action = EventCallback.Factory.Create(this, () => Log("Page reloaded")) }, new() { Label = "Summarise this page", Icon = "Sparkle",Type = CommandItemType.AiIntent, AiAction = EventCallback.Factory.Create(this, () => Log("AI: summarise")) }, ]; private void Log(string action) { _lastAction = action; StateHasChanged(); } } ``` ## DrylConfirmDialog *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | CancelLabel | `String` | `"Cancel"` | | | ConfirmLabel | `String` | `"Confirm"` | | | Instance | `IDrylDialogInstance` | `null` | | | Message | `String` | `""` | | ## DrylContainer *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the container. | | ChildContent | `RenderFragment` | `—` | Container content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the container's own classes. | | Size | `ContainerSize` | `ContainerSize.Lg` | Maximum content width preset. Defaults to Lg. | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | ### enum DrylContainer.ContainerSize - `Sm` - `Md` - `Lg` - `Xl` - `Full` ### Example ```razor Centered at Sm (40rem) with responsive side padding — never edge-to-edge on a phone. ``` ## DrylCopyButton *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes, applied to the button. | | AriaLabel | `String` | `null` | Accessible name, and the tooltip of an icon-only button. Without a Label it falls back to `"Copy"`; with a Label it is only applied when set, so the visible label stays the accessible name. | | Class | `String` | `null` | Extra CSS class(es) merged onto the button's own classes. | | CopiedLabel | `String` | `"Copied"` | Short confirmation after a successful copy — shown and announced. Default `"Copied"`. | | FailedLabel | `String` | `"Copy failed"` | Short notice when the browser refused the copy — shown and announced. Default `"Copy failed"`. | | Label | `String` | `null` | Visible text beside the glyph. `null` (default) renders an icon-only button. | | OnCopied | `EventCallback` | `—` | Fires after the text was copied successfully. | | Size | `ButtonSize` | `ButtonSize.Small` | Size of the underlying DrylButton. Default Small. | | Text *(required)* | `String` | `""` | The text written to the clipboard. | | Variant | `ButtonVariant` | `ButtonVariant.Ghost` | Visual style of the underlying DrylButton. Default Ghost. | ### enum DrylButton.ButtonSize - `Small` - `Medium` - `Large` ### enum DrylButton.ButtonVariant - `Primary` - `Secondary` - `Ghost` - `Danger` - `Bold` ## DrylDatePicker *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation. | | AriaLabel | `String` | `null` | Accessible label — required when `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `false` | If true, the picker is non-interactive. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below the input. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label shown above the input. | | Max | `DateOnly?` | `null` | Latest selectable date (inclusive). | | Min | `DateOnly?` | `null` | Earliest selectable date (inclusive). | | Range | `Boolean` | `false` | When true, enables date range mode — bind `RangeStart` and `RangeEnd` instead of `Value`. | | RangeEnd | `DateOnly?` | `null` | End of the selected range (Range mode only). | | RangeEndChanged | `EventCallback` | `—` | Fires when the range end changes. | | RangeStart | `DateOnly?` | `null` | Start of the selected range (Range mode only). | | RangeStartChanged | `EventCallback` | `—` | Fires when the range start changes. | | State | `InputState` | `InputState.Default` | Visual state override. An active validation error overrides this. | | Value | `DateOnly?` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### Example ```razor
@foreach (var s in Enum.GetValues()) { @s.ToString() }
@code { private DateOnly? _aiDate; private AiState _aiState = AiState.Active; } ``` ## DrylDepthGlass *Surfaces* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the surface element. | | ChildContent | `RenderFragment` | `—` | The surface content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the surface. | | Intensity | `DepthGlassIntensity` | `DepthGlassIntensity.Medium` | How strong the tilt and parallax are. | | Interactive | `Boolean` | `true` | If true (default), the surface warps toward the pointer and the highlight follows it. | ### enum DepthGlassIntensity - `Subtle` — Gentle tilt and parallax. - `Medium` — Balanced default. - `Strong` — Deep tilt and pronounced parallax. ### Example ```razor

Depth Glass

Move your pointer across me — the pane warps in 3D, the content floats above the glass and a glossy highlight follows your cursor.

``` ## DrylDescriptionItem *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ChildContent | `RenderFragment` | `—` | The value content. | | Icon | `String` | `null` | Optional leading icon on the term. | | Term | `String` | `null` | The term / label. | ## DrylDescriptionList *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the element. | | ChildContent | `RenderFragment` | `—` | The description items. | | Class | `String` | `null` | Extra CSS class(es) merged onto the list's own classes. | | Columns | `Int32` | `1` | Number of pairs per row. | | Layout | `DescriptionLayout` | `DescriptionLayout.Stacked` | Term/value arrangement applied to every item. | ### enum DescriptionLayout - `Stacked` — Term stacked above its value. - `Inline` — Term and value on the same row (label column + value). ### Example ```razor
auth-gateway Online eu-central-1 v2.4.1 Platform Team 99.98%
``` ## DrylDialog *Surfaces · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ActionContent | `RenderFragment` | `—` | Optional footer content (typically buttons). | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes (e.g. data-*). | | Ai | `AiState` | `AiState.None` | AI ambient state. Defaults to None; when the dialog is rendered by DrylDialogProvider it inherits the instance's state unless you set this explicitly. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | ChildContent | `RenderFragment` | `—` | Dialog body content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the dialog's own classes. | | Icon | `String` | `null` | Optional leading icon shown to the left of the title (see DrylIcon). | | Instance | `IDrylDialogInstance` | `null` | Cascading dialog instance — present when shown via the service. | | ShowCloseButton | `Boolean?` | `null` | If non-null, overrides ShowCloseButton from the instance. Use sparingly — most dialogs should let the caller decide. | | ShowHeader | `Boolean` | `true` | If false, the header (title + close) is hidden entirely. | | Title | `String` | `null` | Dialog title text. Overridden by TitleContent if provided. | | TitleContent | `RenderFragment` | `—` | Optional custom title slot (replaces the plain Title string). | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor @inject IDrylDialogService Dialogs
Show confirm Show alert Delete project…
@if (!string.IsNullOrEmpty(_lastResult)) {

Last result: @_lastResult

}
@code { private string _lastResult = ""; private async Task OpenConfirm() { var result = await Dialogs.ShowConfirmAsync( "Discard changes?", "Your unsaved edits will be lost. This cannot be undone."); _lastResult = result.Canceled ? "Canceled" : "Confirmed"; } private async Task OpenAlert() { await Dialogs.ShowAlertAsync( "Deployment failed", "Check the logs for stack trace details."); _lastResult = "Alert dismissed"; } private async Task OpenDestructive() { var result = await Dialogs.ShowConfirmAsync( "Delete project?", "All resources will be permanently removed.", confirmLabel: "Delete", cancelLabel: "Keep"); _lastResult = result.Canceled ? "Kept" : "Deleted"; } } ``` ## DrylDialogProvider *Other* ## DrylDivider *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the divider element. | | ChildContent | `RenderFragment` | `—` | Optional centred label. Only honoured for a horizontal divider. | | Class | `String` | `null` | Extra CSS class(es) merged onto the divider's own classes. | | Orientation | `DividerOrientation` | `DividerOrientation.Horizontal` | Orientation of the rule. Defaults to Horizontal. | ### enum DrylDivider.DividerOrientation - `Horizontal` - `Vertical` ### Example ```razor
Section one. Section two.
``` ## DrylDonutChart *Data · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the chart root. | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | AriaLabel | `String` | `null` | Accessible summary label. Defaults to an auto-generated description. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | CenterContent | `RenderFragment` | `—` | Content rendered inside the hole (e.g. a KPI). Ignored when InnerRadius is 0. | | Class | `String` | `null` | Extra CSS class(es) merged onto the chart's own classes. | | Height | `Int32` | `260` | Chart height in pixels. Width always fills the container. | | InnerRadius | `Double` | `0.65` | Hole radius as a fraction of the outer radius (0–0.9). 0 renders a pie. | | Segments | `IReadOnlyList` | `null` | The segments to plot. Zero and negative values are skipped. | | ShowLegend | `Boolean?` | `null` | Legend visibility. Default (null) is automatic: shown for two or more series, hidden for one (the title/context already names a single series). | | ValueFormat | `String` | `null` | Display format for axis ticks and tooltip values: either a .NET format string (e.g. "N0", "C0") or a template with a `{value}` placeholder where the number goes (e.g. "€{value} Tsd", "{value}%"), optionally with an inner .NET format ("{value:0.0}"). Display values are intentionally culture-aware. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
@* InnerRadius="0" rendert ein Pie statt Donut. *@
@code { private readonly ChartSegment[] _segments = [ new("Cloud", 42), new("On-Prem", 31), new("Edge", 18), new("Sonstige", 9), ]; } ``` ## DrylDrawer *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | ChildContent | `RenderFragment` | `—` | Drawer body when no Header/Content/Footer slots are used (brand, nav groups, footer links, etc.). | | Class | `String` | `null` | Extra CSS class(es) applied to the .sidebar root. | | Collapsed | `Boolean` | `false` | Collapsed (icon-only rail) state for Collapsible and Pinnable. Two-way bindable (`@bind-Collapsed`). | | CollapsedChanged | `EventCallback` | `—` | Two-way binding callback for Collapsed. | | CollapsedWidth | `String` | `null` | Collapsed rail width as a CSS length (e.g. `"56px"`). Defaults to the `--sidebar-collapsed-w` token. | | Content | `RenderFragment` | `—` | Scrolling navigation region. Switches to slotted layout. Falls back to ChildContent when null. | | Context | `DrylLayoutContext` | `null` | Cascaded from DrylLayout. Null if the drawer is used outside a layout. | | Footer | `RenderFragment` | `—` | Pinned footer region (settings, account) — stays put while Content scrolls. Switches to slotted layout. | | Header | `RenderFragment` | `—` | Pinned header region (brand, search) — stays put while Content scrolls. Switches to slotted layout. | | Mode | `SidebarMode` | `SidebarMode.Auto` | Operating mode. Default Auto (desktop column, mobile overlay). | | Open | `Boolean` | `false` | Overlay open state (used by Auto on mobile and by Flyout at all widths). Default `false`. | | OpenChanged | `EventCallback` | `—` | Two-way binding callback for Open. | | PersistStateKey | `String` | `null` | localStorage key used by Pinnable to persist the collapsed state across visits. Ignored for other modes. | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | | Width | `String` | `null` | Expanded width as a CSS length (e.g. `"300px"`). Drives the standalone / flyout width. Inside a DrylLayout the in-flow column width comes from `DrylLayout.SidebarWidth`. | ### enum SidebarMode - `Auto` — Flyout overlay on small screens, in-flow column on large ones (the historical default). The grid column appears at desktop widths; below ~1024px it becomes an off-canvas overlay toggled by Open. - `Static` — Always an in-flow column. Never overlays content and is never dismissable. - `Collapsible` — In-flow column that the user can collapse to an icon-only rail via Collapsed (`@bind-Collapsed`). - `Pinnable` — Like Collapsible, but the collapsed state is persisted to `localStorage` under PersistStateKey and restored on the next visit. - `Flyout` — Always an overlay (at every viewport width). Slides in over the content with a backdrop; closes on backdrop click or Escape and traps focus while open. ## DrylEmptyState *Feedback · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ActionContent | `RenderFragment` | `—` | Call-to-action slot (typically buttons). | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation. Use Thinking while a model populates the area (e.g. "AI is analysing your data…"). | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | ChildContent | `RenderFragment` | `—` | Optional richer description content (rendered after Description). | | Class | `String` | `null` | Extra CSS class(es) merged onto the empty-state's own classes. | | Description | `String` | `null` | Supporting description text. | | Icon | `String` | `null` | Optional icon name shown above the title. | | Size | `EmptyStateSize` | `EmptyStateSize.Medium` | Overall size of the empty state. | | Title | `String` | `null` | Headline text. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum EmptyStateSize - `Small` — Compact — for inline / in-panel empty states (e.g. a dropdown). - `Medium` — Default — for full-page or large-card empty states. ### Example ```razor
``` ## DrylErrorBoundary *Feedback · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes applied to the fallback surface. | | Ai | `AiState` | `AiState.None` | AI ambient state passed through to the fallback surface so a failed AI block reads in the shared aura vocabulary. Default None. | | Aura | `AiAura?` | `null` | AI aura variant forwarded to the fallback surface. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | ChildContent | `RenderFragment` | `—` | The content protected by the boundary. Exceptions thrown while rendering it are caught. | | Class | `String` | `null` | Extra CSS class(es) merged onto the fallback alert's own classes. | | Description | `String` | `"An unexpected error occurred while rendering this section."` | Optional explanatory line shown under the title. Default: a generic retry hint. | | FallbackContent | `RenderFragment` | `—` | Full override of the fallback surface. Receives the caught Exception. When set, the built-in DrylAlert (title / description / details / retry) is not rendered. | | MaximumErrorCount | `Int32` | `100` | Maximum number of errors the underlying boundary tolerates before it stops recovering. Mirrors `ErrorBoundary.MaximumErrorCount`. Default 100. | | OnRetry | `EventCallback` | `—` | Raised when the user clicks retry, before the boundary recovers — clear the failing condition (reset state, re-issue the request) here so the recovered render succeeds. | | RetryText | `String` | `"Try again"` | Label for the retry button. Default: "Try again". | | ShowDetails | `Boolean` | `false` | Reveals a collapsible panel with the full exception text. Enable this only in Development (e.g. `ShowDetails="@Env.IsDevelopment()"`) — never expose a stack trace to end users. | | ShowRetry | `Boolean` | `true` | Shows the retry button that recovers the boundary. Default `true`. | | Title | `String` | `"Something went wrong"` | Heading shown on the fallback surface. Default: "Something went wrong". | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
Trigger failure
@if (_boom) { throw new InvalidOperationException("Simulated render failure."); } The protected content rendered without errors.
@code { private bool _boom; } ``` ## DrylExpansion *Layout · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes (e.g. data-*). | | Ai | `AiState` | `AiState.None` | AI ambient state — adds rotating gradient border, glow, and reveal wash. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | ChildContent | `RenderFragment` | `—` | Body content revealed when the panel is open. | | Class | `String` | `null` | Extra CSS class(es) merged onto the expansion's own classes. | | Disabled | `Boolean` | `false` | If true, the panel cannot be toggled. | | HeaderTrailingContent | `RenderFragment` | `—` | Optional slot rendered between the title and the chevron (e.g. a badge). | | Icon | `String` | `null` | Optional leading icon name (see DrylIcon). | | Open | `Boolean` | `false` | Whether the panel is currently expanded. Supports two-way binding. | | OpenChanged | `EventCallback` | `—` | Fires when the user toggles the panel. | | Title | `String` | `null` | Header label shown to the left of the chevron. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor

Content for panel one. Any markup is welcome here — paragraphs, lists, nested components.

Content for panel two. The body animates open and closed without squeezing its content.

Content for panel three.

Content for panel four. Closed panels share their borders and form a flat connected list.

``` ## DrylFileUpload *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Accept | `String` | `null` | Accepted MIME types or extensions, e.g. `"image/*,.pdf"`. Passed directly to the file input. | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `false` | If true, the drop zone is greyed out and non-interactive. | | FilesChanged | `EventCallback>` | `—` | Raised each time the file selection changes (add or remove). | | HelperText | `String` | `null` | Helper text shown below the control. | | Label | `String` | `null` | Optional label shown above the drop zone. | | MaxFileSizeBytes | `Int64` | `10485760` | Maximum file size in bytes shown in the hint text. Does not enforce server-side limits — validate on upload. | | Multiple | `Boolean` | `false` | Allow selecting multiple files at once. | | RemoveLabel | `Func` | `null` | Builds the accessible name of a file's remove button from the file name. Leave `null` for the default `"Remove {name}"`; pass e.g. `name => $"{name} entfernen"` to localise it. | | ShowFileList | `Boolean` | `true` | Whether the component lists the selected files under the drop zone. Set it to `false` when the host renders its own list from FilesChanged. | | SubText | `String` | `null` | Hint line under Title. Leave `null` to derive it from Accept and MaxFileSizeBytes (e.g. `"image/*,.pdf · max 10.0 MB"`); an empty string hides the line. | | Title | `String` | `"Drag & drop or click to browse"` | Headline inside the drop zone. Override it to localise the component. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor @using Microsoft.AspNetCore.Components.Forms
@code { private List _files = []; private void HandleFiles(IReadOnlyList files) => _files = files.ToList(); } ``` ## DrylFormField *Inputs* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `—` | Pass-through HTML attributes on the field wrapper. | | ChildContent | `RenderFragment` | `—` | The input element. | | Class | `String` | `—` | Extra CSS class(es) merged onto the field root's own classes. | | For | `Expression>` | `—` | Expression identifying the bound field, e.g. `() => model.Name`. Enables validation display. | | Hint | `String` | `—` | Helper text shown below the input (replaced by validation errors). | | Label | `String` | `—` | Field label shown above the input. | | Required | `Boolean` | `—` | When true, appends a required marker to the label. | ### Example ```razor @using System.ComponentModel.DataAnnotations
Save @if (_saved) { Saved }
@code { private sealed class ProfileModel { [Required(ErrorMessage = "Name is required.")] public string? Name { get; set; } [Required(ErrorMessage = "Email is required.")] [EmailAddress(ErrorMessage = "Enter a valid email address.")] public string? Email { get; set; } [Range(18, 120, ErrorMessage = "You must be at least 18.")] public int Age { get; set; } = 18; } private readonly ProfileModel _model = new(); private bool _saved; private void HandleSubmit() => _saved = true; } ``` ## DrylGrid *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the grid container. | | ChildContent | `RenderFragment` | `—` | Grid content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the grid's own classes. | | Columns | `Int32?` | `null` | Fixed column count. When set, overrides auto-fit; counts 2–4 get automatic responsive step-down on narrow slots. Leave null for auto-fit. | | Gap | `StackGap` | `StackGap.Md` | Gap between cells, mapped to the `--sp-*` scale. Defaults to Md. | | MinItemWidth | `ItemWidth` | `ItemWidth.Md` | Minimum width an item may occupy before the grid wraps to fewer columns. Used only in auto-fit mode (when Columns is null). Defaults to Md (20rem). | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | ### enum DrylGrid.ItemWidth - `Xs` - `Sm` - `Md` - `Lg` ### enum DrylStack.StackGap - `None` - `Xs` - `Sm` - `Md` - `Lg` - `Xl` - `Xxl` ### Example ```razor @for (var i = 1; i <= 6; i++) { var cell = i; Cell @cell } ``` ## DrylHandoffTrace *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Class | `String` | `null` | Extra CSS class(es) merged onto the trace's own classes. | | Run | `DrylMultiAgentRun` | `null` | The multi-agent run to visualise (from `StartSequential` / `StartConcurrent`). | | ShowErrors | `Boolean` | `true` | Show a failed step's error alert inside its lane. Default true. | | ShowUsage | `Boolean` | `true` | Show each step's token-usage badges once the provider reports them. Default true. | | StepContent | `RenderFragment` | `—` | Optional per-lane content, e.g. the step's streamed answer. | ## DrylIcon *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes. | | AriaLabel | `String` | `null` | Accessible label. Leave null for a decorative icon (aria-hidden). | | Class | `String` | `null` | Extra CSS class(es) applied to the root. | | Name *(required)* | `String` | `""` | Icon name. See Icons for the available set. | | Size | `Int32` | `16` | Width and height in pixels. Default 16. | | StrokeWidth | `String` | `"2"` | SVG stroke-width. Default "2" (Lucide's native weight). | ### Example ```razor
@foreach (var name in DrylIcon.Icons.Keys) {
@name
}
``` ## DrylImage *Data · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes applied to the frame element. | | Ai | `AiState` | `AiState.None` | AI activity state. Drives the shared DRYL AI vocabulary, applied to the image area itself: Active washes a faint accent over it; Thinking drifts a violet→cyan cloud; Streaming sharpens the image from blur; Generated reveals it with a scale-in. Defaults to None — AI styling is opt-in. | | Alt *(required)* | `String` | `""` | Alternative text — required for accessibility and reused by the error fallback. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | BlurDuration | `Int32` | `2000` | Duration (ms) of the timed Streaming sharpen used when Progress is null. Default: 2000. | | Border | `Boolean` | `false` | Draw a 1px `var(--line)` border around the frame. | | Class | `String` | `null` | Extra CSS class(es) merged onto the image wrapper's own classes. | | FallbackIcon | `String` | `null` | Icon name shown in the error fallback. Default: `ImageOff`. | | FallbackSrc | `String` | `null` | Alternative image tried when Src fails to load before falling back to the icon. | | Fit | `ImageFit` | `ImageFit.Cover` | How the image fills its box (`object-fit`). Default: Cover. | | Height | `Int32?` | `null` | Intrinsic height in px. With Width it sets an automatic aspect-ratio. | | Lazy | `Boolean` | `true` | Lazy-load the image (`loading="lazy"`). Default: true. | | Position | `ImagePosition` | `ImagePosition.Center` | Focal point when cropped (`object-position`). Default: Center. | | Progress | `Int32?` | `null` | Streaming sharpen progress, 0–100. When set (and Ai is Streaming) the blur interpolates from full to zero as it rises. Leave null to run the sharpen on a timer over BlurDuration. | | Ratio | `ImageRatio` | `ImageRatio.Auto` | Forced aspect-ratio. Overrides the Width/Height ratio. Default: Auto. | | Rounded | `ImageRounded` | `ImageRounded.None` | Corner rounding, mapped to the `--r-*` scale. Default: None. | | Shadow | `Boolean` | `false` | Lift the frame with `var(--shadow-sm)`. | | ShowSkeleton | `Boolean` | `true` | Show the shimmer skeleton while loading. Default: true. | | Src *(required)* | `String` | `""` | Image URL. Required. | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | | Width | `Int32?` | `null` | Intrinsic width in px. With Height it sets an automatic aspect-ratio (prevents CLS) and caps the rendered width. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum DrylImage.ImageFit - `Cover` - `Contain` - `Fill` - `None` - `ScaleDown` ### enum DrylImage.ImagePosition - `Center` - `Top` - `Bottom` - `Left` - `Right` ### enum DrylImage.ImageRatio - `Auto` - `Square` - `Video` - `Portrait` - `Wide` ### enum DrylImage.ImageRounded - `None` - `Sm` - `Md` - `Lg` - `Full` ### Example ```razor
@foreach (var s in Enum.GetValues()) { @s.ToString() }
@if (_ai == AiState.Streaming) { }
@code { private AiState _ai = AiState.Thinking; private double _progress = 35; // Inline gradient stand-in for a freshly generated image. private const string Sample = "data:image/svg+xml," + "" + "" + "" + "" + ""; } ``` ## DrylInputMask *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation. | | AriaLabel | `String` | `null` | Accessible label — required when `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | CustomPattern | `String` | `null` | Custom mask pattern. Required when Mask is Custom. Use # for digit, A for letter. | | Disabled | `Boolean` | `false` | If true, the input is greyed out and non-interactive. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label shown above the input. | | LeadingIcon | `String` | `null` | Optional DrylIcon name rendered in the leading (left) slot. | | Mask | `MaskType` | `MaskType.Phone` | Predefined mask type. Use Custom and set CustomPattern for a custom mask. | | Placeholder | `String` | `null` | Placeholder text. Defaults to a visual representation of the mask pattern. | | State | `InputState` | `InputState.Default` | Visual state override (Default / Error / Success). | | Value | `String` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### enum MaskType - `Phone` — International phone number format: `+## ### ### ####`. - `Iban` — IBAN format: `AA## #### #### #### #### ##`. - `PostalCode` — German postal code (PLZ): five digits `#####`. - `CreditCard` — Credit/debit card number: `#### #### #### ####`. - `Custom` — Use the CustomPattern parameter to define the mask. ### Example ```razor
``` ## DrylInputNumber *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `—` | | | Ai | `AiState` | `—` | AI ambient state — controls the gradient border, glow, and reveal animation. | | AriaLabel | `String` | `—` | Accessible label — required if `Label` is not set. | | Aura | `AiAura?` | `—` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `—` | If true, the input is greyed out and non-editable. | | DisplayName | `String` | `—` | | | HelperText | `String` | `—` | Helper text shown below the input. Replaced by validation errors when present. | | Label | `String` | `—` | Optional label shown above the input. | | LeadingIcon | `String` | `—` | Optional icon name rendered inside the input on the left. | | Max | `TValue` | `—` | Maximum allowed value (maps to the HTML `max` attribute). | | Min | `TValue` | `—` | Minimum allowed value (maps to the HTML `min` attribute). | | Placeholder | `String` | `—` | Placeholder text shown when the input is empty. | | ShowStepper | `Boolean` | `—` | If true, ± buttons are shown to increment / decrement the value by `Step`. | | State | `InputState` | `—` | Visual state override. An active validation error overrides this. | | Step | `TValue` | `—` | Step size for the stepper buttons and the HTML `step` attribute. | | Value | `TValue` | `—` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `—` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### Example ```razor
@code { private int _count = 5; } ``` ## DrylInputOtp *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — every box keeps its ring and halo, and one light walks through the boxes in turn. | | AriaLabel | `String` | `null` | Accessible label — required when `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Digits | `Int32` | `6` | Number of digit boxes. Default is 6. | | Disabled | `Boolean` | `false` | If true, all boxes are greyed out and non-interactive. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label shown above the boxes. | | State | `InputState` | `InputState.Default` | Visual state override (Default / Error / Success). | | Value | `String` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### Example ```razor
@foreach (var s in Enum.GetValues()) { @s.ToString() }
@code { private AiState _ai = AiState.Thinking; } ``` ## DrylInputPassword *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation around the input. | | AriaLabel | `String` | `null` | Accessible label — required if `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `false` | If true, the input is greyed out and non-editable. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below the input. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label shown above the input. | | Placeholder | `String` | `null` | Placeholder text shown when the input is empty. | | State | `InputState` | `InputState.Default` | Visual state override. An active validation error overrides this. | | Value | `String` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### Example ```razor
@code { private string? _dummy; } ``` ## DrylInputText *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation around the input. | | AriaLabel | `String` | `null` | Accessible label — required if `Label` is not set and the input has no surrounding context. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `false` | If true, the input is greyed out and non-editable. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below the input. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label shown above the input. | | LeadingIcon | `String` | `null` | Optional icon name rendered inside the input on the left. | | Placeholder | `String` | `null` | Placeholder text shown when the input is empty. | | State | `InputState` | `InputState.Default` | Visual state override. An active validation error overrides this. | | TrailingIcon | `String` | `null` | Optional icon name rendered inside the input on the right. | | Type | `String` | `"text"` | HTML input type. Default "text". Common values: text, email, url, tel, search. | | Value | `String` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### Example ```razor
@code { private string? _plain; private string? _withHelper; } ``` ## DrylKbd *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | ChildContent | `RenderFragment` | `—` | Single-key content, e.g. `⌘K`. Ignored when Keys is set. | | Class | `String` | `null` | Extra CSS class(es) merged onto the kbd's own classes. | | Keys | `String[]` | `null` | The keys of a chord, each rendered in its own `<kbd>` and joined by Separator. When set, ChildContent is ignored. | | Separator | `String` | `"+"` | Separator shown between chord keys. Default `"+"`. | ### Example ```razor
``` ## DrylLayout *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | ChildContent | `RenderFragment` | `—` | Layout children (DrylAppBar, DrylDrawer, DrylMainContent). | | Class | `String` | `null` | Extra CSS class(es) applied to the .app-shell root. | | SidebarCollapsedWidth | `String` | `null` | Collapsed sidebar column width as a CSS length (e.g. `"56px"`). Overrides the `--sidebar-collapsed-w` token for this layout. | | SidebarWidth | `String` | `null` | Expanded sidebar column width as a CSS length (e.g. `"280px"`). Overrides the `--sidebar-w` token for this layout. Default keeps the token value (260px). | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | ## DrylLineChart *Data · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the chart root. | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | AriaLabel | `String` | `null` | Accessible summary label. Defaults to an auto-generated description. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | Class | `String` | `null` | Extra CSS class(es) merged onto the chart's own classes. | | Height | `Int32` | `260` | Chart height in pixels. Width always fills the container. | | Labels | `IReadOnlyList` | `null` | Category labels for the x-axis (and tooltip titles). | | Series | `IReadOnlyList` | `null` | The data series to plot. | | ShowGridLines | `Boolean` | `true` | Show horizontal gridlines at the y-ticks. | | ShowLegend | `Boolean?` | `null` | Legend visibility. Default (null) is automatic: shown for two or more series, hidden for one (the title/context already names a single series). | | ShowMarkers | `Boolean` | `false` | Mark every data point with a dot (8px, surface ring). | | ShowXAxis | `Boolean` | `true` | Show the x-axis label row. | | ShowYAxis | `Boolean` | `true` | Show the y-axis tick column. | | Smooth | `Boolean` | `false` | Smooth the line with a Catmull-Rom spline instead of straight segments. | | ValueFormat | `String` | `null` | Display format for axis ticks and tooltip values: either a .NET format string (e.g. "N0", "C0") or a template with a `{value}` placeholder where the number goes (e.g. "€{value} Tsd", "{value}%"), optionally with an inner .NET format ("{value:0.0}"). Display values are intentionally culture-aware. | | YMax | `Double?` | `null` | Fixed upper bound of the y-range. Default: automatic. | | YMin | `Double?` | `null` | Fixed lower bound of the y-range. Default: automatic. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor @code { private readonly string[] _months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun"]; private readonly ChartSeries[] _series = [ new("Revenue", new double[] { 4200, 5100, 4800, 6300, 5900, 7100 }), new("Cost", new double[] { 3100, 3300, 3600, 3500, 3900, 4100 }), ]; } ``` ## DrylList *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the list element. | | ChildContent | `RenderFragment` | `—` | The list items — normally a sequence of DrylListItem. | | Class | `String` | `null` | Extra CSS class(es) merged onto the list's own classes. | | Density | `ListDensity` | `ListDensity.Default` | Row spacing, mapped to the `--sp-*` scale. Default: Default. | | Dividers | `Boolean` | `false` | Draw a hairline `var(--line)` divider between adjacent items. Default: false. | | Ordered | `Boolean` | `false` | Render an ordered `<ol>` instead of a `<ul>`. Default: false. | | Variant | `ListVariant` | `ListVariant.Default` | Marker style shown to the left of each item that has no `Icon` or `Start` slot. Default: Default. | ### enum DrylList.ListDensity - `Compact` - `Default` - `Comfortable` ### enum DrylList.ListVariant - `Default` — Small DRYL dot in `var(--fg-dim)`. - `Disc` — Classic disc bullet (•). - `Decimal` — Auto-incrementing number (1. 2. 3.). - `None` — No marker — content sits flush. - `Dash` — En-dash bullet (–). ### Example ```razor Production environment Live Staging environment Preview environment Archived environment Read-only @if (_picked is not null) {

Selected: @_picked

} @code { private string? _picked; } ``` ## DrylListItem *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the `<li>` element. | | ChildContent | `RenderFragment` | `—` | The row's main content. May contain a nested DrylList for sub-items. | | Class | `String` | `null` | Extra CSS class(es) merged onto the list item's own classes. | | Disabled | `Boolean` | `false` | Dim the row and block interaction. Default: false. | | End | `RenderFragment` | `—` | Trailing slot (badge, action button) pinned to the right edge of the row. | | Icon | `String` | `null` | Optional leading DrylIcon name, shown in place of the list marker. | | OnClick | `EventCallback` | `—` | Raised when an interactive row is clicked or activated by keyboard. Supplying it makes the row interactive. | | Selected | `Boolean` | `false` | Highlight the row with the accent line and a glass tint. Default: false. | | Start | `RenderFragment` | `—` | Leading slot (avatar, checkbox, custom icon) — takes precedence over Icon and the marker. | ## DrylMainContent *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | ChildContent | `RenderFragment` | `—` | Page content (usually `@Body` in a layout component). | | Class | `String` | `null` | Extra CSS class(es) applied to the .main root. | ## DrylMarkdown *Surfaces · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | Class | `String` | `null` | Extra CSS class(es) merged onto the markdown root's own classes. | | Content | `String` | `null` | The Markdown source to render. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
Simulate stream
@code { private string _streamed = ""; private AiState _state = AiState.None; private const string _target = """ ## Summary The deployment **succeeded** in 42s across 3 regions. No regressions detected. - Latency p95: `118 ms` - Error rate: `0.01%` """; private async Task Simulate() { _state = AiState.Thinking; _streamed = ""; StateHasChanged(); await Task.Delay(500); _state = AiState.Streaming; foreach (var word in _target.Split(' ')) { _streamed += word + " "; StateHasChanged(); await Task.Delay(40); } _state = AiState.Generated; StateHasChanged(); await Task.Delay(1400); // A real completion settles back to None — the aura dissolves and the // markdown glides back into its bare layout. _state = AiState.None; StateHasChanged(); } } ``` ## DrylMarkdownEditor *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — one aura around the whole editor; while Streaming the preview shows the document arriving. | | AriaLabel | `String` | `null` | Accessible label of the source — required if `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Class | `String` | `null` | Extra CSS class(es) merged onto the editor's root. | | Disabled | `Boolean` | `false` | If true, the source cannot be edited and the toolbar is disabled. The view switch stays usable. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below the editor. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label shown above the editor. | | Placeholder | `String` | `null` | Placeholder text shown while the source is empty. | | Rows | `Int32` | `8` | Initial visible row count of the source. Default 8. | | State | `InputState` | `InputState.Default` | Visual state override. An active validation error overrides this. | | Texts | `MarkdownEditorTexts` | `null` | The editor's own words — switch, toolbar and empty preview. Defaults to English (Default). | | Value | `String` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | | View | `MarkdownEditorView` | `MarkdownEditorView.Editor` | Which view is shown. Supports two-way binding via `@bind-View`. | | ViewChanged | `EventCallback` | `—` | Fires when the user changes the view with the switch. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### enum MarkdownEditorView - `Editor` — The Markdown source, editable. - `Preview` — The same Markdown, rendered. ### Example ```razor
@code { private string _body = """ ## What's new The editor keeps **one string** and shows it two ways: - the source, with a formatting toolbar - the rendered preview > Press Enter inside a list and the next item starts by itself. ```csharp ``` """; } ``` ## DrylMenu *Actions* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the outer anchor element. | | Block | `Boolean` | `false` | If true, the anchor div stretches to full width of its container. | | Class | `String` | `null` | Extra CSS class(es) merged onto the menu's popover anchor. | | Items | `RenderFragment` | `—` | Menu body — place DrylMenuItem components here. | | Label | `String` | `null` | Accessible label for the menu panel (aria-label). | | Placement | `MenuPlacement` | `MenuPlacement.BottomStart` | Where the panel opens relative to the trigger. | | Trigger | `RenderFragment` | `—` | Content that opens the menu — typically a DrylButton. | ### enum DrylMenu.MenuPlacement - `BottomStart` — Below the trigger, left-aligned. - `BottomEnd` — Below the trigger, right-aligned. - `TopStart` — Above the trigger, left-aligned. - `TopEnd` — Above the trigger, right-aligned. ### Example ```razor
Actions Edit Duplicate Export
@if (_log.Any()) {

Last: @_log.Last()

} @code { private readonly List _log = []; private void Log(string action) { _log.Add(action); if (_log.Count > 5) _log.RemoveAt(0); } } ``` ## DrylMenuItem *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes. | | ChildContent | `RenderFragment` | `—` | Label content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the menu item's own classes. | | Disabled | `Boolean` | `false` | If true, the item is shown but cannot be activated. | | Header | `String` | `null` | If set, renders as a non-interactive section header instead of an action item. | | Icon | `String` | `null` | Icon name shown before the label. | | OnClick | `EventCallback` | `—` | Fired when the item is clicked or activated via keyboard. | | Separator | `Boolean` | `false` | If true, renders as a horizontal divider. All other parameters are ignored. | | Shortcut | `String` | `null` | Keyboard shortcut hint shown at the trailing edge (cosmetic only). | | Variant | `MenuItemVariant` | `MenuItemVariant.Default` | Visual variant. | ### enum DrylMenuItem.MenuItemVariant - `Default` — Default neutral action. - `Danger` — Destructive action — rendered in danger red. ## DrylMessage *Other · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | Author | `String` | `null` | Display name shown above the bubble and used to derive the avatar initials. | | Avatar | `RenderFragment` | `—` | Custom avatar content — overrides the default DrylAvatar. | | AvatarIcon | `String` | `null` | Icon name for the default avatar (falls back per role when omitted). | | AvatarSrc | `String` | `null` | Image URL for the default avatar. | | ChildContent | `RenderFragment` | `—` | Bubble content. Used when Text is null. | | Class | `String` | `null` | Extra CSS class(es) merged onto the message row's own classes. | | Markdown | `Boolean` | `false` | When true and Text is set, the text is rendered through `DrylMarkdown` (CommonMark + GFM, code blocks, raw HTML disabled). Default `false` so existing usages are unchanged. | | Role | `MessageRole` | `MessageRole.Assistant` | Author role — drives alignment and styling. | | ShowAvatar | `Boolean` | `true` | When true, shows an avatar beside the bubble. Default true. | | Text | `String` | `null` | Optional text content. When set it takes precedence over ChildContent. Combine with Markdown to render it as formatted Markdown — ideal for streaming LLM output. Leave null to use ChildContent as before. | | Timestamp | `String` | `null` | Optional pre-formatted timestamp shown next to the author. | | Typing | `Boolean` | `false` | When true, shows animated typing dots instead of the content. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum MessageRole - `User` — The human participant — right-aligned, accent-tinted bubble. - `Assistant` — The AI / agent — left-aligned, glass bubble (hosts AI aura when streaming). - `System` — A system / status line — centered, muted, no bubble chrome. ## DrylMorph *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Active | `Boolean` | `true` | Whether this instance currently claims Name. Set false on the entries of an overview that are not the morph target, so a long list neither duplicates a name nor pays to be measured. | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the rendered element. | | As | `String` | `"div"` | The HTML tag rendered as this component's root. Defaults to `"div"`; set it so the hull is valid where it sits (`"li"`, `"tr"`, `"article"`, …). | | ChildContent | `RenderFragment` | `—` | The content that morphs. | | Class | `String` | `null` | Extra CSS class(es) on the rendered element. The hull renders no class of its own, so this is the only class it carries. | | Name | `String` | `null` | The morph ID. Two elements carrying the same name before and after a state change are treated as the same object, and the second is animated from where the first was. A name must be unique among the elements live at the moment the morph starts; see Active. | | Style | `DrylMorphStyle` | `DrylMorphStyle.Glide` | How much of the "Depth Glass" vocabulary this element gets while it moves — Glide (default) or DepthGlass. Ignored while the element claims no name. | ### enum DrylMorphStyle - `Glide` — Shape and position only — the element glides to its new geometry, and when it changes size the face it had before travels with it and fades out, so the two views read as one object growing. A move with no change of size costs nothing but the move itself, which is why this tier is still cheap enough for high-frequency interactions such as a table row reorder. - `DepthGlass` — The full choreography — the surface passes through translucency and blur on the way and arrives clear. Reserved for low-frequency, high-meaning moves such as a card opening into a detail view or a dialog handoff. ### Example ```razor @using DRYL.Components.Motion @inject IDrylMorph Morph @if (_open is null) { Twenty rows, one transition name. Only the row being opened is Active, so the browser snapshots one element instead of twenty. @foreach (var row in Rows) { var current = row; @current Open } } else { @_open The row you pressed is the shape this panel grew out of. Back to the list } @code { private static readonly string[] Rows = Enumerable.Range(1, 20).Select(i => $"Signal {i:00} — nominal").ToArray(); private string? _open; // Which row is allowed to claim the name. Set before the transition starts, so the // "old" snapshot is taken of that row and of nothing else. private string? _opening; private async Task OpenAsync(string row) { _opening = row; StateHasChanged(); await Task.Yield(); // let the claim reach the DOM before the snapshot await Morph.RunAsync(() => { _open = row; StateHasChanged(); }); } private Task CloseAsync() => Morph.RunAsync(() => { _open = null; StateHasChanged(); }); } ``` ## DrylMultiSelect *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation. | | AriaLabel | `String` | `null` | Accessible label — required if `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `false` | If true, the control is greyed out and non-interactive. | | EmptyText | `String` | `null` | Text of an open list whose query matches no option. When set, wins over EmptyText. | | HelperText | `String` | `null` | Helper text shown below the control. Replaced by validation messages when present. | | Items | `IEnumerable` | `null` | The selectable options. | | Label | `String` | `null` | Optional label shown above the multi-select. | | MaxVisibleChips | `Int32` | `3` | Maximum number of chips shown before collapsing to "+N". | | Placeholder | `String` | `null` | Placeholder shown when nothing is selected. When set, wins over Placeholder. | | SearchFunc | `Func, IEnumerable>` | `null` | Filter replacing the default case-insensitive `Contains` on Label. Receives the trimmed, non-empty query and all items. | | SearchPlaceholder | `String` | `null` | Placeholder of the search field while values are picked. When set, wins over SearchPlaceholder. | | Searchable | `Boolean` | `false` | Turns the trigger into a chip input: typing opens the list and filters it over the options' labels, and the matching text is marked. | | SelectedValues | `IReadOnlyList` | `System.String[]` | Currently selected values. | | SelectedValuesChanged | `EventCallback>` | `—` | Raised when the selection changes. | | SelectedValuesExpression | `Expression>>` | `null` | Names the bound field for a surrounding `EditForm`; `@bind-SelectedValues` supplies it. With it, every change is reported to the `EditContext` and a validation message for the field replaces HelperText. | | State | `InputState` | `InputState.Default` | Visual state override. A validation message for the bound field overrides this. | | Texts | `MultiSelectTexts` | `MultiSelectTexts { Placeholder = Select options…, SearchPlaceholder = Search…, EmptyText = No results, NoOptions = No options, ListLabel = System.Func`2[System.String,System.String], Remove = System.Func`2[System.String,System.String], RemoveArmed = System.Func`2[System.String,System.String], Removed = System.Func`2[System.String,System.String], Results = System.Func`2[System.Int32,System.String] }` | Every word the field renders or announces of its own: translate with `MultiSelectTexts.Default with { … }`. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### Example ```razor
@code { private IReadOnlyList _tags = ["blazor", "dotnet"]; private IReadOnlyList _features = []; private static readonly SelectItem[] _tagItems = [ new("blazor", "Blazor"), new("dotnet", ".NET"), new("css", "CSS"), new("wasm", "WebAssembly"), new("ai", "AI"), new("oss", "Open Source"), ]; private static readonly SelectItem[] _featureItems = [ new("dark-mode", "Dark mode"), new("ai-mode", "AI mode"), new("animations", "Animations"), new("a11y", "Accessibility"), new("typescript", "TypeScript"), ]; } ``` ## DrylNavGroup *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | ChildContent | `RenderFragment` | `—` | Nav links and other section content. | | Class | `String` | `null` | Extra CSS class(es) applied to the .nav-section root. | | Collapsible | `Boolean` | `false` | When `true` the group is collapsible — children animate in/out when the header is clicked. Combine with DefaultExpanded to control initial state. | | DefaultExpanded | `Boolean` | `true` | Initial expansion state when Collapsible is `true`. Defaults to `true`. | | Href | `String` | `null` | Optional route. When set on a collapsible group the title becomes a `NavLink` to this href, and a separate chevron button controls collapse. Leave empty to use the whole row as the toggle. | | Icon | `String` | `null` | Optional DrylIcon name shown before the label in collapsible mode. | | Match | `NavLinkMatch` | `NavLinkMatch.Prefix` | How to match the current URL when Href is set. Defaults to Prefix. | | Title | `String` | `null` | Section label. For collapsible groups this is the toggle button text. | ## DrylNavLink *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the link element. | | ChildContent | `RenderFragment` | `—` | Link label. | | Class | `String` | `null` | Extra CSS class(es) applied to the link element. | | External | `Boolean` | `false` | When true, renders a plain external `<a target="_blank">` instead of a `NavLink`. | | Href *(required)* | `String` | `""` | Navigation target. For internal routes use a relative path; for external links combine with External. | | Icon | `String` | `null` | DrylIcon name displayed before the label. Optional. | | Match | `NavLinkMatch` | `NavLinkMatch.Prefix` | How to match the current URL when deciding active state. Default Prefix. | | Sub | `Boolean` | `false` | When `true`, renders the item with indentation and reduced height — intended for children inside a collapsible DrylNavGroup. | ## DrylNotifications *Feedback* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the anchor element. | | AriaLabel | `String` | `"Notifications"` | Accessible label for the panel. Default "Notifications". | | Aura | `AiAura?` | `null` | AI aura variant applied to AI-provenance notification items. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). Note: each item's AI state comes from its own Ai and is fixed for the item's lifetime (items are added/removed, never transitioned), so there is no per-item graceful exit — only the variant is scoped here. | | Class | `String` | `null` | Extra CSS class(es) merged onto the notifications anchor's own classes. | | EmptyText | `String` | `"No new notifications."` | Empty-state description. Default "No new notifications.". | | EmptyTitle | `String` | `"All caught up"` | Empty-state heading. Default "All caught up". | | Items | `IReadOnlyList` | `null` | Controlled notification list. When set, the component renders these and raises the `On*` callbacks instead of mutating the IDrylNotificationService. Leave null to bind to the registered service. | | MaxBadgeCount | `Int32` | `99` | Unread counts above this show as "N+". Default 99. | | MaxHeight | `String` | `"360px"` | Max height of the scrollable list area (any CSS length). Default "360px". | | OnClear | `EventCallback` | `—` | Raised in controlled mode when "Clear all" is pressed. | | OnItemClick | `EventCallback` | `—` | Raised when a notification row is clicked (after it is marked read). | | OnMarkAllRead | `EventCallback` | `—` | Raised in controlled mode when "Mark all read" is pressed. | | OnMarkRead | `EventCallback` | `—` | Raised in controlled mode when a row should be marked read. | | OnRemove | `EventCallback` | `—` | Raised in controlled mode when a row is dismissed. | | Placement | `PopoverPlacement` | `PopoverPlacement.BottomEnd` | Where the panel opens relative to the bell. Default BottomEnd. | | ShowClearAll | `Boolean` | `true` | Shows the "Clear all" action in the panel header. Default true. | | Title | `String` | `"Notifications"` | Panel heading. Default "Notifications". | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum PopoverPlacement - `BottomStart` — Below the trigger, left-aligned. - `BottomEnd` — Below the trigger, right-aligned. - `TopStart` — Above the trigger, left-aligned. - `TopEnd` — Above the trigger, right-aligned. ### Example ```razor @code { // Entries with a non-None Ai carry the shared AI aura, so asynchronous AI results stand out // in the inbox exactly like AI activity elsewhere in the library. private readonly List _items = [ new() { Title = "Your report was generated", Message = "The Q2 revenue summary is ready to view.", Ai = AiState.Generated, Timestamp = DateTimeOffset.Now.AddMinutes(-1) }, new() { Title = "Agent is summarizing 142 tickets", Message = "This may take a moment…", Ai = AiState.Thinking, Timestamp = DateTimeOffset.Now.AddMinutes(-2) }, new() { Title = "Draft reply ready", Message = "3 suggestions based on the thread.", Ai = AiState.Generated, Read = true, Timestamp = DateTimeOffset.Now.AddHours(-1) }, ]; } ``` ## DrylPagination *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes applied to the outermost element. | | Class | `String` | `null` | Extra CSS class(es) merged onto the pagination bar's own classes. | | CurrentPage | `Int32` | `0` | Zero-indexed current page. | | CurrentPageChanged | `EventCallback` | `—` | Raised with the new zero-indexed page when the user clicks a page button. Pairs with CurrentPage for `@bind-CurrentPage`. | | PageSize | `Int32` | `20` | Number of items per page. | | PageSizeChanged | `EventCallback` | `—` | Raised with the new page size when the user picks a size in the selector. Pairs with PageSize for `@bind-PageSize`. | | PageSizeOptions | `IReadOnlyList` | `<>z__ReadOnlyArray`1[System.Int32]` | Available page-size choices in the selector. Default: `[10, 20, 50, 100]`. A PageSize that is not among them is listed as well, in ascending order, so the selector always shows the current size. | | ShowPageSize | `Boolean` | `true` | Hides the page-size selector when false. Default true. | | TotalCount | `Int32` | `0` | Total number of items across all pages. | ### Example ```razor
@code { private int _page; private int _size = 24; } ``` ## DrylPopover *Surfaces* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the anchor element. | | Block | `Boolean` | `false` | If true, the anchor stretches to its container's full width. | | Class | `String` | `null` | Extra CSS class(es) merged onto the popover anchor's own classes. | | CloseOnClickOutside | `Boolean` | `true` | Close the panel when the user clicks outside it. Default true. | | CloseOnEscape | `Boolean` | `true` | Close the panel when Escape is pressed inside it. Default true. | | MatchTriggerWidth | `Boolean` | `false` | If true, the panel matches the trigger's width (dropdowns / selects). | | OnClose | `EventCallback` | `—` | Fires after the panel closes. | | OnKeyDown | `EventCallback` | `—` | Raised for every keydown on the panel — lets a consumer add its own keyboard navigation. | | OnOpen | `EventCallback` | `—` | Fires after the panel opens. | | Open | `Boolean` | `false` | Whether the panel is open. Supports two-way binding. | | OpenChanged | `EventCallback` | `—` | Fires when the open state changes. | | PanelAriaLabel | `String` | `null` | ARIA label for the panel. | | PanelContent | `RenderFragment` | `—` | The floating panel body. | | PanelRole | `String` | `null` | ARIA role for the panel (e.g. "menu", "listbox", "dialog"). | | Placement | `PopoverPlacement` | `PopoverPlacement.BottomStart` | Where the panel opens relative to the trigger. | | Surface | `Boolean` | `true` | Whether the panel paints the default glass surface. Set false to supply your own. | | TriggerContent | `RenderFragment` | `—` | The clickable trigger. | | TriggerTogglesOpen | `Boolean` | `true` | When true, clicking the trigger toggles the panel. Set false when the consumer drives the open state itself (e.g. inputs with their own keyboard/click logic). | ### enum PopoverPlacement - `BottomStart` — Below the trigger, left-aligned. - `BottomEnd` — Below the trigger, right-aligned. - `TopStart` — Above the trigger, left-aligned. - `TopEnd` — Above the trigger, right-aligned. ### Example ```razor Open popover
Quick actions

Click outside or press Escape to dismiss.

Got it
@code { private bool _open1; } ``` ## DrylPresence *Surfaces* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Appear | `Boolean` | `false` | If true, the child also animates in on its very first mount. Off by default. | | ChildContent | `RenderFragment` | `—` | The content whose mount/unmount is animated. | | Class | `String` | `null` | Extra CSS class(es) merged onto the wrapper element. | | OnExited | `EventCallback` | `—` | Fires once the exit animation has finished and the child has been removed. | | Speed | `PresenceSpeed` | `PresenceSpeed.Medium` | Playback speed of the enter/exit animation, mapped to the fixed duration tokens. | | Transition | `PresenceTransition` | `PresenceTransition.Fade` | Which enter/exit animation to play. | | Visible | `Boolean` | `false` | Whether the child is shown. Flipping to false plays the exit animation before unmount. | ### enum PresenceSpeed - `Medium` — Default speed — `--dur-med` (240 ms). - `Fast` — Snappy — `--dur-fast` (140 ms). For small, frequent UI. - `Slow` — Deliberate — `--dur-slow` (420 ms). For content reveals the user should notice, e.g. chat attachments. ### enum PresenceTransition - `Fade` — Opacity only. - `Scale` — Opacity plus a subtle scale (grows in, shrinks out). - `SlideUp` — Slides up on enter, down on exit. - `SlideDown` — Slides down on enter, up on exit. - `SlideLeft` — Slides in from the right, out to the right. - `SlideRight` — Slides in from the left, out to the left. ### Example ```razor
Replay @* @key remounts the component, so Appear="true" replays the enter animation each time you press Replay. *@

I animate in on mount because Appear is set.

@code { private int _key; } ``` ## DrylProgress *Feedback · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | AI ambient state — the cells show it: a sheen over the lit cells, a wave ahead of them while thinking, one flash when generated. | | AriaLabel | `String` | `null` | Accessible label for the progress bar. | | Aura | `AiAura?` | `null` | AI aura variant. Has no visible effect here: the bar draws no aura frame, its cells carry the state. | | Class | `String` | `null` | Extra CSS class(es) merged onto the progress field's own classes. | | Indeterminate | `Boolean` | `false` | When true, shows an animated sweep instead of a fixed fill. | | Label | `RenderFragment` | `—` | Custom label content — overrides LabelText. | | LabelText | `String` | `null` | Plain-text label shown at the leading edge of the label row. | | Max | `Double` | `100` | Maximum value. Default 100. | | ShowLabel | `Boolean` | `false` | When true, shows the percentage at the trailing edge of the label row. | | Size | `ProgressSize` | `ProgressSize.Medium` | Bar thickness. | | Value | `Double` | `0` | Current value, between 0 and Max. | | Variant | `ProgressVariant` | `ProgressVariant.Accent` | Colour treatment of the fill. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum ProgressSize - `Small` — Thin 4px bar. - `Medium` — Default 6px bar. - `Large` — Bold 10px bar. ### enum ProgressVariant - `Accent` — Violet→cyan accent gradient across the cells (default). - `Success` — Green gradient — completed / healthy progress. - `Warning` — Amber-to-orange gradient — near-limit / caution. - `Danger` — Red-to-rose gradient — failing / over-limit. ### Example ```razor
``` ## DrylRadio *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Disabled | `Boolean` | `—` | If true, this individual radio button is disabled regardless of group state. | | Label | `String` | `—` | Text shown next to the radio button. | | Value *(required)* | `TValue` | `—` | The value represented by this radio button. | ## DrylRadioGroup *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `—` | | | Ai | `AiState` | `—` | AI ambient state — the selected option shows it: its fill takes the AI colour and a light ring breathes around it. Leave it at None to follow a surrounding `DrylAiScope`. | | Aura | `AiAura?` | `—` | AI aura variant. Has no visible effect here: the group draws no aura frame, its selected option carries the state. | | ChildContent | `RenderFragment` | `—` | The DrylRadio`1 children. | | Disabled | `Boolean` | `—` | If true, all radio buttons in the group are disabled. | | DisplayName | `String` | `—` | | | HelperText | `String` | `—` | Helper text shown below the group. Replaced by validation errors when present. | | Label | `String` | `—` | Optional label shown above the group. | | Orientation | `RadioGroupOrientation` | `—` | Layout direction of the radio buttons. | | Value | `TValue` | `—` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `—` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum RadioGroupOrientation - `Vertical` — Radio buttons are stacked vertically (default). - `Horizontal` — Radio buttons are laid out horizontally in a wrapping row. ### Example ```razor
@foreach (var s in Enum.GetValues()) { @s.ToString() }
@code { private string? _plan = "pro"; private AiState _ai = AiState.Streaming; } ``` ## DrylRating *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — the stars show it: they take the AI colour, pulse while thinking, ripple while streaming and flash once when generated. | | AllowClear | `Boolean` | `true` | When true, clicking the currently selected star clears the value. Default true. | | AriaLabel | `String` | `null` | Accessible label — required when `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Has no visible effect here: the rating draws no aura frame, its stars carry the state. | | Disabled | `Boolean` | `false` | If true, the input is greyed out and non-interactive. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below the stars. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label displayed above the stars. | | MaxStars | `Int32` | `5` | Total number of stars. Default is 5. | | ReadOnly | `Boolean` | `false` | When true, the rating cannot be changed by the user (display-only). | | Value | `Int32?` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
@foreach (var s in Enum.GetValues()) { @s.ToString() }
@code { private int? _stars = 3; private AiState _ai = AiState.Thinking; } ``` ## DrylReconnectModal *Surfaces* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes applied to the root element. | | AttemptLabel | `String` | `"Attempt"` | Leading text of the attempt counter (before the current attempt number). | | Class | `String` | `null` | Extra CSS class(es) merged onto the overlay's own classes. Because Blazor matches attribute names case-insensitively, a consumer-supplied `class="..."` also binds here and is merged in — it does not clobber the component's identity classes. | | FailedText | `String` | `"We couldn't reconnect. The server may be unavailable."` | Message shown when the reconnection attempts have failed (retry is still possible). | | NextAttemptLabel | `String` | `"Next try in"` | Leading text of the "next attempt" line (before the seconds value). | | PausedText | `String` | `"Your session was paused."` | Message shown when the server paused the session and it can be resumed. | | ReconnectingText | `String` | `"Reconnecting to the server…"` | Message shown while the client is trying to re-establish the connection. | | RejectedText | `String` | `"Your session has expired."` | Message shown when the server rejected the connection and the session was lost. | | ReloadButtonText | `String` | `"Reload page"` | Label of the button that reloads the page in the `rejected` and `resume-failed` states. | | ResumeButtonText | `String` | `"Resume"` | Label of the button that resumes the session in the `paused` state. | | ResumeFailedText | `String` | `"We couldn't resume your session."` | Message shown when a paused session could not be resumed. | | RetryButtonText | `String` | `"Retry now"` | Label of the button that retries the connection in the `failed` state. | | SecondsSuffix | `String` | `"s"` | Suffix appended after the seconds value on the "next attempt" line (e.g. "s"). | | ShowAttemptCounter | `Boolean` | `true` | If `true` (default) the reconnecting state shows a live "Attempt X / Y" counter and a "next try in Ns" line, filled in by the framework. Set to `false` to hide the counter entirely. | ## DrylReveal *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the wrapper element. | | ChildContent | `RenderFragment` | `—` | The content to reveal. Direct children are the animated units. | | Class | `String` | `null` | Extra CSS class(es) merged onto the wrapper element. | | Once | `Boolean` | `true` | If true (default), reveal happens once; if false, content re-hides when scrolled away. | | Stagger | `Boolean` | `false` | If true, successive direct children animate in one after another (stagger). | | Threshold | `Double` | `0.15` | Fraction of the element that must be visible to trigger the reveal (0–1) — or of the viewport it must fill, for an element too tall to ever show that much of itself. With Stagger it applies to each child. | | Transition | `RevealTransition` | `RevealTransition.Rise` | Which entrance animation the children play. | ### enum RevealTransition - `Fade` — Opacity only. - `Rise` — Opacity plus an upward rise into place. - `ScaleIn` — Opacity plus a subtle scale-up into place. ### Example ```razor

I rise + fade in the first time I scroll into view.

``` ## DrylRouteTransition *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ShouldMorph | `Func` | `null` | Decides whether a navigation morphs, given the URI it is heading to. Null (the default) morphs every internal navigation. Return false to leave a navigation alone — a sign-out, or a jump to a part of the app that shares nothing with the current page. | | Timeout | `TimeSpan` | `00:00:01` | How long the previous frame may be held while waiting for the destination page to report a render, before the navigation completes without a morph. A destination that carries no DrylMorph, or that never finishes rendering, must not leave the user looking at a frozen frame. | ### Example ```razor @inject NavigationManager Nav @* The host is mounted once in MainLayout.razor: These two branches sit on two routes of the same page component: @@page "/components/route-transition" @@page "/components/route-transition/{Id:int}" Nothing else is wired up — the matching Name on both sides is the contract. *@ These are two routes, not two views — watch the address bar, and use the browser's Back button to morph back. @if (Id is null) { @foreach (var m in Missions) { var mission = m; @mission.Name @mission.Agency Open the detail route } } else if (Current is { } current) { @current.Name @current.Agency @current.Detail Back to the overview route } @code { /// Comes from the detail route's {Id:int}; null on the overview route. [Parameter] public int? Id { get; set; } private record Mission(int Id, string Name, string Agency, string Detail); private static readonly Mission[] Missions = [ new(1, "Voyager 1", "NASA", "Launched in 1977 and still returning data from interstellar space, from an instrument bay designed before the personal computer."), new(2, "Rosetta", "ESA", "Chased a comet for ten years, then dropped a lander onto it — the first spacecraft to orbit a comet's nucleus."), new(3, "Hayabusa 2", "JAXA", "Collected samples from an asteroid's subsurface and returned them to a desert in South Australia.") ]; private Mission? Current => Missions.FirstOrDefault(m => m.Id == Id); } ``` ## DrylScrollArea *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the scroll container. | | ChildContent | `RenderFragment` | `—` | Scrollable content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the scroll area's own classes. | | Horizontal | `Boolean` | `false` | When true, the area scrolls horizontally instead of vertically. | | MaxHeight | `String` | `null` | Maximum height (any CSS length, e.g. `"400px"`). Above it, the area scrolls vertically. | | MaxWidth | `String` | `null` | Maximum width (any CSS length). Above it, a Horizontal area scrolls horizontally. | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | ### Example ```razor
@for (var i = 1; i <= 14; i++) {
Card @i
}
``` ## DrylSegment *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ChildContent | `RenderFragment` | `—` | Custom segment content, rendered in place of Label. | | Disabled | `Boolean` | `—` | If true, this segment is unselectable and skipped by keyboard navigation. | | Icon | `String` | `—` | Optional leading icon name (see DrylIcon). | | Label | `String` | `—` | Text shown in the segment. Optional when ChildContent is supplied. | | Value *(required)* | `TValue` | `—` | The value this segment selects. Required. | ## DrylSegmentedControl *Inputs* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `—` | Pass-through HTML attributes on the track element. | | AriaLabel | `String` | `—` | Accessible label for the group (read by screen readers). | | Block | `Boolean` | `—` | If true, the control stretches to fill its container and segments share the width equally. | | ChildContent | `RenderFragment` | `—` | The DrylSegment`1 declarations. | | Class | `String` | `—` | Extra CSS class(es) on the track. | | Disabled | `Boolean` | `—` | If true, every segment is disabled. | | Size | `SegmentedSize` | `—` | Control size. | | Value | `TValue` | `—` | The currently selected value. Supports two-way binding via `@bind-Value`. | | ValueChanged | `EventCallback` | `—` | Fires when the user selects a different segment. | ### enum SegmentedSize - `Small` — Compact control (30px tall). - `Medium` — Default control (38px tall). - `Large` — Roomy control (46px tall). ### Example ```razor
Selected: @_view
@code { private string _view = "list"; } ``` ## DrylSelect *Other · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation. | | AriaLabel | `String` | `null` | Accessible label — required if `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `false` | If true, the select is greyed out and non-interactive. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below the select. Replaced by validation errors when present. | | Items | `IEnumerable` | `null` | The selectable options. | | Label | `String` | `null` | Optional label shown above the select. | | Placeholder | `String` | `null` | Placeholder text shown when no item is selected. | | State | `InputState` | `InputState.Default` | Visual state override. An active validation error overrides this. | | Texts | `SelectTexts` | `SelectTexts { NoOptions = No options, ListLabel = System.Func`2[System.String,System.String] }` | Every word the select renders of its own: translate with `SelectTexts.Default with { … }`. | | Value | `String` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ## DrylSkeleton *Feedback · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes applied to the root element. | | Ai | `AiState` | `AiState.None` | AI activity state. Drives the shared DRYL AI visual vocabulary: Thinking accelerates the shimmer; Streaming shifts it to a violet-cyan gradient, signalling AI content flowing into the placeholder; Generated fades the blocks out to reveal real content. Defaults to None — AI styling is opt-in. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | ChildContent | `RenderFragment` | `—` | Custom skeleton layout used when Variant is Custom. Use .skel, .skel-circle, and .skel-rect CSS classes for the individual shimmer blocks. | | Class | `String` | `null` | Extra CSS class(es) merged onto the skeleton's own classes. | | Label | `String` | `null` | Accessible label announced to screen readers. Defaults to a state-aware description. | | Lines | `Int32` | `3` | Number of shimmer lines rendered in Text and the body block of Card. Default: 3. | | Size | `SkeletonSize` | `SkeletonSize.Medium` | Physical size of the skeleton blocks. Default: Medium. | | Variant | `SkeletonVariant` | `SkeletonVariant.Line` | Visual shape of the placeholder. Default: Line. | | Width | `String` | `null` | CSS width for Line. Accepts any CSS value (e.g. "60%", "240px"). Null uses full container width. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum DrylSkeleton.SkeletonSize - `Small` - `Medium` - `Large` ### enum DrylSkeleton.SkeletonVariant - `Line` - `Text` - `Avatar` - `Card` - `Image` - `Custom` ### Example ```razor

Line

Text (4 lines)

Avatar

Image

Card

``` ## DrylSlider *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — the knob and the fill show it: a light ring breathes around the knob, the fill takes the state's colour. | | AriaLabel | `String` | `null` | Accessible label — required if `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Has no visible effect here: the slider draws no aura frame, its knob and fill carry the state. | | Disabled | `Boolean` | `false` | If true, the slider is greyed out and non-interactive. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below the slider. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label shown above the slider. | | Max | `Double` | `100` | Maximum value. | | Min | `Double` | `0` | Minimum value. | | ShowValue | `Boolean` | `true` | If true, the current numeric value is shown at the trailing edge of the label row. | | Step | `Double` | `1` | Step size between values. | | Value | `Double` | `0` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
@foreach (var s in Enum.GetValues()) { @s.ToString() }
@code { private double _volume = 72; private AiState _ai = AiState.Thinking; } ``` ## DrylSpacer *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes. | | Class | `String` | `null` | Extra CSS class(es) merged onto the spacer's own classes. | | Size | `StackGap?` | `null` | Fixed spacer size from the `--sp-*` scale. When null, the spacer grows to fill available space (`flex: 1`). | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | ### enum DrylStack.StackGap - `None` - `Xs` - `Sm` - `Md` - `Lg` - `Xl` - `Xxl` ### Example ```razor Left Right ``` ## DrylSparkline *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the SVG element. | | AriaLabel | `String` | `"Trend"` | Accessible label for the chart. | | Class | `String` | `null` | Extra CSS class(es) merged onto the sparkline's own classes. | | Data | `IReadOnlyList` | `null` | The data series to plot. | | Height | `Int32` | `32` | SVG height in pixels. | | Kind | `SparklineKind` | `SparklineKind.Line` | Render style. | | ShowLastDot | `Boolean` | `false` | When true (Line / Area), marks the final point with a dot. | | Width | `Int32` | `96` | SVG width in pixels. | ### enum SparklineKind - `Line` — Connected line through the data points. - `Area` — Filled area under a connected line. - `Bar` — Vertical bars, one per data point. ### Example ```razor
``` ## DrylSpinner *Feedback · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes applied to the root element. | | Ai | `AiState` | `AiState.None` | AI activity state. Engages the shared DRYL AI visual vocabulary — rotating gradient border, breathing glow, one-shot reveal wash. Defaults to None so AI styling is opt-in. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Class | `String` | `null` | Extra CSS class(es) merged onto the spinner's own classes. | | Label | `String` | `null` | Accessible label announced to screen readers. Defaults to a state-aware description ("Loading", "AI thinking…", etc.). | | Size | `SpinnerSize` | `SpinnerSize.Medium` | Physical size of the spinner. Default: Medium. | | Variant | `SpinnerVariant` | `SpinnerVariant.Ring` | Visual style of the spinner. Default: Ring. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum DrylSpinner.SpinnerSize - `Small` - `Medium` - `Large` ### enum DrylSpinner.SpinnerVariant - `Ring` - `Dots` - `Pulse` ### Example ```razor
Ring · Liquid
Dots · Goo
Pulse · Bloom
``` ## DrylSplitButton *Actions · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes applied to the split-button wrapper. | | Ai | `AiState` | `AiState.None` | AI ambient state for this component. Off by default. An explicit value always wins over a surrounding `DrylAiScope`. | | Aura | `AiAura?` | `null` | AI aura variant for this component. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately defaulting to Comet); set it to pin a variant. An explicit value always wins over the scope. | | Block | `Boolean` | `false` | If true, the control stretches to its container's full width. | | ChildContent | `RenderFragment` | `—` | The main button's label content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the split-button's own classes. | | Disabled | `Boolean` | `false` | Disables both segments. | | LeadingIcon | `String` | `null` | Optional icon shown before the main button's label. | | Loading | `Boolean` | `false` | Shows a spinner on the main button and makes it non-clickable. | | MenuAriaLabel | `String` | `"More actions"` | Accessible label for the caret button (icon-only). Default "More actions". | | MenuItems | `RenderFragment` | `—` | The dropdown's secondary actions — place DrylMenuItem components here. | | MenuLabel | `String` | `null` | Accessible label for the dropdown menu panel. | | MenuPlacement | `MenuPlacement` | `MenuPlacement.BottomEnd` | Where the caret menu opens relative to the caret. Default BottomEnd. | | OnClick | `EventCallback` | `—` | Primary action — raised when the main button is clicked. | | Size | `ButtonSize` | `ButtonSize.Medium` | Shared size of both segments. Default Medium. | | Variant | `ButtonVariant` | `ButtonVariant.Primary` | Shared visual style of both segments. Default Primary — it used to be Secondary, on the grounds that a split button is an outlined pair rather than the page's one filled call to action. That argument assumed Primary was the filled treatment; the fill moved to Bold and Primary is now quiet at rest, so the default follows it. Ask for Secondary explicitly to keep the previous look. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum DrylButton.ButtonSize - `Small` - `Medium` - `Large` ### enum DrylButton.ButtonVariant - `Primary` - `Secondary` - `Ghost` - `Danger` - `Bold` ### enum DrylMenu.MenuPlacement - `BottomStart` — Below the trigger, left-aligned. - `BottomEnd` — Below the trigger, right-aligned. - `TopStart` — Above the trigger, left-aligned. - `TopEnd` — Above the trigger, right-aligned. ### Example ```razor
Save Save & new Save & close Save as draft

Last action: @(_last ?? "—")

@code { private string? _last; } ``` ## DrylStack *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the stack container. | | Align | `StackAlign` | `StackAlign.Stretch` | Cross-axis alignment (`align-items`). Defaults to Stretch. | | ChildContent | `RenderFragment` | `—` | Stack content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the stack's own classes. | | CollapseBelow | `Breakpoint?` | `null` | When set on a Horizontal stack, the stack flips to vertical below this container width (container-query driven). No effect on a vertical stack. Defaults to null (never collapses). | | Direction | `StackDirection` | `StackDirection.Vertical` | Main-axis direction. Defaults to Vertical. | | Gap | `StackGap` | `StackGap.Md` | Spacing between children, mapped to the `--sp-*` scale. Defaults to Md (12px). | | Justify | `StackJustify` | `StackJustify.Start` | Main-axis distribution (`justify-content`). Defaults to Start. | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | | Wrap | `Boolean` | `false` | When true, children wrap onto multiple lines once they overflow. | ### enum Breakpoint - `Sm` — 480px — phone landscape / small slots. - `Md` — 768px — tablet. - `Lg` — 1024px — desktop. - `Xl` — 1280px — large. ### enum DrylStack.StackAlign - `Stretch` - `Start` - `Center` - `End` - `Baseline` ### enum DrylStack.StackDirection - `Vertical` - `Horizontal` ### enum DrylStack.StackGap - `None` - `Xs` - `Sm` - `Md` - `Lg` - `Xl` - `Xxl` ### enum DrylStack.StackJustify - `Start` - `Center` - `End` - `Between` - `Around` - `Evenly` ### Example ```razor @* Vertical (default). *@ Vertical One Two @* Horizontal with a wider gap. *@ Horizontal One Two ``` ## DrylStat *Data · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Class | `String` | `null` | Extra CSS class(es) merged onto the stat card's own classes. | | CountUp | `Boolean` | `false` | If true, the headline value tweens up to its new number instead of snapping — counting from 0 on first render and from the previous number on every change. The first number found in Value is animated; any prefix/suffix (currency symbol, unit, %) rides along unchanged, and the tween always lands on exactly the string you passed. Off by default; honours reduced motion. | | Delta | `String` | `null` | Delta text, e.g. "+12.4%". | | Direction | `DeltaDirection` | `DeltaDirection.None` | Trend direction — drives delta colour and arrow. | | Icon | `String` | `null` | Optional leading icon name. | | Label | `String` | `null` | Label / caption for the metric. | | Sparkline | `RenderFragment` | `—` | Optional sparkline slot, typically a DrylSparkline. | | Value | `String` | `null` | The headline value (pre-formatted). | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum DeltaDirection - `None` — No delta shown. - `Up` — Positive trend — green, up arrow. - `Down` — Negative trend — red, down arrow. - `Neutral` — Flat / unchanged — muted, no arrow. ### Example ```razor
@foreach (var s in Enum.GetValues()) { @s.ToString() }
@code { private readonly double[] _up = { 3, 4, 4, 6, 5, 8, 7, 10, 12 }; private AiState _ai = AiState.Generated; } ``` ## DrylStep *Other · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Ai | `AiState` | `AiState.None` | AI ambient state — puts the shared aura on the step's indicator circle. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | ChildContent | `RenderFragment` | `—` | Body content rendered by the parent DrylStepper when this step is active. | | Description | `String` | `null` | Optional secondary line shown below the label. | | Disabled | `Boolean` | `false` | If true, the step cannot be activated by clicking. | | Icon | `String` | `null` | Optional icon name that overrides the step-number in the indicator circle. | | Id | `String` | `null` | Stable identifier — required for two-way binding via `@bind-ActiveStep`. | | Label | `String` | `null` | Primary label shown in the step header. | | StepState | `StepState` | `StepState.Pending` | Visual and semantic state of this step. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum StepState - `Pending` — Step has not been reached yet. - `Active` — Step is currently active (overridden by the parent's active tracking). - `Completed` — Step has been completed successfully — shows a check icon. - `Error` — Step encountered an error — shows an X icon. ## DrylStepper *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ActiveStep | `String` | `null` | ID of the currently active step. Supports two-way binding. | | ActiveStepChanged | `EventCallback` | `—` | Fires when the user navigates to a different step. | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | AriaLabel | `String` | `null` | Accessible label for the stepper group (read by screen readers). | | ChildContent | `RenderFragment` | `—` | Step declarations. | | Class | `String` | `null` | Extra CSS class(es) on the root element. | | Orientation | `StepperOrientation` | `StepperOrientation.Horizontal` | Layout axis of the stepper. | ### enum StepperOrientation - `Horizontal` — Steps flow left-to-right with a horizontal connector line. - `Vertical` — Steps flow top-to-bottom with a vertical connector line on the left. ### Example ```razor

Input data has been validated and loaded.

The model is currently analysing the data.

@foreach (var s in Enum.GetValues()) { @s.ToString() }

Results will appear here.

@code { private AiState _stepAi = AiState.Thinking; } ``` ## DrylTab *Other · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Ai | `AiState` | `AiState.None` | AI ambient state — adds a rotating gradient ring around this single tab. | | ChildContent | `RenderFragment` | `—` | Body content rendered by the parent DrylTabs when this tab is active. | | Disabled | `Boolean` | `false` | If true, the tab is unclickable and skipped by keyboard navigation. | | Icon | `String` | `null` | Optional leading icon name (see DrylIcon). | | Id | `String` | `null` | Stable identifier — required for two-way binding via `@bind-Active`. | | Label | `String` | `null` | Header label shown in the tab strip. | | TrailingContent | `RenderFragment` | `—` | Optional slot rendered after the label (e.g. a counter badge). | ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ## DrylTable *Data · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `—` | Pass-through HTML attributes applied to the outermost element. | | Ai | `AiState` | `—` | AI ambient state for the table. Streaming and Generated additionally make newly-inserted rows fade in with an accent flash so users can see what the model just added. On a plain client-side list (not Virtualize, GroupBy or DataProvider) the insert is wrapped in a morph, so the surrounding rows glide down to make room instead of snapping. Rows need a stable identity for the morph — see RowIdSelector. Falls back to the flash-only entry under `prefers-reduced-motion`, during prerender and on a disconnected circuit. | | AllowColumnVisibility | `Boolean` | `—` | Shows the column-visibility menu in the toolbar (Settings icon → checkbox list). Requires ShowToolbar. | | AnimateReorder | `Boolean` | `—` | Animates row reorder (drag / Alt+Arrow) and click-to-sort with a morph (IDrylMorph): rows glide to their new position on the viscous easing instead of snapping. Opt-in and additive — off by default. Requires a plain client-side list (inactive when Virtualize, GroupBy or DataProvider is set) and falls back to an instant, morph-free update under `prefers-reduced-motion`, during prerender and on a disconnected circuit. Rows need a stable identity for the morph — see RowIdSelector. | | AriaLabel | `String` | `—` | Accessible label for the `<table>` element. | | Aura | `AiAura?` | `—` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Bordered | `Boolean` | `—` | If true (default), wraps the table in a glass card surface. Set to false when the table is already inside a DrylCard. | | BulkActions | `RenderFragment>` | `—` | Floating bulk-action bar shown above the toolbar when the current selection is non-empty. The context exposes the live selection as a read-only set. | | Class | `String` | `—` | Extra CSS class(es) merged onto the table root's own classes. | | CloneRow | `Func` | `—` | Optional snapshot factory used to edit an isolated working copy so Escape can cancel cleanly. When set, the table clones the row on edit-start and passes the clone to the column EditTemplates; on commit you receive both the original and the edited copy via OnRowCommitted. When null, edits are applied live to the original item and Escape only exits edit mode (no revert). | | Columns | `RenderFragment` | `—` | Declarative column definitions. Place DrylColumn`1 components inside. | | CompactBelow | `Breakpoint?` | `—` | Below this width of its own, the table is shown as a list of records instead of a grid: each record is a two-line tile — title, a trailing value and a meta line — that unfolds in place to show the remaining columns, the DetailTemplate and the RowActions. The width is the table's own, not the viewport's, so a table in a narrow panel becomes a list as well. Which column plays which part is set per column through CompactRole. Default Sm; set to `null` to keep the grid at every width. | | DataProvider | `Func>>` | `—` | Server-side loader. When set, Items is ignored and the table calls this callback whenever search/sort/filter/page state changes. The provider receives a DataRequest snapshot and returns the matching page plus the total count. | | DetailTemplate | `RenderFragment` | `—` | Renders an expandable detail panel for each row. When set, a leading expand-chevron column is added; clicking the chevron toggles the panel below the row. | | EditMode | `TableEditMode` | `—` | Granularity of inline editing — Row (default) edits every editable column of the row at once; Cell edits only the activated cell. | | Editable | `Boolean` | `—` | Enables inline editing. Columns that declare an EditTemplate become editable; double-clicking a row (or a cell in Cell mode) or pressing the pencil action enters edit mode. Enter commits, Escape cancels. Pair with OnRowCommitted and, for clean cancellation, CloneRow. Editing is ignored in server mode (DataProvider). | | EmptyContent | `RenderFragment` | `—` | Rendered when the current view is empty. Defaults to "No data". | | ExportFileName | `String` | `—` | File name used for the CSV export download. Default: `"export.csv"`. | | GroupBy | `Func` | `—` | Optional row grouping. When set, rows are grouped by the returned key (per page slice in client mode). Mutually exclusive with Virtualize — when both are set, Virtualize wins and a console warning is emitted. | | Height | `String` | `—` | Maximum height (any CSS length) for the scroll body. When set, the table body becomes vertically scrollable and the header sticks to the top of the scroll area. Required for Virtualize to function. | | Items | `IEnumerable` | `—` | The data items to display when no DataProvider is set. | | Loading | `Boolean` | `—` | If true, renders a loading spinner in place of rows. | | OnRowCancelled | `EventCallback` | `—` | Raised when the user cancels an inline edit (Escape or the cancel button). Carries the original row. | | OnRowClick | `EventCallback` | `—` | Raised when a data row is clicked. | | OnRowCommitted | `EventCallback>` | `—` | Raised when the user commits an inline edit (Enter or the commit button). See RowEditEventArgs`1 for how the original and edited items relate. | | OnRowReordered | `EventCallback` | `—` | Raised after the user moves a row via Reorderable. The table updates its own displayed order immediately; handle this callback to apply the same move to your backing collection. See RowReorderEventArgs for the index semantics. | | Page | `Int32` | `—` | Zero-indexed current page. Two-way bindable — the table updates this when the user navigates in the footer, and honours an externally set value. Defaults to 0 (first page). | | PageChanged | `EventCallback` | `—` | Raised when the user navigates to a different page (zero-indexed). Pairs with Page for `@bind-Page`. | | PageSize | `Int32` | `—` | Items per page. Set to 0 (default) to disable pagination. Two-way bindable — the table calls back on this when the user picks a new size in the footer. | | PageSizeChanged | `EventCallback` | `—` | Raised when the user picks a new page size in the pagination footer. | | PageSizeOptions | `IReadOnlyList` | `—` | Page-size options shown in the pagination footer. Default: `[10, 20, 50, 100]`. | | PersistStateKey | `String` | `—` | Persists sort, filters, page, page-size and column-visibility state under this key in `localStorage`. State is restored on first render. | | Reorderable | `Boolean` | `—` | Enables manual row reordering via a leading grip-handle column. Users drag the handle to move a row, or focus it and press `Alt`+`Arrow Up`/`Arrow Down` for a keyboard-accessible move. Reordering requires a plain client-side list — it is ignored (with a console warning) when Virtualize, GroupBy or DataProvider is set, and the handle is temporarily disabled while a sort is active (clear the sort to reorder again). Pair with OnRowReordered to persist the new order in your backing collection. | | ReorderableColumns | `Boolean` | `—` | Lets users drag a column header onto another to reorder columns, or focus a header and press `Alt`+`Arrow Left`/`Arrow Right` for a keyboard-accessible move (per-column opt-out via Reorderable; pinned columns never move). The order is persisted when PersistStateKey is set. | | ResizableColumns | `Boolean` | `—` | Lets users drag the right edge of a column header to resize it (per-column opt-out via Resizable). New widths are persisted when PersistStateKey is set. Backed by a tiny pointer-event helper, no npm. | | RowActions | `RenderFragment` | `—` | Trailing per-row action slot. When set, an actions column is appended to the right. Clicks inside the actions cell don't propagate to the row's click handler. | | RowIdSelector | `Func` | `—` | Stable per-row id used to build each row's morph name when AnimateReorder is on. Falls back to `GetHashCode()` — stable for records and immutable rows, but pass an explicit selector (e.g. a database key) when row instances mutate in place. Ids must be unique per row; the value is sanitized to letters, digits, `-` and `_`. | | SearchDebounceMs | `Int32` | `—` | Debounce in milliseconds for the search input. Default 200. | | SearchPlaceholder | `String` | `—` | Placeholder for the search input. Default: "Search…". | | SearchPredicate | `Func` | `—` | Optional override for the search predicate. Receives the row item and the current search text and returns true to keep the row. When null, the default predicate matches when any column with Searchable contains the search text (case-insensitive). | | Searchable | `Boolean` | `—` | Enables the global search input in the toolbar. Searches across all columns with `Searchable=true`. | | Selectable | `Boolean` | `—` | If true, a checkbox column is prepended and row selection is enabled. | | SelectedItems | `IReadOnlySet` | `—` | Two-way bindable set of currently selected items. | | SelectedItemsChanged | `EventCallback>` | `—` | Raised when the selection changes. | | ShowExport | `Boolean` | `—` | Shows a CSV export button in the toolbar. Requires ShowToolbar. The export honours the active search, filters and sort, includes only the currently visible columns, and covers the full filtered result set across all pages — not just the current page. In server mode (DataProvider) this issues a dedicated request with the current search/sort/filters but `Skip=0` / `Take=int.MaxValue`; backends that cannot serve an unbounded page should cap the take on their side. | | ShowToolbar | `Boolean` | `—` | Shows the toolbar above the table. Required when Searchable or extra toolbar content is used. | | StickyHeader | `Boolean` | `—` | If true (default), the header sticks to the top while the body scrolls. | | SummaryContent | `RenderFragment` | `—` | Optional KPI summary tiles rendered above the toolbar. | | ToolbarContent | `RenderFragment` | `—` | Optional extra content rendered in the toolbar (right-aligned area). | | Virtualize | `Boolean` | `—` | Renders the visible portion of the rows via `Microsoft.AspNetCore.Components.Web.Virtualization.Virtualize`. Requires a fixed Height (or an outer scroll container) so the body can scroll. Suppresses the pagination footer when active. Ignores grouping. | | VirtualizeItemSize | `Single` | `—` | Estimated row height in pixels for Virtualize. Default 44. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum Breakpoint - `Sm` — 480px — phone landscape / small slots. - `Md` — 768px — tablet. - `Lg` — 1024px — desktop. - `Xl` — 1280px — large. ### enum TableEditMode - `Row` — Editing the row puts every editable column into edit mode at once, with a single commit/cancel affordance for the whole row. Default. - `Cell` — Only the activated cell becomes editable; Enter commits and Escape cancels that one cell. ### Example ```razor @if (svc.Status == "healthy") { healthy } else if (svc.Status == "throttled") { throttled } else { failed } @(svc.LatencyMs.HasValue ? $"{svc.LatencyMs} ms" : "—") @code { private readonly List _services = [ new("auth-service", "prod", "healthy", 24, "12s ago"), new("billing-worker", "prod", "throttled", 142, "1m ago"), new("search-index", "staging", "healthy", 38, "3m ago"), new("media-pipeline", "prod", "failed", null, "4m ago"), ]; private record ServiceRow(string Name, string Environment, string Status, int? LatencyMs, string LastSeen); } ``` ## DrylTableKpi *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes. | | Class | `String` | `null` | Extra CSS class(es) merged onto the KPI tile's own classes. | | Delta | `String` | `null` | Optional delta / change string (e.g. "+8.2%" or "-12 ms"). | | DeltaKind | `KpiDeltaKind` | `KpiDeltaKind.Neutral` | Controls the color of the delta text. Positive = green, Negative = red, Neutral = muted. | | Label *(required)* | `String` | `""` | Short label shown above the value (e.g. "Requests / min"). | | SparklineData | `IReadOnlyList` | `null` | Raw data points for the sparkline mini-chart. Values are auto-normalised. Provide at least 2 points; fewer than 2 hides the sparkline. | | Trend | `KpiTrend` | `KpiTrend.None` | Direction arrow shown before the delta text. None omits the arrow. | | Value *(required)* | `String` | `""` | Formatted value string (e.g. "12,847" or "84 ms"). | ### enum DrylTableKpi.KpiDeltaKind - `Positive` - `Negative` - `Neutral` ### enum DrylTableKpi.KpiTrend - `Up` - `Down` - `None` ## DrylTabs *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Active | `String` | `null` | ID of the currently active tab. Supports two-way binding. | | ActiveChanged | `EventCallback` | `—` | Fires when the user switches tabs. | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | AnimateIndicator | `Boolean` | `true` | When true (default), a single gradient underline glides between tabs. Set false to fall back to a per-tab underline that fades in place. | | AriaLabel | `String` | `null` | Accessible label for the tablist (read by screen readers). | | ChildContent | `RenderFragment` | `—` | Tab declarations. | | Class | `String` | `null` | Extra CSS class(es) on the root. | ### Example ```razor
None Active Thinking Streaming Generated Proposed

Regular tab.

This tab is marked as AI-driven (state: @_aiDemo). Try the buttons above to switch through the six AI states.

Regular tab again.

@code { private AiState _aiDemo = AiState.Thinking; } ``` ## DrylTextarea *Other · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation around the textarea. | | AriaLabel | `String` | `null` | Accessible label — required if `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `false` | If true, the textarea is greyed out and non-editable. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below the textarea. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label shown above the textarea. | | Placeholder | `String` | `null` | Placeholder text shown when the textarea is empty. | | Rows | `Int32` | `4` | Initial visible row count. Default 4. | | State | `InputState` | `InputState.Default` | Visual state override. An active validation error overrides this. | | Value | `String` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ## DrylThemeProvider *Customization* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Mode | `DrylColorMode` | `DrylColorMode.System` | The color mode to start in — a startup value only: changing it on a mounted provider has no effect. Defaults to System (follow the OS). A persisted explicit user choice — made earlier via DrylColorMode) — wins over this parameter. To switch the mode at runtime, call DrylColorMode). | | Nonce | `String` | `null` | The Content Security Policy nonce of the current response. The provider writes an inline `<style>` and an inline `<script>`; under a policy without `'unsafe-inline'` pass the nonce here and both carry it. Leave null when your policy allows inline code or you have none. | | Theme | `DrylTheme` | `null` | The theme to apply. When omitted, Default (the signature DRYL look) is used. Passing a different theme later applies it, so the parameter can be bound to a field. A theme set at runtime through IDrylThemeService stays until this parameter itself changes. | ### enum DrylColorMode - `System` — Follow the operating-system preference (default). - `Dark` — Force the dark rendition. - `Light` — Force the light rendition. ## DrylTimePicker *Inputs · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | Ai | `AiState` | `AiState.None` | AI ambient state — controls the gradient border, glow, and reveal animation. | | AriaLabel | `String` | `null` | Accessible label — required when `Label` is not set. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | Disabled | `Boolean` | `false` | If true, the input is greyed out and non-interactive. | | DisplayName | `String` | `null` | | | HelperText | `String` | `null` | Helper text shown below. Replaced by validation errors when present. | | Label | `String` | `null` | Optional label shown above the input. | | Max | `TimeOnly?` | `null` | Latest selectable time. Null means no upper bound. | | Min | `TimeOnly?` | `null` | Earliest selectable time. Null means no lower bound. | | MinuteStep | `Int32` | `1` | Minute granularity shown in the panel. Common values: 1, 5, 10, 15, 30. | | Placeholder | `String` | `null` | Placeholder shown when no time is selected. Default "hh:mm". | | State | `InputState` | `InputState.Default` | Visual state override (Default / Error / Success). | | Value | `TimeOnly?` | `null` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum InputState - `Default` — Neutral state — default border, accent focus ring. - `Error` — Error state — danger-colored border and focus ring. Auto-applied when EditForm validation fails. - `Success` — Success state — success-colored border and focus ring. Set manually after a passing check. ### Example ```razor
``` ## DrylTimeline *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | AriaLabel | `String` | `"Timeline"` | Accessible label for the timeline. | | ChildContent | `RenderFragment` | `—` | The timeline items. | | Class | `String` | `null` | Extra CSS class(es) merged onto the timeline's own classes. | ### Example ```razor
Searching the knowledge base… The agent is executing a tool call.
@foreach (var s in Enum.GetValues()) { @s.ToString() }
@code { private AiState _ai = AiState.Thinking; } ``` ## DrylTimelineItem *Other · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Active | `Boolean` | `false` | Marks the item as the current step: highlighted marker and `aria-current="step"`. | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | AI ambient state — wraps the marker in the gradient aura. | | AriaLabel | `String` | `null` | Accessible name of the item's button. Leave `null` to use Title; set it when the item has no title. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet). | | ChildContent | `RenderFragment` | `—` | Body content for the event. | | Class | `String` | `null` | Extra CSS class(es) merged onto the item's own classes. | | Disabled | `Boolean` | `false` | Disables the item's button when OnClick is set. | | Icon | `String` | `null` | Optional marker icon. When omitted, a dot is shown. | | MarkerContent | `RenderFragment` | `—` | Free content for the marker, e.g. a letter or a tiny avatar. Wins over Number and Icon. | | Number | `Int32?` | `null` | A number in the marker — the step's position in a sequence. Wins over Icon. | | OnClick | `EventCallback` | `—` | Makes the item a step the user can jump to: the whole row becomes one native button. Without a delegate the item stays static, exactly as before. | | Timestamp | `String` | `null` | Optional pre-formatted timestamp. | | Title | `String` | `null` | Title line for the event. | | Variant | `TimelineVariant` | `TimelineVariant.Default` | Marker colour treatment. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum TimelineVariant - `Default` — Neutral glass marker. - `Accent` — Accent (violet) marker. - `Success` — Green marker — success / completed. - `Warning` — Amber marker — warning / pending. - `Danger` — Red marker — error / failed. ## DrylToast *Surfaces · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes (e.g. data-*). | | Ai | `AiState` | `AiState.None` | AI ambient state. Defaults to None. | | Aura | `AiAura` | `AiAura.Comet` | AI aura variant. Defaults to Comet (toasts render outside any `DrylAiScope`, so the variant is set explicitly rather than inherited). | | ChildContent | `RenderFragment` | `—` | Custom body slot — replaces Message when provided. | | Class | `String` | `null` | Extra CSS class(es) merged onto the toast's own classes. | | Duration | `Int32` | `5000` | Auto-dismiss duration in ms. Drives the progress bar length. 0 disables both. | | Icon | `String` | `null` | Icon name override. Empty string suppresses the icon entirely. | | Instance | `IDrylToastInstance` | `null` | Cascading toast instance — present when rendered by the provider. | | IsLeaving | `Boolean` | `false` | If true, plays the shrink-and-fade exit animation inside a `.toast-host`. The provider does not set it: `dryl.toast` plays the provider's leave. | | Message | `String` | `null` | Plain-text message body. Ignored if ChildContent is set. | | OnClose | `EventCallback` | `—` | Fired when the user clicks the close button. | | ShowCloseButton | `Boolean` | `true` | If true (default), shows a close (×) button. | | ShowProgress | `Boolean` | `true` | If true (default) and Duration > 0, shows the progress bar. | | Title | `String` | `null` | Optional toast title (stronger weight, above the message). | | Variant | `ToastVariant` | `ToastVariant.Default` | Semantic flavor — drives icon, accent color, glow. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### enum ToastVariant - `Default` — No semantic color — neutral glass surface, no icon chip. - `Success` — Confirmation / completion. Green accent + check icon. - `Warning` — Warning / non-blocking issue. Amber accent + triangle icon. - `Error` — Error / failure. Red accent + alert icon. - `Info` — Informational. Cyan accent + info icon. ### Example ```razor @inject IDrylToastService Toasts
Default Success Warning Error Info
@code { private DrylButton? _default, _success, _warning, _error, _info; // Origin: each toast grows out of the button that raised it. private static ToastOptions From(DrylButton? button) => new() { Origin = button?.Element }; private void ShowDefault() => Toasts.Show("Settings saved to your workspace.", From(_default)); private void ShowSuccess() => Toasts.ShowSuccess("Deployment finished in 12.4 s.", options: From(_success)); private void ShowWarning() => Toasts.ShowWarning("Cache miss rate is unusually high.", options: From(_warning)); private void ShowError() => Toasts.ShowError("Failed to reach the payments service.", options: From(_error)); private void ShowInfo() => Toasts.ShowInfo("A new version of DRYL is available.", options: From(_info)); } ``` ## DrylToastProvider *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Position | `ToastPosition` | `ToastPosition.BottomRight` | Anchor position for the toast stack. Default: BottomRight. | ### enum ToastPosition - `TopRight` — Top, anchored to the right edge. Stacks downwards (newest below). - `TopLeft` — Top, anchored to the left edge. Stacks downwards (newest below). - `TopCenter` — Top, horizontally centered. Stacks downwards (newest below). - `BottomRight` — Bottom, anchored to the right edge. Stacks upwards (newest on top). - `BottomLeft` — Bottom, anchored to the left edge. Stacks upwards (newest on top). - `BottomCenter` — Bottom, horizontally centered. Stacks upwards (newest on top). ## DrylToggle *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IReadOnlyDictionary` | `null` | | | AriaLabel | `String` | `null` | Accessible label — required when no visible label is rendered. | | ChildContent | `RenderFragment` | `—` | Rich label content. Takes precedence over `Label`. | | Disabled | `Boolean` | `false` | If true, the toggle is greyed out and non-interactive. | | DisplayName | `String` | `null` | | | Label | `String` | `null` | Plain-text label displayed to the left of the switch. | | Value | `Boolean` | `false` | | | ValueChanged | `EventCallback` | `—` | | | ValueExpression | `Expression>` | `null` | | ## DrylToolCall *Intelligence · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | Call status, mapped to the shared AI vocabulary: `Thinking` = running, `Streaming` = result arriving, `Generated` = just completed, `None` = idle / historical. | | ApproveLabel | `String` | `"Approve"` | Visible text of the Approve button. Default "Approve". | | Arguments | `String` | `null` | The call arguments, typically JSON. Shown in the collapsible body. | | Aura | `AiAura?` | `null` | AI aura variant. Leave `null` to inherit a surrounding `DrylAiScope` (ultimately Comet); the tool-call Ai stays explicit and is never taken from the scope. | | Class | `String` | `null` | Extra CSS class(es) merged onto the tool-call's own classes. | | Declined | `Boolean` | `false` | The call was denied by a human. With Ai at None the status pill reads "Declined" — a decision, not an error. | | DefaultExpanded | `Boolean` | `false` | Initial expanded state of the body. Default `false`. | | DenyLabel | `String` | `"Deny"` | Visible text of the Deny button. Default "Deny". | | Error | `String` | `null` | An error message; when set, replaces the result with a danger alert. | | OnApprove | `EventCallback` | `—` | Raised by the Approve button, which renders only while Ai is Proposed and this callback is bound. The card changes nothing itself: move Ai to Generated to accept (plays the accept wave from the button). | | OnDeny | `EventCallback` | `—` | Raised by the Deny button, which renders only while Ai is Proposed and this callback is bound. To end the card quietly, move Ai to None and set Declined. | | Result | `String` | `null` | The call result, typically JSON. Shown when no Error is set. | | Running | `Boolean` | `false` | The tool is still executing. Matters where Ai does not already say so: an approved call moves to Generated at once (the accept wave plays), yet runs only afterwards — while this is set, its status pill reads "Running" and the pill's indicator runs, without replaying the wave. Clear it when the result or error is in. | | State | `AiState` | `AiState.None` | Obsolete alias for Ai, kept so the rename is not a break. Setting it is equivalent to setting Ai; setting both on one component is not supported, because the markup order would decide. | | ToolName | `String` | `null` | The name of the tool / function being called. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor @code { private const string _args = """{ "city": "Berlin", "unit": "celsius" }"""; private const string _searchArgs = """{ "query": "refund policy" }"""; private const string _searchResult = """{ "hits": 3, "top": "policy/refunds.md" }"""; } ``` ## DrylToolCallGroup *Intelligence · AI-aware* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ActiveLabel | `String` | `null` | Name of the tool currently running. When set (and Ai is active) the collapsed row tickers this name instead of the count. Leave null when nothing is running. | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | Ai | `AiState` | `AiState.None` | Overall group state, mapped to the shared AI vocabulary: `Thinking`/`Streaming` while a call is running (the row breathes), `None` once every call has settled. | | ApproveAllLabel | `String` | `"Approve all"` | Visible text of the Approve all button. Default "Approve all". | | Aura | `AiAura?` | `null` | AI aura variant for the ambient pulse. Leave `null` to inherit a surrounding `DrylAiScope`, ultimately falling back to Aurora — the calm variant, chosen so a collapsed group stays discreet. | | ChildContent | `RenderFragment` | `—` | The individual DrylToolCall cards, revealed when the group is expanded. | | Class | `String` | `null` | Extra CSS class(es) merged onto the group's own classes. | | Count | `Int32` | `0` | Total number of tool calls represented, shown once the run settles ("N tool calls"). | | DefaultExpanded | `Boolean` | `false` | Initial expanded state of the group. Default `false` (collapsed). | | DenyAllLabel | `String` | `"Deny all"` | Visible text of the Deny all button. Default "Deny all". | | HasError | `Boolean` | `false` | When true a tool has failed; the group auto-expands so the error is not missed. | | OnApproveAll | `EventCallback` | `—` | Raised by the Approve all button (shown while Ai is Proposed and PendingCount is at least 2). | | OnDenyAll | `EventCallback` | `—` | Raised by the Deny all button (shown while Ai is Proposed and PendingCount is at least 2). | | PendingCount | `Int32` | `0` | Number of calls awaiting a human decision. While Ai is Proposed the row reads "N awaiting approval", and from two on the bulk buttons appear. | | State | `AiState` | `AiState.None` | Obsolete alias for Ai, kept so the rename is not a break. Setting it is equivalent to setting Ai; setting both on one component is not supported, because the markup order would decide. | ### enum AiAura - `Comet` — Default. Bold and eye-catching: an even hairline saum plus a bright travelling light ("comet") whose motion character changes per AiState. Best for one or two prominent AI surfaces on a page. - `Aurora` — Calmer alternative: a soft, blurred, flowing edge field instead of a travelling point. Reads well when many AI-aware surfaces are visible at once, so a dense page does not feel overloaded. Same states and colour weighting as Comet. ### enum AiState - `None` — No AI styling — component renders normally. - `Active` — Persistent AI mode — slow rotating gradient border, breathing glow. - `Thinking` — Tool call in flight — fast pulse on border and glow. - `Streaming` — Tokens streaming in — moderate pulse, slightly faster than idle. - `Generated` — One-shot reveal after generation completes (lift + accent wash). - `Proposed` — The AI is done and a human now has to accept or dismiss what it produced — a still, frozen aurora edge that rests until the host changes the state. Accepting moves the surface to Generated (with a wave from the point of the click), dismissing moves it to None. Set it only where an accept or dismiss action exists. ### Example ```razor
@foreach (var c in _calls) { }
Ask again
@code { // One model response, three calls: once one needs approval, every call of the response does. private List _calls = Fresh(); private int Pending => _calls.Count(c => c.State == AiState.Proposed); private void ApproveAll() { foreach (var c in _calls.Where(c => c.State == AiState.Proposed)) c.Approve(); } private void DenyAll() { foreach (var c in _calls.Where(c => c.State == AiState.Proposed)) c.Deny(); } private void Reset() => _calls = Fresh(); private static List Fresh() => new() { new("1", "archive_project", """{ "project": "Apollo" }"""), new("2", "revoke_access", """{ "team": "contractors" }"""), new("3", "notify_team", """{ "channel": "#apollo", "message": "Apollo is archived." }"""), }; private sealed class Call(string id, string tool, string args) { public string Id { get; } = id; public string Tool { get; } = tool; public string Args { get; } = args; public AiState State { get; private set; } = AiState.Proposed; public bool Declined { get; private set; } public void Approve() => State = AiState.Generated; public void Deny() { State = AiState.None; Declined = true; } } } ``` ## DrylTooltip *Feedback* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes (applied to the wrapper span). | | ChildContent | `RenderFragment` | `—` | The element that triggers the tooltip on hover/focus. | | Class | `String` | `null` | Extra CSS class(es) merged onto the tooltip wrapper's own classes. | | Delay | `TimeSpan` | `00:00:00` | How long the pointer or focus has to stay on the trigger before the bubble opens. Defaults to Zero (opens at once). Skipped while another tooltip is open or has only just closed, so moving along a toolbar waits once and then follows the pointer. Negative values count as zero. | | Placement | `TooltipPlacement` | `TooltipPlacement.Top` | Preferred side of the trigger. When the viewport has no room on that side, the bubble flips to the opposite side automatically. | | Text *(required)* | `String` | `""` | Text shown in the tooltip bubble. | ### enum DrylTooltip.TooltipPlacement - `Top` - `Bottom` - `Left` - `Right` ### Example ```razor
@foreach (var (icon, label) in Tools) { }

Move the pointer slowly along the toolbar: the first bubble waits 500 ms, then it glides from button to button without waiting again.

@code { private static readonly (string Icon, string Label)[] Tools = [ ("Copy", "Copy"), ("Download", "Download"), ("Search", "Search"), ("Settings", "Settings"), ("Sparkle", "Rewrite with AI"), ("X", "Discard draft"), ]; } ``` ## DrylTreeNode *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | ChildContent | `RenderFragment` | `—` | Child nodes. | | Disabled | `Boolean` | `false` | When true, the node cannot be selected or focused via click. | | Expanded | `Boolean` | `false` | Whether the node is expanded. Supports two-way binding. | | ExpandedChanged | `EventCallback` | `—` | Fires when the expanded state changes. | | Icon | `String` | `null` | Optional leading icon name. | | Text | `String` | `null` | Node label. | | Value | `object` | `null` | Value used for selection / two-way binding on the tree. | ## DrylTreeView *Data* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the root element. | | AriaLabel | `String` | `"Tree"` | Accessible label for the tree. | | ChildContent | `RenderFragment` | `—` | The root nodes. | | Class | `String` | `null` | Extra CSS class(es) merged onto the tree's own classes. | | SelectedValue | `object` | `null` | Value of the currently selected node. Supports two-way binding. | | SelectedValueChanged | `EventCallback` | `—` | Fires when the selected node changes. | ### Example ```razor
Selected @(_selected?.ToString() ?? "—")
@code { private object? _selected = "readme"; } ``` ## DrylTypo *Layout* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the rendered element. | | Align | `TypoAlign` | `TypoAlign.Start` | Text alignment. Defaults to Start (inherit). | | As | `String` | `null` | Overrides the rendered HTML tag (e.g. `"h1"`, `"span"`, `"label"`). When null, a semantic tag is chosen from Variant. | | ChildContent | `RenderFragment` | `—` | Text content. | | Class | `String` | `null` | Extra CSS class(es) merged onto the typography element's own classes. | | Color | `TypoColor` | `TypoColor.Default` | Foreground colour, mapped to the `--fg*` tokens. Default keeps the variant's own colour. | | Gradient | `Boolean` | `false` | When true, fills the text with the accent gradient (uses the shared `.gradient-text` primitive). | | Style | `String` | `null` | Extra inline declarations merged after the component's own; a plain `style="…"` attribute binds here too. On a property both set, yours wins. | | Variant | `TypoVariant` | `TypoVariant.Body` | Type step that drives size / weight / default colour. Defaults to Body. | ### enum DrylTypo.TypoAlign - `Start` - `Center` - `End` - `Justify` ### enum DrylTypo.TypoColor - `Default` - `Strong` - `Muted` - `Dim` - `Faint` ### enum DrylTypo.TypoVariant - `H1` - `H2` - `H3` - `H4` - `Lead` - `Body` - `Caption` - `Eyebrow` ### Example ```razor Strong — full-strength foreground. Muted — the default body voice. Dim — supporting, lower-emphasis text. Faint — the quietest readable step. ``` ## DrylValidationSummary *Other* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | AdditionalAttributes | `IDictionary` | `null` | Pass-through HTML attributes on the summary element. | | Class | `String` | `null` | Extra CSS class(es) merged onto the summary's own classes. | | Title | `String` | `"Please fix the following:"` | Optional heading shown above the message list. | ## DrylVoiceOrb *Agents* ### Parameters | Name | Type | Default | Description | | --- | --- | --- | --- | | Class | `String` | `null` | Extra CSS class(es) merged onto the orb. | | Run | `DrylVoiceRun` | `null` | The session the orb reflects. Without it the orb sits still. | | Size | `Int32` | `96` | Diameter in pixels. Default 96. |