Catalogue element
bry-rich-text
A markdown editor that looks like the text it makes: headings, lists, tasks, code, links and @mentions.
Settings
| Setting | Takes | Needed |
|---|---|---|
value | text, at most 50,000 characters | no |
placeholder | text, at most 200 characters | no |
label | text, at most 200 characters | no |
variant | document, comment, bare | no |
mentions | a list of at most 200: a record of value, label (needs value, label) | no |
disabled | true or false | no |
autofocus | true or false | no |
error | text, at most 200 characters | no |
attachments | true or false | no |
mentionAll | true or false | no |
places | true or false | no |
references | a list of at most 500: a record of value, label, create (needs value, label) | no |
bind | a record of collection, id, field (needs collection, id, field) | no |
hide | a list of at most 13: headings, lists, tasks, quote, code, table, maths, callout, toggle, divider, highlight, scripts, align | no |
comments | true or false | no |
activeComment | text, at most 128 characters | no |
resolvedComments | a list of at most 1,000: text, at most 128 characters | no |
removedComments | a list of at most 1,000: text, at most 128 characters | no |
Example
JSX
<bry-rich-text label={"Description"} value={"## Steps\n\n- Open a draft\n- Go offline"} mentions={[{"value":"ada","label":"Ada Lovelace"}]} />Renderer contact sheet
These paths will hold the checked light and dark captures.

