interface / @typed/ui/Disclosure

ButtonOptions

Options for the native <summary> trigger.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Summary activation
Since
1.0.0

Import

import { ButtonOptions } from "@typed/ui/Disclosure";

Signatures

export interface ButtonOptions extends Dom.HostOptions<HTMLElement> {
    readonly content: Renderable.Any;
}

Why

Summary preserves built-in pointer, keyboard, and disclosure behavior.

Ownership and lifetime

Options are inert; dynamic content follows the rendered Scope.

Property: content

Visible summary content and accessible name.

Property: content: Why

Native summary content labels its containing details element.

Property: content: Ownership and lifetime

Dynamic content follows the trigger Scope.

Other public imports

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

Source