Represents options for a button.
The ButtonOptions
interface provides a set of properties that control the
behavior and appearance of a button. These options include settings for the
input label, input label position, label, label alignment, tooltip, click
handler, variant, color, size, icon, trailing icon, active state, selected state,
disabled state, loading state, loading progress, and suffix.
Properties#
Property | Type |
---|---|
inputLabel? | string |
inputLabelPosition? | "top" |
label? | string |
labelAlignment? | "left" |
tooltip? | string |
onClick? | () => void |
variant? | "regular" |
color? | "accent" |
size? | "normal" |
icon? | CustomIcon |
trailingIcon? | CustomIcon |
isActive? | boolean |
isSelected? | boolean |
isDisabled? | boolean |
isLoading? | boolean |
loadingProgress? | number |
suffix? | Partial <Omit <ButtonOptions , "label" |