Square Code Icon
Rounded square with angle brackets and a slash between them, for code, HTML markup and developer settings. Available in 4 styles (outline, solid, duotone and filled) as a React component you install with the shadcn CLI.
Preview
Install and code
Square Code icon in shadcn/ui components
Button
Icon button
Button group
Dropdown menu
Input group
Empty state
Square Code icon FAQ
What does this icon show?
Rounded square with angle brackets and a slash between them, for code, HTML markup and developer settings. Typical uses: HTML embed code button, developer settings nav item and code view toggle in editor.
When should I use it instead of a similar icon?
Use it for:
- The inline snippet button in a rich text toolbar, next to bold, italic and link
- Custom HTML blocks in a page builder's insert menu, for pasting a widget or a form
- The Embed option in a share dialog or menu that copies an iframe snippet for a site
For an Open in editor button, or a playground pane where a snippet runs beside its output, use the Code icon. For install steps and copyable shell commands on a docs or quick start page, use the Square Terminal icon. For a snippet pasted into a chat thread or a developer support reply, use the Message Programming icon.
Which styles does it come in?
4 styles: Outline, Solid, Duotone and Filled. Every style is drawn on the same 24 by 24 grid and installs as its own file, so you can switch styles without touching the layout.
How do I install it with the shadcn CLI?
Copy the install command from the panel above, in the style you want, and run it in your project. The shadcn CLI adds the icon as a React component that you import and render like any other. It draws in the current text color, so your text color and size classes style it. Icon installs need a ReUI Ultimate license.
What icons go well with it?
Icons from the same family and the Development set: Code, SIM Card Code, Scan QR Code, Artificial Intelligence, Command and Hierarchy.
When was it added, and what was it called before?
It joined the ReUI icon library on June 30, 2026. It was previously named square-brackets, and that install name still resolves to this icon.
Icons related to Square Code
For AI Agents
Hand your agent this brief or the ReUI MCP, not a screenshot. Installs with a ReUI Ultimate license.
When to use
- The inline snippet button in a rich text toolbar, next to bold, italic and link
- Custom HTML blocks in a page builder's insert menu, for pasting a widget or a form
- The Embed option in a share dialog or menu that copies an iframe snippet for a site
When not to use
- An Open in editor button, or a playground pane where a snippet runs beside its output: use the Code icon
- Install steps and copyable shell commands on a docs or quick start page: use the Square Terminal icon
- A snippet pasted into a chat thread or a developer support reply: use the Message Programming icon
Agent notes
- Name an icon-only button with its label, "Add custom HTML", as the aria-label
Markdown
https://reui.io/icons/preview/square-code.mdMCP
get_icon("square-code")Install
npx shadcn@latest add @reui/icons/default/duotone/square-codeStart building with ReUI Pro today.
Every Pro block, every style, and every future addition, with one license for unlimited projects.
Get All-Access
From $249, once. Lifetime updates.