Skip to content
DeployDeployIcons
Code Block icon

Code Block

code-block

From Phosphor Icons, redistributed under the MIT licence. Available at all 6 weights.

Weights

  • Code Block, ThinThin
  • Code Block, LightLight
  • Code Block, RegularRegular
  • Code Block, BoldBold
  • Code Block, FillFill
  • Code Block, DuotoneDuotone

Use it

React
import { RegularCodeblock } from 'onebit-icon-react';

<RegularCodeblock size={24} />
SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" width="24" height="24" fill="none"><polyline points="64 32 32 64 64 96" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><polyline points="104 32 136 64 104 96" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/><path d="M176,48h24a8,8,0,0,1,8,8V200a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V136" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="16"/></svg>
CSS mask
.icon-code-block {
  width: 24px; height: 24px;
  background: currentColor;
  mask: url("https://icons.onebit.ng/icons/regular-code-block.svg") center / contain no-repeat;
}

More in Text & Formatting

← All Text & Formatting iconsBrowse by categoryBrowse all icons