Skip to content

Code Block

The code block icon represents a block of code or a code snippet.

Exports at 24 × 24 px

Code Block icon from Phosphor
Get Pro

Code

Code Block in your framework

In any framework. Customize it above, and the code follows.

export const CodeBlockIcon = (props: React.SVGProps<SVGSVGElement>) => (
  <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 256 256" {...props}>
    <path fill="currentColor" d="m58.34 101.66l-32-32a8 8 0 0 1 0-11.32l32-32a8 8 0 0 1 11.32 11.32L43.31 64l26.35 26.34a8 8 0 0 1-11.32 11.32m40 0a8 8 0 0 0 11.32 0l32-32a8 8 0 0 0 0-11.32l-32-32a8 8 0 0 0-11.32 11.32L124.69 64L98.34 90.34a8 8 0 0 0 0 11.32M200 40h-24a8 8 0 0 0 0 16h24v144H56v-64a8 8 0 0 0-16 0v64a16 16 0 0 0 16 16h144a16 16 0 0 0 16-16V56a16 16 0 0 0-16-16"/>
  </svg>
);

Other libraries

Code Block in 5 more libraries

Each library draws it its own way. Open one to compare.

Phosphor

Icons that share its tags, in the same style.

  • Code icon from Phosphor
  • Codepen Logo icon from Phosphor
  • Code Simple icon from Phosphor
  • App Window icon from Phosphor
  • Brackets Angle icon from Phosphor
  • Brackets Curly icon from Phosphor
  • Brackets Round icon from Phosphor
  • Brackets Square icon from Phosphor
  • File Code icon from Phosphor
  • File Jsx icon from Phosphor
  • Function icon from Phosphor
  • Rows Plus Top icon from Phosphor
  • Rss icon from Phosphor
  • Selection Foreground icon from Phosphor
  • Selection Inverse icon from Phosphor
  • Angular Logo icon from Phosphor
  • Bounding Box icon from Phosphor
  • Bug icon from Phosphor
  • Device Tablet Camera icon from Phosphor
  • File Cpp icon from Phosphor
  • Grid Four icon from Phosphor
  • Sliders icon from Phosphor
  • Terminal icon from Phosphor
  • Align Center Vertical icon from Phosphor

Skip the copy and paste. With Pro, your AI agent finds and installs any Phosphor icon from a prompt.

Get Pro

Pricing

Phosphor MCP, with Pro

Ask for Code Block or any of 9,161 Phosphor icons and your agent installs it. The MCP comes with every Pro plan, with 6,000+ blocks and 14 premium templates. The icons stay free.

4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.

  • Secure checkout via Stripe
  • Code lives in your repo
  • Keep what you've shipped if you cancel
  • License terms

FAQ

Frequently asked questions

What the Code Block icon means and where it's used, then how to install, style, label and license it.

4.9 out of 5 from 150+ developers

Install Code Block from a prompt

MCP, 6,000+ blocks and 14 premium templates in every Pro plan. The icons stay free.

Get Pro