code icon
The code icon from Material Symbols, in Actions. Preview every style and copy ready-to-use Angular code.
Style
400
Grade
24px
Size
Colour
Template
<mat-icon>code</mat-icon>Component
import { MatIconModule } from '@angular/material/icon';
@Component({
imports: [MatIconModule],
// …
})code Variants
Every Material Symbols style, unfilled and filled, at weights 200, 400 and 700. Copy the <mat-icon> for a style, then set fill and weight with font-variation-settings.
Outlined
material-symbols-outlined200
400
700
fill 200
fill 400
fill 700
<mat-icon>code</mat-icon>Rounded
material-symbols-rounded200
400
700
fill 200
fill 400
fill 700
<mat-icon fontSet="material-symbols-rounded">code</mat-icon>Sharp
material-symbols-sharp200
400
700
fill 200
fill 400
fill 700
<mat-icon fontSet="material-symbols-sharp">code</mat-icon>Also in the legacy Material Icons font as Filled, Outlined, Round, Sharp, Two Tone. Pick a legacy style above to preview it.
Examples in Angular Material
Common places to use code, with the template code. Previews are drawn to match Angular Material's Material 3 components.
Icon button
<button mat-icon-button aria-label="Code">
<mat-icon>code</mat-icon>
</button>Button with icon
Code
<button mat-flat-button>
<mat-icon>code</mat-icon>
Code
</button>Floating action button
<button mat-fab aria-label="Code">
<mat-icon>code</mat-icon>
</button>List item
Code
<mat-list>
<mat-list-item>
<mat-icon matListItemIcon>code</mat-icon>
<span matListItemTitle>Code</span>
</mat-list-item>
</mat-list>Toolbar
My App
<mat-toolbar>
<span>My App</span>
<span class="spacer"></span>
<button mat-icon-button aria-label="Code">
<mat-icon>code</mat-icon>
</button>
</mat-toolbar>Form field prefix
Code
<mat-form-field appearance="outline">
<mat-label>Code</mat-label>
<mat-icon matPrefix>code</mat-icon>
<input matInput />
</mat-form-field>About this icon
- Name
- code
- Icon set
- Material Symbols and legacy Material Icons
- Category
- Actions
- Also found by
- algorithm, application, backend, brackets, build, coding, commands, compile, computer, console, css, develop, developer, development, editor, engineer, engineering, frontend, function, html, language, logic, markup, platform, programmer, programming, script, software, source, syntax, terminal, variable
- Symbols codepoint
- U+E86F
- Licence
- Apache License 2.0, free for commercial use (Google Fonts)