Skip to main content

Interface: ButtonProps

Defined in: types.ts:466

Properties​

aria-describedby?​

optional aria-describedby?: string;

Defined in: types.ts:475


aria-label?​

optional aria-label?: string;

Defined in: types.ts:474


children​

children: ReactNode;

Defined in: types.ts:467


className?​

optional className?: string;

Defined in: types.ts:476


data-confirming?​

optional data-confirming?: string;

Defined in: types.ts:484

State hook for a host stylesheet, e.g. data-confirming on a delete.


disabled?​

optional disabled?: boolean;

Defined in: types.ts:472


id?​

optional id?: string;

Defined in: types.ts:468


part?​

optional part?: string;

Defined in: types.ts:473


type?​

optional type?: "button" | "submit";

Defined in: types.ts:470


variant?​

optional variant?: "primary" | "secondary" | "ghost" | "danger";

Defined in: types.ts:471

Methods​

onBlur()?​

optional onBlur(): void;

Defined in: types.ts:482

Used by Repeat to disarm a pending delete confirmation when focus leaves the button, so an abandoned confirmation does not sit armed on a row the enumerator has moved on from.

Returns​

void


onClick()?​

optional onClick(): void;

Defined in: types.ts:469

Returns​

void