Button
Button is an clickable component in snippet.
{
"id": "submit-button",
"type": "button",
"label": "Jump to example.com",
"action": {
"type": "url",
"url": "http://example.com"
},
"style": "primary"
}
Property | Type | Example | Description | Required |
---|---|---|---|---|
id | string | submit-button | ID of component. ID should be unique in snippet. | true |
type | string | button | Type of component. use button | true |
action | Object | { "type": "submit", "url": "https://example.com" } | true | |
action.type | string | "submit" | Type of action. "submit", "url" allowed. if type is "submit", it collects all input data, and send information to your snippet server. If type is url, open new page when button is clicked. | true |
action.url | string | https://example.com | URL to open page | true if type is url |
style | string | primary | Style of button. "primary", "outline", "link" allowed. Default is "primary" | false |
Updated 12 months ago