Button

Button component - Abyssale REST API

The button is basically a container (with a background or a border) containing a text.

Available properties:

Property
Description

background_color

Same as color

font_size

Number. Force font size in pixels (must be > 1)

line_height

Number. Force line height in percentage (must be > 1). This parameter is only applied when the text is a multiline one.

shadow_color shadow_blur shadow_offset_x shadow_offset_y

auto_resize

Boolean: Automatically adjusts the text size to fit within its container (If set to true, min_font_size must be defined)

min_font_size

Number: Specifies the minimum font size allowed when auto-resizing text. (auto_resize must be set to true)

Example:

"payload": "My click to action" "color": "#FFFFFF" "background_color": "#1A47FF"

"payload": "My click to action" "color": "cmyk(0,0,0,0,100)" "background_color":"cmyka(90,72,0,0,100)"

Last updated