Layout tree (as in design/layout.json)
{
"pattern": "contact.terminal-mail-prompt",
"kind": "contact",
"slots": [
"title",
"body",
"contact",
"email"
],
"notes": "Fields are bare lines with a prompt label (\"from:\", \"subject:\", \"body:\"), no boxes; submit is \"[ send ]\".",
"tree": {
"el": "box",
"border": "all",
"maxCh": 80,
"children": [
{
"el": "box",
"mobile": "keep",
"dir": "row",
"gap": 2,
"pad": [
1,
3
],
"align": "center",
"justify": "between",
"wrap": true,
"border": "bottom",
"children": [
{
"el": "text",
"slot": "title",
"role": "label",
"weight": 700
}
]
},
{
"el": "box",
"gap": 3,
"pad": [
4,
4
],
"children": [
{
"el": "text",
"color": "textMuted",
"slot": "body",
"role": "small"
},
{
"el": "form",
"slot": "contact",
"fields": [
"name",
"email",
"message"
]
},
{
"el": "text",
"color": "link",
"slot": "email",
"role": "small"
}
]
}
]
}
}