Abyssale Developer Hub
  • Getting Started
  • Rest API
    • Overview - Rest API
    • Authentication
    • Designs
      • Design Details
    • Generation
      • Design information
      • Synchronous generation
        • Generate single image
      • Asynchronous generation
        • Generate Multi-Format images
        • Generate Multi-Format PDFs for Printing
        • Generate Multi-Page PDF for Printing
        • Generate Multi-Format Videos
        • Generate Multi-Format Animated GIFs
        • Generate HTML5 Banner Ads
          • ad network
      • Element properties
        • Root
        • Text
        • Button
        • Image
        • Logo
        • Shape
        • Rating
        • Illustration
        • QR Code
        • Video
        • Audio
      • Errors
    • Image Export
    • Fonts
    • Annexes
    • API Reference
  • Dynamic Images
    • Overview - Dynamic Images
    • Dynamic Image generation with URL
  • Webhooks
    • Overview - Webhooks
    • Events
      • Design
      • Banner
      • Global events
Powered by GitBook
On this page
  1. Rest API
  2. Generation
  3. Element properties

Button

Button component - Abyssale REST API

PreviousTextNextImage

Last updated 1 month ago

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

Available properties:

Property
Description

payload

color

background_color

Same as color

font font_weight

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)"

Same as Text Payload documentation
Same as Text Color documentation
Same as Text Font documentation
Go to Shadow documentation