Code block icon
Stroke weight
Colour
Size
Line ends
Tile
px
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">
<rect x="3" y="4" width="18" height="16" rx="2" />
<path d="M9.5 10L7 12l2.5 2M14.5 10l2.5 2-2.5 2" />
</svg> Colour comes from CSS color.
A 24×24 stroke icon from the Text & Editing set. It uses currentColor, so it takes the colour of your text, and the
stroke weight is yours to set.
When to use this icon
Angle brackets in a box: a block of code.
- Insert a code block in documents and chat
- Code snippet blocks in docs
- Developer notes in content tools