ReferenceComponents
code
Code, a command or log lines, monospaced, with a copy button.
For developer tools. code shows a snippet, a command or a few log lines in a monospaced face on a dark plate, with its language and a copy button.
bashCopy
curl -H 'X-Rendel-Key: rd_pk_test_…' \
https://api.rendel.ai/healthRe-rendered in the browser from the SDK’s own scales. Not a screenshot.
When not to use it
For anything a person would read as prose, or for a value to copy — an account number, a booking reference — which is a key_value row with copy.
Props
Every block also carries type and a required fallback_text of 1 to 300 characters.
| Prop | Type | Required | Constraints |
|---|---|---|---|
language | string | No | Up to 24 characters. |
code | string | Yes | 1 to 4000 characters. |
caption | string | No | Up to 120 characters. |