Code Block Icon
Animation
Appearance
Shape
Options
Layout
More from this family
About the Code Block Icon
In interfaces, Code Block signals preformatted code content: indentation, line breaks, and spacing should be preserved. It tells users to expect a snippet they can read, copy, or edit as code rather than prose. In chat and docs, it often marks a pasted example or a response styled as code.
- Good for
- document editorchat composerdata tableemailonboarding
- Tags
- code blockdevelopmentformattingcode block symbolmarkdown code blockdevelopment toolsdocumentationmarkdowntext editingchat
Frequently Asked Questions
What does the Code Block Icon mean?
A Code Block symbol tells users the content will keep its line breaks, indentation, and monospaced appearance. That matters because code often breaks if it is treated like normal prose. A good example is a docs toolbar button that inserts a fenced snippet for JavaScript or JSON. Avoid using it for a single variable or command fragment; use code inline instead.
Where should I use the Code Block Icon?
Place it with other text-formatting controls, not with file uploads or app navigation. In a rich-text editor, it belongs near code inline, bold, and indentation controls so users can find it while editing text. In a chat composer, it works best in the formatting row above or under the input field. Avoid burying it in settings, because the action is usually immediate and content-focused.
What is the difference between the Code Block Icon and the Placeholder Block Icon?
A placeholder block is a layout or loading shape, while Code Block implies preserved code formatting and monospaced content.
Is there an animated Code Block Icon?
Yes. Press play above to see the Code Block Icon move, set its speed and playback, then download it as GIF, Lottie or MP4. Use it in editor toolbars or chat composers where the user is about to insert a code block.
Can I download the Code Block Icon as PNG or SVG?
Yes. Download the Code Block Icon as PNG, SVG, WebP, AVIF and JPEG, or copy it as React, Vue or Svelte code.
