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
Member of
Button

Import

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

Access Button.ButtonOptions through the imported Button export. Its declaration below describes the member.

This public exposure is a re-export. Its import path is supported; declaration documentation is shared with the other public exposures below.

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