Export size24px

 

App.jsx
import { DocumentCode } from "fmicon-react";

<DocumentCode size={24} variant="outline" />

Props

PropTypeDefaultDescription
sizenumber | string24Width and height in pixels
variant"linear" | "bold" | …linearAny of the 8 styles, plus glass-light for light backgrounds
colorstringcurrentColorAny CSS colour; inherits the text colour by default
strokeWidthnumber1.5Line weight for linear, twotone, broken and duotone
...propsSVG attributes–className, aria-label, onClick and the rest

How to Use the Document Code Icon

The document code icon belongs to the programming set, and people recognise it quickly in developer tools, docs and code editors. Use it where the action or state it shows needs to be clear at a glance, and pair it with a short text label the first time it appears, so nobody has to guess.

The outline style has closed shapes, which hold up well in print and design files. If it is the only thing inside a button, add an aria-label such as "Document Code" so screen readers can name it. Keep the tap area at least 44 px on touch screens, and let it inherit your text colour so it follows light, dark and hover states automatically.