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
Type
/and choose HTML block.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.
Write or paste your code. The Preview updates as you type, and Console shows messages and errors from your code.
Choose Insert.
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:
| Layout | Result |
|---|---|
| Box | Shown inside the text, where you placed it. You can set its Height, or leave it on Auto. |
| Full width | Spans the whole width of the page, edge to edge, between your paragraphs. |
| Full page | On 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.
Static HTML: scripts, forms, frames and files from other sites are removed. Links open in a new tab. Images can be your uploads or inline images.
HTML + JS and React: no internet access, no cookies and no storage. Links open after a confirmation.
Password and payment card fields are disabled, so readers cannot type them into a block.
Tailwind CSS classes work, and
dark:classes follow the site's light or dark theme.A block has a size limit, and a note can hold a limited number of blocks. The editor tells you when you reach either one.
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.