code block icon
code-block-28 from Fluent UI System Color Icons by Microsoft Corporation · 28 · MIT Free for personal and commercial use.
- Name
- code-block-28
- Set
- Fluent UI System Color Icons
- Style
- 28
- Viewbox
- 28×28
- 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 28 28"><g fill="none"><path fill="url(#SVGPsPmLdTa)" d="M3 6.75A3.75 3.75 0 0 1 6.75 3h14.5A3.75 3.75 0 0 1 25 6.75v14.5A3.75 3.75 0 0 1 21.25 25H6.75A3.75 3.75 0 0 1 3 21.25z"/><path fill="url(#SVG8e8dxcEN)" d="M12.03 9.22a.75.75 0 0 0-1.06 0l-4.25 4.25a.75.75 0 0 0 0 1.06l4.25 4.25a.75.75 0 1 0 1.06-1.06L8.31 14l3.72-3.72a.75.75 0 0 0 0-1.06m5 0a.75.75 0 1 0-1.06 1.06L19.69 14l-3.72 3.72a.75.75 0 1 0 1.06 1.06l4.25-4.25a.75.75 0 0 0 0-1.06z"/><defs><linearGradient id="SVGPsPmLdTa" x1="8.364" x2="20.429" y1="3" y2="25" gradientUnits="userSpaceOnUse"><stop offset=".028" stop-color="#e67eea"/><stop offset=".438" stop-color="#ad64d7"/><stop offset="1" stop-color="#794dc5"/></linearGradient><linearGradient id="SVG8e8dxcEN" x1="10.056" x2="15.931" y1="9.385" y2="24.59" gradientUnits="userSpaceOnUse"><stop stop-color="#fdfdfd"/><stop offset="1" stop-color="#f9dcfa"/></linearGradient></defs></g></svg>
React
import type { SVGProps } from "react";
export function FluentColorCodeBlock28(props: SVGProps<SVGSVGElement>) {
return (
<svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 28 28"><g fill="none"><path fill="url(#SVGPsPmLdTa)" d="M3 6.75A3.75 3.75 0 0 1 6.75 3h14.5A3.75 3.75 0 0 1 25 6.75v14.5A3.75 3.75 0 0 1 21.25 25H6.75A3.75 3.75 0 0 1 3 21.25z"/><path fill="url(#SVG8e8dxcEN)" d="M12.03 9.22a.75.75 0 0 0-1.06 0l-4.25 4.25a.75.75 0 0 0 0 1.06l4.25 4.25a.75.75 0 1 0 1.06-1.06L8.31 14l3.72-3.72a.75.75 0 0 0 0-1.06m5 0a.75.75 0 1 0-1.06 1.06L19.69 14l-3.72 3.72a.75.75 0 1 0 1.06 1.06l4.25-4.25a.75.75 0 0 0 0-1.06z"/><defs><linearGradient id="SVGPsPmLdTa" x1="8.364" x2="20.429" y1="3" y2="25" gradientUnits="userSpaceOnUse"><stop offset=".028" stopColor="#e67eea"/><stop offset=".438" stopColor="#ad64d7"/><stop offset="1" stopColor="#794dc5"/></linearGradient><linearGradient id="SVG8e8dxcEN" x1="10.056" x2="15.931" y1="9.385" y2="24.59" 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 28 28"><g fill="none"><path fill="url(#SVGPsPmLdTa)" d="M3 6.75A3.75 3.75 0 0 1 6.75 3h14.5A3.75 3.75 0 0 1 25 6.75v14.5A3.75 3.75 0 0 1 21.25 25H6.75A3.75 3.75 0 0 1 3 21.25z"/><path fill="url(#SVG8e8dxcEN)" d="M12.03 9.22a.75.75 0 0 0-1.06 0l-4.25 4.25a.75.75 0 0 0 0 1.06l4.25 4.25a.75.75 0 1 0 1.06-1.06L8.31 14l3.72-3.72a.75.75 0 0 0 0-1.06m5 0a.75.75 0 1 0-1.06 1.06L19.69 14l-3.72 3.72a.75.75 0 1 0 1.06 1.06l4.25-4.25a.75.75 0 0 0 0-1.06z"/><defs><linearGradient id="SVGPsPmLdTa" x1="8.364" x2="20.429" y1="3" y2="25" gradientUnits="userSpaceOnUse"><stop offset=".028" stop-color="#e67eea"/><stop offset=".438" stop-color="#ad64d7"/><stop offset="1" stop-color="#794dc5"/></linearGradient><linearGradient id="SVG8e8dxcEN" x1="10.056" x2="15.931" y1="9.385" y2="24.59" gradientUnits="userSpaceOnUse"><stop stop-color="#fdfdfd"/><stop offset="1" stop-color="#f9dcfa"/></linearGradient></defs></g></svg> </template>
CSS
.icon-code-block-28 {
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%2028%2028%22%3E%3Cg%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22url(%23SVGPsPmLdTa)%22%20d%3D%22M3%206.75A3.75%203.75%200%200%201%206.75%203h14.5A3.75%203.75%200%200%201%2025%206.75v14.5A3.75%203.75%200%200%201%2021.25%2025H6.75A3.75%203.75%200%200%201%203%2021.25z%22%2F%3E%3Cpath%20fill%3D%22url(%23SVG8e8dxcEN)%22%20d%3D%22M12.03%209.22a.75.75%200%200%200-1.06%200l-4.25%204.25a.75.75%200%200%200%200%201.06l4.25%204.25a.75.75%200%201%200%201.06-1.06L8.31%2014l3.72-3.72a.75.75%200%200%200%200-1.06m5%200a.75.75%200%201%200-1.06%201.06L19.69%2014l-3.72%203.72a.75.75%200%201%200%201.06%201.06l4.25-4.25a.75.75%200%200%200%200-1.06z%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22SVGPsPmLdTa%22%20x1%3D%228.364%22%20x2%3D%2220.429%22%20y1%3D%223%22%20y2%3D%2225%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%22SVG8e8dxcEN%22%20x1%3D%2210.056%22%20x2%3D%2215.931%22%20y1%3D%229.385%22%20y2%3D%2224.59%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%2028%2028%22%3E%3Cg%20fill%3D%22none%22%3E%3Cpath%20fill%3D%22url(%23SVGPsPmLdTa)%22%20d%3D%22M3%206.75A3.75%203.75%200%200%201%206.75%203h14.5A3.75%203.75%200%200%201%2025%206.75v14.5A3.75%203.75%200%200%201%2021.25%2025H6.75A3.75%203.75%200%200%201%203%2021.25z%22%2F%3E%3Cpath%20fill%3D%22url(%23SVG8e8dxcEN)%22%20d%3D%22M12.03%209.22a.75.75%200%200%200-1.06%200l-4.25%204.25a.75.75%200%200%200%200%201.06l4.25%204.25a.75.75%200%201%200%201.06-1.06L8.31%2014l3.72-3.72a.75.75%200%200%200%200-1.06m5%200a.75.75%200%201%200-1.06%201.06L19.69%2014l-3.72%203.72a.75.75%200%201%200%201.06%201.06l4.25-4.25a.75.75%200%200%200%200-1.06z%22%2F%3E%3Cdefs%3E%3ClinearGradient%20id%3D%22SVGPsPmLdTa%22%20x1%3D%228.364%22%20x2%3D%2220.429%22%20y1%3D%223%22%20y2%3D%2225%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%22SVG8e8dxcEN%22%20x1%3D%2210.056%22%20x2%3D%2215.931%22%20y1%3D%229.385%22%20y2%3D%2224.59%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-28.svg?color=%231a73e8&size=48