interface / @typed/ui/Button

ButtonOptions

Renderable state and host options for a native button.

Learn this UI primitive →

Package version
1.0.0-beta.13
Category
Component options
Since
1.0.0

Import

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

Signatures

export interface ButtonOptions extends Dom.HostOptions<HTMLButtonElement> {
    readonly content: Renderable.Any;
    readonly type?: Renderable.Any<ButtonType | null | undefined>;
    readonly disabled?: Renderable.Any<boolean | null | undefined>;
    readonly onclick?: Dom.EventHandlerInput<Dom.EventOf<HTMLButtonElement["onclick"]>>;
}

Property: content

The button’s visible and accessible content.

Property: disabled

Whether the native control is disabled.

Property: onclick

A real DOM click handler supplied by the consumer.

Property: type

The native type attribute; defaults to "button".

Other public imports

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

Source