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.

Regular (outlined)

SVG

Filled

SVG
Code Block Color

Color

SVG

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

NameCode Block
StylesRegular (outlined), Filled, Color
Sizes16 px, 20 px, 24 px, 28 px, 32 px, 48 px
Regular (outlined) fileic_fluent_code_block_24_regular.svg
Filled fileic_fluent_code_block_24_filled.svg
Color fileic_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 · &#xEFBC;
Font glyph (Filled, 24 px)U+EFBC · &#xEFBC;
LicenseMIT (© Microsoft Corporation)

Keywords

slashedit

Similar icons