TerminalPill data
A one-line terminal that types a command.
Props#
| Prop | Type | Default | Notes |
|---|---|---|---|
| text* | string | ||
| cps | number (1 to 200) | 22 | |
| delay | number (0 to 60) | 0.2 | |
| accent | color | "accent" |
* required. Every node also takes the common props: id, motion, start, place, scale, rotate, opacity, w, h. A colour is a palette name, never a value.
Parts#
Named parts can be restyled from outside without making a new component: "parts": { "root": { … } }.
| Part | Is a |
|---|---|
| root | box |
| command | text |
Example#
{"el": "TerminalPill", "text": "reelify cut talk.mp4 --post"}How it is made#
This component is plain data. Its whole definition is the tree below: copy it into a scene's components list under a new name to make your own version. See Custom components.
{
"el": "box",
"dir": "row",
"gap": 16,
"align": "center",
"radius": 18,
"pad": [18, 32],
"fill": "rgba(10,12,16,.92)",
"border": "rgba(128,128,140,.3)",
"borderW": 2,
"children": [
{"el": "text", "text": "$", "size": 30, "font": "mono", "weight": 700, "color": "muted"},
{
"el": "text",
"id": "command",
"text": "$text",
"size": 30,
"font": "mono",
"weight": 500,
"color": "$accent",
"motion": [{"do": "type", "cps": "$cps", "delay": "$delay", "cursor": true}]
}
]
}