Skip to main content

We use the Miro create sticky note item API (https://developers.miro.com/reference/create-sticky-note-item) and send HTML in the content field. We notice that the CSS styling (ex:  font-style: italic; etc) is not being reflected in the sticky note in default display (however its visible when it is in “edit” state). This seems to be a regression since this was visible before in default display. 

Can you suggest a way in which we can use the Sticky Note API to create notes with stylised (italics, bold, underline etc) content?

Hi @Nikhil Sachdeva,

Thanks for reaching out!

To style the content on a sticky note, you should be able to pass the corresponding style/HTML tag directly in the content. For example, to create a bold sticky:

{
"data": {
"content": "<p><strong>Bold Sticky</strong></p>"
}
}

Or an italicised sticky note using <em></em> tags, etc. This should be created like this:

Let me know if this helps!

Thanks,
Will
 


Reply