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)

text_transform

String: Force the text to be transformed to one of the following formats:

  • "uppercase" – All letters become uppercase (e.g., EXAMPLE).

  • "lowercase" – All letters become lowercase (e.g., example).

  • "titlecase" – The first letter of each word is capitalized (e.g., Example Text).

  • "capitalize" – Only the first letter of the entire text is capitalized (e.g., Example text).

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