code block icon
code-block-20-filled from Fluent UI System Icons by Microsoft Corporation · 20 Filled · MIT Free for personal and commercial use.
- Name
- code-block-20-filled
- Set
- Fluent UI System Icons
- Style
- 20 Filled
- Viewbox
- 20×20
- License
- MIT
11 other variants in Fluent UI System Icons
The same icon in other sets
Related icons in Fluent UI System Icons
code-block-edit-16-filledcode-circle-20-filledcode-cs-16-filledcode-cs-rectangle-16-filledcode-fs-16-filledcode-fs-rectangle-16-filledcode-js-16-filledcode-js-rectangle-16-filledcode-off-16-filledcode-py-16-filledcode-py-rectangle-16-filledcode-rb-16-filledcode-rb-rectangle-16-filledcode-text-16-filledcode-text-edit-20-filledcode-text-off-16-filledcode-ts-16-filledcode-ts-rectangle-16-filledcode-vb-16-filledcode-vb-rectangle-16-filled
Use the code block icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm2.854 4.854L6.707 10l2.147 2.146a.5.5 0 0 1-.708.708l-2.5-2.5a.5.5 0 0 1 0-.708l2.5-2.5a.5.5 0 1 1 .708.708m3-.708l2.5 2.5a.5.5 0 0 1 0 .708l-2.5 2.5a.5.5 0 0 1-.708-.708L13.293 10l-2.147-2.146a.5.5 0 0 1 .708-.708"/></svg>
React
import type { SVGProps } from "react";
export function FluentCodeBlock20Filled(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm2.854 4.854L6.707 10l2.147 2.146a.5.5 0 0 1-.708.708l-2.5-2.5a.5.5 0 0 1 0-.708l2.5-2.5a.5.5 0 1 1 .708.708m3-.708l2.5 2.5a.5.5 0 0 1 0 .708l-2.5 2.5a.5.5 0 0 1-.708-.708L13.293 10l-2.147-2.146a.5.5 0 0 1 .708-.708"/></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><path fill="currentColor" d="M6 3a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm2.854 4.854L6.707 10l2.147 2.146a.5.5 0 0 1-.708.708l-2.5-2.5a.5.5 0 0 1 0-.708l2.5-2.5a.5.5 0 1 1 .708.708m3-.708l2.5 2.5a.5.5 0 0 1 0 .708l-2.5 2.5a.5.5 0 0 1-.708-.708L13.293 10l-2.147-2.146a.5.5 0 0 1 .708-.708"/></svg> </template>
CSS
.icon-code-block-20-filled {
width: 24px;
height: 24px;
background-color: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M6%203a3%203%200%200%200-3%203v8a3%203%200%200%200%203%203h8a3%203%200%200%200%203-3V6a3%203%200%200%200-3-3zm2.854%204.854L6.707%2010l2.147%202.146a.5.5%200%200%201-.708.708l-2.5-2.5a.5.5%200%200%201%200-.708l2.5-2.5a.5.5%200%201%201%20.708.708m3-.708l2.5%202.5a.5.5%200%200%201%200%20.708l-2.5%202.5a.5.5%200%200%201-.708-.708L13.293%2010l-2.147-2.146a.5.5%200%200%201%20.708-.708%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2020%2020%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M6%203a3%203%200%200%200-3%203v8a3%203%200%200%200%203%203h8a3%203%200%200%200%203-3V6a3%203%200%200%200-3-3zm2.854%204.854L6.707%2010l2.147%202.146a.5.5%200%200%201-.708.708l-2.5-2.5a.5.5%200%200%201%200-.708l2.5-2.5a.5.5%200%201%201%20.708.708m3-.708l2.5%202.5a.5.5%200%200%201%200%20.708l-2.5%202.5a.5.5%200%200%201-.708-.708L13.293%2010l-2.147-2.146a.5.5%200%200%201%20.708-.708%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/fluent/code-block-20-filled.svg?color=%231a73e8&size=48