Button Schema
Last updated
Was this helpful?
Last updated
Was this helpful?
Schemas are structured definitions that describe the format, rules, and relationships of data within a system. They ensure consistency and validate inputs. In Beefree SDK, the Simple Button Schema defines how buttons are structured and styled within email, page, and popup builders. It enables customization of appearance, behavior, and interactivity — including hover effects, borders, padding, and click-through destinations. This documentation breaks down the schema's properties, requirements, and usage examples to help you implement and design button blocks effectively.
Reference the for more information.
This section summarizes the purpose and key characteristics of the Simple Button Schema.
Schema Name: Simple Button
Purpose: Defines clickable buttons with configurable text, links, styling, and hover states.
Related Schemas:
definitions.schema.json
(for padding, border-radius, border-width)
Below is the JSON Schema definition and a detailed breakdown of each property.
The following table lists the field descriptions along with their corresponding data type, whether or not they are mandatory, and their description.
text
string
The text of the button
label
deprecated (use text
)
string
The label of the button
href
string
The hyperlink reference
target
enum
The target of the hyperlink
size
integer
The size of the button text
color
string
The color of the button text
background-color
string
The background color of the button
padding-top
integer
The top padding of the button (0-60)
padding-right
integer
The right padding of the button (0-60)
padding-bottom
integer
The bottom padding of the button (0-60)
padding-left
integer
The left padding of the button (0-60)
contentPaddingTop
integer
The top content padding inside the button (0-60)
contentPaddingRight
integer
The right content padding inside the button (0-60)
contentPaddingLeft
integer
The left content padding inside the button (0-60)
contentPaddingBottom
integer
The bottom content padding inside the button (0-60)
hoverBackgroundColor
string
The hover background color of the button
hoverColor
string
The hover color of the button text
hoverBorderColor
string
The hover border color of the button
hoverBorderWidth
integer
The hover border width of the button (0-30)
locked
boolean
Whether the button is locked
border-radius
integer
The border radius of the button (0-60)
border-color
string
The border color of the button
border-width
integer
The border width of the button (0-30)
customFields
object
Custom fields
locked
boolean
Whether the module is locked
not available for single content addon
Reference an example of the schema in the following code snippet.
Consider the following when working with the Simple Button Schema in Beefree SDK:
Accessibility: Ensure button text clearly describes its action.
Consistency: Use padding and border settings to align button style with other components.
Interactivity: Customize hover states to enhance user experience.
Extensibility: Use customFields
for non-standard properties.
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No
No