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/health

Re-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.

PropTypeRequiredConstraints
languagestringNoUp to 24 characters.
codestringYes1 to 4000 characters.
captionstringNoUp to 120 characters.