FrameBlocks
FrameBlocks
Description
FrameBlocks gives content creators and developers a set of Gutenberg blocks that wrap content inside realistic UI mockups — without leaving the WordPress editor.
Included blocks:
- Browser Frame — Safari or Chrome browser shell wrapping any inner content
- Code Editor Frame — VS Code editor shell with sidebar, code zone, and terminal
- Code Syntax Highlighter — Syntax-highlighted code powered by Shiki (50+ languages)
- Device Frame — Phone, tablet, or laptop device shell
- File Tree — VS Code-style file/folder tree
- File Tree Item — Individual file or folder row inside a file tree
- Social Post — Instagram or Facebook post mockup
- Social Comment — Comment row nested inside a social post
All blocks are fully responsive using CSS container queries (cqw units), so they scale automatically with the column width — no manual resizing needed.
Installation
- In your WordPress admin go to Plugins Add New Upload Plugin.
- Upload the
frame-blocks.zipfile and click Install Now. - Activate the plugin.
- Open any post or page in the Gutenberg editor and search for “Frame” in the block inserter.
Screenshots
Faq
No. FrameBlocks is built exclusively for the Gutenberg block editor (WordPress 6.8+).
Yes. All frames use CSS container queries and scale fluidly with the column they are placed in.
No. All assets — including icon fonts — are bundled locally with the plugin. No external requests are made.
The Code Syntax Highlighter block uses Shiki and supports over 50 languages including JavaScript, TypeScript, PHP, Python, HTML, CSS, Bash, and more.
Reviews
Changelog
0.1.1
- Fix spacing in line number for code syntax highlighter to work properly with box-sizing resets.
- Fix Instagram avatar ring misalignment in themes without a universal box-sizing reset.
- Fix browser frame address bar icons not centering correctly in themes that do not reset flex alignment defaults.
- Sanitize user-controlled URL attributes (avatarUrl, imageUrl, href) to block dangerous schemes (javascript:, data:, vbscript:) before rendering.
0.1.0
- Initial release with 8 blocks: Browser Frame, Code Editor Frame, Code Syntax Highlighter, Device Frame, File Tree, File Tree Item, Social Post, Social Comment.


