Response format
type field; most have an id that is used as the key in interaction payloads.
Components
text
text
divider
divider
input
input
Renders a single-line text input. Submitted value is posted as Interaction: submitting the input posts
{ [id]: <value> }.{ "input-action-search": "<entered value>" }.textarea
textarea
Renders a multi-line text area. Follows the same interaction model as Interaction: submitting the textarea posts
input.{ "create-item-description": "<entered value>" }.dropdown
dropdown
Renders a select dropdown populated with a list of options. When the admin picks an option, its Interaction: selecting an option posts
id is posted back.Array of option objects, each with:
id— value posted when this option is selected.text— label displayed in the dropdown.
{ "create-item-project": "proj_abc" }.link
link
list
list
Renders a labeled list of items. Each item is either a selectable Interaction: selecting the first option posts
"option" or a "link". When the admin selects an option item, the item’s id is posted under the list’s id.Array of item objects. Each item is one of:
{ "type": "option", "id": <value>, "text": <string> }— a selectable row. When clicked, posts{ [list.id]: <item.id> }. Theidcan be a nested object (for example{ "item_id": 42, "project_id": "p1" }), and the whole object is posted back.{ "type": "link", "href": <string>, "text": <string> }— a row that opens a URL. No interaction is posted.
{ "link-item-list": { "item_id": 42, "project_id": "p1" } }.Conditional visibility
Any component accepts an optionalcondition object. When present, Sleekplan shows the component only when the value of the field identified by condition.value matches the string in condition.key.
create-item-project field currently holds the value "proj_abc".
Inline errors
To display a section-level error, return the first element with anerror key instead of a type key.
