All Octicons

code

Octicon sizes navigation

Usage

You can use this icon in React, Ruby, Jekyll, or Figma. Here are code examples for each:

React

import {CodeIcon} from '@primer/octicons-react'


<CodeIcon size={24} />

Rails

<%= render(Primer::Beta::Octicon.new(:code, size: :medium)) %>

Jekyll

{% octicon code height:24 %}

Figma

This icon is called code-24 in Primer's Octicons library.