Search
Loading...
Skip to content

Interface: ButtonOptions

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, suffix, and keyboard shortcut.

Properties#

PropertyTypeDescription
inputLabel?stringstring[]
inputLabelPosition?"top""left"
label?stringstring[]
labelAlignment?"left""center"
tooltip?stringstring[]
onClick?() => void-
variant?"regular""plain"
color?"accent""danger"
size?"normal""large"
icon?CustomIcon-
trailingIcon?CustomIcon-
isActive?boolean-
isSelected?boolean-
isDisabled?boolean-
isLoading?boolean-
loadingProgress?number-
suffix?Partial-
shortcut?stringKeyboard shortcut to display (e.g., ‘Meta+C’, ‘Meta+V’, ‘Alt+D’). Automatically renders OS-appropriate modifiers (⌘ on macOS, Ctrl on Windows/Linux). Hidden on small viewports.