All Octicons

file-directory

Octicon sizes navigation

Usage

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

React

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


<FileDirectoryIcon size={24} />

Rails

<%= render(Primer::Beta::Octicon.new(:"file-directory", size: :medium)) %>

Jekyll

{% octicon file-directory height:24 %}

Figma

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