All Octicons

file

Octicon sizes navigation

Usage

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

React

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


<FileIcon size={16} />

Rails

<%= render(Primer::Beta::Octicon.new(:file, size: :small)) %>

Jekyll

{% octicon file height:16 %}

Figma

This icon is called file in Primer's Octicons library.