code block icon
code-block-20 from Fluent UI System Color Icons by Microsoft Corporation · 20 · MIT Free for personal and commercial use.
- Name
- code-block-20
- Set
- Fluent UI System Color Icons
- Style
- 20
- Viewbox
- 20×20
- License
- MIT
5 other variants in Fluent UI System Color Icons
The same icon in other sets
Use the code block icon
SVG
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><g fill="none"><path fill="url(#SVGfcu1he1y1)" d="M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3z"/><path fill="url(#SVGQK9gGeYP1)" d="M8.854 7.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"/><defs><linearGradient id="SVGfcu1he1y1" x1="6.413" x2="14.091" y1="3" y2="17" gradientUnits="userSpaceOnUse"><stop offset=".028" stop-color="#e67eea"/><stop offset=".438" stop-color="#ad64d7"/><stop offset="1" stop-color="#794dc5"/></linearGradient><linearGradient id="SVGQK9gGeYP1" x1="7.634" x2="11.158" y1="7.231" y2="16.354" gradientUnits="userSpaceOnUse"><stop stop-color="#fdfdfd"/><stop offset="1" stop-color="#f9dcfa"/></linearGradient></defs></g></svg>
React
import type { SVGProps } from "react";
export function FluentColorCodeBlock20(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><g fill="none"><path fill="url(#SVGfcu1he1y1)" d="M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3z"/><path fill="url(#SVGQK9gGeYP1)" d="M8.854 7.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"/><defs><linearGradient id="SVGfcu1he1y1" x1="6.413" x2="14.091" y1="3" y2="17" gradientUnits="userSpaceOnUse"><stop offset=".028" stopColor="#e67eea"/><stop offset=".438" stopColor="#ad64d7"/><stop offset="1" stopColor="#794dc5"/></linearGradient><linearGradient id="SVGQK9gGeYP1" x1="7.634" x2="11.158" y1="7.231" y2="16.354" gradientUnits="userSpaceOnUse"><stop stopColor="#fdfdfd"/><stop offset="1" stopColor="#f9dcfa"/></linearGradient></defs></g></svg>
);
}
Vue
<template> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 20 20"><g fill="none"><path fill="url(#SVGfcu1he1y1)" d="M3 6a3 3 0 0 1 3-3h8a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3z"/><path fill="url(#SVGQK9gGeYP1)" d="M8.854 7.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"/><defs><linearGradient id="SVGfcu1he1y1" x1="6.413" x2="14.091" y1="3" y2="17" gradientUnits="userSpaceOnUse"><stop offset=".028" stop-color="#e67eea"/><stop offset=".438" stop-color="#ad64d7"/><stop offset="1" stop-color="#794dc5"/></linearGradient><linearGradient id="SVGQK9gGeYP1" x1="7.634" x2="11.158" y1="7.231" y2="16.354" gradientUnits="userSpaceOnUse"><stop stop-color="#fdfdfd"/><stop offset="1" stop-color="#f9dcfa"/></linearGradient></defs></g></svg> </template>
CSS
.icon-code-block-20 {
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%3Cg%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22url(%23SVGfcu1he1y1)%22%20d%3D%22M3%206a3%203%200%200%201%203-3h8a3%203%200%200%201%203%203v8a3%203%200%200%201-3%203H6a3%203%200%200%201-3-3z%22%2F%3E%3Cpath%20fill%3D%22url(%23SVGQK9gGeYP1)%22%20d%3D%22M8.854%207.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%3Cdefs%3E%3ClinearGradient%20id%3D%22SVGfcu1he1y1%22%20x1%3D%226.413%22%20x2%3D%2214.091%22%20y1%3D%223%22%20y2%3D%2217%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%22.028%22%20stop-color%3D%22%23e67eea%22%2F%3E%3Cstop%20offset%3D%22.438%22%20stop-color%3D%22%23ad64d7%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23794dc5%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22SVGQK9gGeYP1%22%20x1%3D%227.634%22%20x2%3D%2211.158%22%20y1%3D%227.231%22%20y2%3D%2216.354%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23fdfdfd%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f9dcfa%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fg%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%3Cg%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22url(%23SVGfcu1he1y1)%22%20d%3D%22M3%206a3%203%200%200%201%203-3h8a3%203%200%200%201%203%203v8a3%203%200%200%201-3%203H6a3%203%200%200%201-3-3z%22%2F%3E%3Cpath%20fill%3D%22url(%23SVGQK9gGeYP1)%22%20d%3D%22M8.854%207.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%3Cdefs%3E%3ClinearGradient%20id%3D%22SVGfcu1he1y1%22%20x1%3D%226.413%22%20x2%3D%2214.091%22%20y1%3D%223%22%20y2%3D%2217%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%22.028%22%20stop-color%3D%22%23e67eea%22%2F%3E%3Cstop%20offset%3D%22.438%22%20stop-color%3D%22%23ad64d7%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23794dc5%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22SVGQK9gGeYP1%22%20x1%3D%227.634%22%20x2%3D%2211.158%22%20y1%3D%227.231%22%20y2%3D%2216.354%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20stop-color%3D%22%23fdfdfd%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f9dcfa%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat center / contain;
}Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/fluent-color/code-block-20.svg?color=%231a73e8&size=48