The status node is a mutable inline node that represents the state of work.
1 2 3 4 5 6 7 8 9{ "type": "status", "attrs": { "localId": "abcdef12-abcd-abcd-abcd-abcdef123456", "text": "In Progress", "color": "yellow" } }
color also accepts a six-digit hexadecimal color identifier:
1 2 3 4 5 6 7 8 9{ "type": "status", "attrs": { "localId": "abcdef12-abcd-abcd-abcd-abcdef123456", "text": "On track", "color": "#123ABC" } }
status is an inline node in the inlines group.
status does not support any marks.
| Name | Required | Type | Value | Notes |
|---|---|---|---|---|
| type | ✔ | string | "status" | |
| attrs | ✔ | object | ||
| attrs.localId | string | unique identifier, auto-generated | ||
| attrs.text | ✔ | string | The textual representation of the status | |
| attrs.color | ✔ | string | "neutral" | "purple" | "blue" | "red" | "yellow" | "green" | a six-digit hex color, for example "#123ABC" | neutral is the default and represents the grey color |
Rate this page: