HTML and React blocks

Put your own HTML, JavaScript or a React component in a note, run it in a safe frame, choose its layout, and let the AI write or fix it.

An HTML block lets you put something interactive inside a note: a calculator, a chart, a landing section or a small widget. It is on every plan. It is not an app: it lives inside one note, has no database and cannot reach your account. For a full app with its own address and data, see Studio Cloud.

Add a block

  1. Type / and choose HTML block.

  2. Choose the Block type:

    • Static HTML: plain HTML and CSS. Scripts are removed, so it is the safest.

    • HTML + JS: HTML, CSS and JavaScript that run in the frame.

    • React: a React component.

  3. Write or paste your code. The Preview updates as you type, and Console shows messages and errors from your code.

  4. Choose Insert.

The block editor with a React component and its preview.

Choose Templates to start from a ready-made Dashboard, Landing section, Calculator or Card grid. Libraries lists what React blocks can import; nothing is loaded from the internet.

Layouts

The Layout decides how the block appears on the note and on its public page:

LayoutResult
BoxShown inside the text, where you placed it. You can set its Height, or leave it on Auto.
Full widthSpans the whole width of the page, edge to edge, between your paragraphs.
Full pageOn the public page the block is the page: full width at the top, without the title or other text. Comments and your profile stay below.

A note has at most one Full page block; choosing it on a second block turns the first into a box. With the full page layout you can tick Show the title above the block to keep the title above the block; either way the title is used for the browser tab and link previews. This layout is useful for a launch or sales page.

What a block can and cannot do

Blocks run in a sandbox on a separate address, so a block cannot read your account, cookies or stored data and cannot open pop-ups or leave the page.

Fix and create with AI

When a block shows an error, choose Fix with AI and the assistant tries to correct it. You can also open the AI on a block and describe what to change, or describe a new tool to create. The block is updated in place, and undo restores the previous code. The assistant declines requests to collect passwords or payment details. AI uses your monthly credits; see AI credits.

Next steps

To keep data, run server code or give the page its own address, build an app: Studio Cloud.

Related pages