interface / @typed/ui/Dialog

DescriptionOptions

Options for descriptive dialog text.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Dialog naming and description
Since
1.0.0

Import

import { DescriptionOptions } from "@typed/ui/Dialog";

Signatures

export interface DescriptionOptions extends Dom.HostOptions<HTMLParagraphElement> {
    readonly content: Renderable.Any;
    readonly id?: string;
}

Why

A stable id lets dialog content establish aria-describedby explicitly.

Ownership and lifetime

Options are inert; dynamic content follows the component Scope.

Property: content

Descriptive content.

Property: content: Why

Referenced text supplies context beyond the dialog’s accessible name.

Property: content: Ownership and lifetime

Dynamic content follows the description Scope.

Property: id

Optional id referenced by Content.describedBy.

Property: id: Why

A stable DOM relationship exposes the description to assistive technology.

Property: id: Ownership and lifetime

The id is reflected and retains no resources.

Other public imports

These import paths expose the same declaration. Each page retains its own public name and signature.

Source