Code Block icon
Microsoft uses it to represent code blocks in text editor scenarios. The Code Block icon is tagged editor, bracket and slash. Similar Fluent icons include Code Block Edit, Code and Code Circle.
Every size and style
Microsoft draws each size separately so icons stay crisp, rather than scaling one drawing. Pick a style and size to preview it, download it, or copy the code for your platform.
Regular, 24 px
ic_fluent_code_block_24_regular.svg
Code Block icon in React
npm install @fluentui/react-icons
import { CodeBlock24Regular } from "@fluentui/react-icons";
export function Example() {
return <CodeBlock24Regular aria-label="Code Block" />;
}Use the Code Block icon in React
Import CodeBlock24Regular and CodeBlock24Filled from Microsoft's @fluentui/react-icons package; the code tabs above have this and other platforms. Coding agents can look the component up through the Fluent Icons MCP server.
Details
| Name | Code Block |
|---|---|
| Styles | Regular (outlined), Filled, Color |
| Sizes | 16 px, 20 px, 24 px, 28 px, 32 px, 48 px |
| Regular (outlined) file | ic_fluent_code_block_24_regular.svg |
| Filled file | ic_fluent_code_block_24_filled.svg |
| Color file | ic_fluent_code_block_24_color.svg |
| React (Regular) | CodeBlock16Regular, CodeBlock20Regular, CodeBlock24Regular, CodeBlock28Regular, CodeBlock32Regular, CodeBlock48Regular |
| React (Filled) | CodeBlock16Filled, CodeBlock20Filled, CodeBlock24Filled, CodeBlock28Filled, CodeBlock32Filled, CodeBlock48Filled |
| React (Color) | CodeBlock16Color, CodeBlock20Color, CodeBlock24Color, CodeBlock28Color, CodeBlock32Color, CodeBlock48Color |
| Font glyph (Regular, 24 px) | U+EFBC ·  |
| Font glyph (Filled, 24 px) | U+EFBC ·  |
| License | MIT (© Microsoft Corporation) |