Skip to content

DialogButton beta ​

Interface of @v12-engine/client/kit

ts
export interface DialogButton

A button of a dialog: its label, what pressing it answers and how it looks

Members ​

label ​

ts
label: string;

The words on the button

value ​

ts
value: string;

What the dialog's promise gives when this closes it

variant ​

ts
variant?: 'default' | 'primary' | 'danger';

How the button looks: the usual, the main choice (primary) or a risky one (danger). default when left out