The Heroicons document icon depicts a sheet of paper, commonly used to represent files, documents, or content in user interfaces.
Common uses
- Link to a PDF or document
- Button to view/edit a record
- File upload indicator
Use it in React
Install
npm i @heroicons/reactImport & render
import { DocumentIcon } from '@heroicons/react/24/outline';
<DocumentIcon className="size-6" />Styles
Heroicons ships this icon in 4 styles — each its own import:
24/outline
<DocumentIcon className="size-6" />24/solid
<DocumentIcon className="size-6" />20/solid
<DocumentIcon className="size-6" />16/solid
<DocumentIcon className="size-6" />Details
- Library
- Heroicons (324 icons)
- License
- MIT
- viewBox
0 0 24 24- Keywords
- documentfilepagereportpaper
FAQ
- What is the document icon used for?
- It's typically used to signify files, documents, or content within an application's interface.
- How do I use the document icon in React?
- Import it using `import { DocumentIcon } from '@heroicons/react/24/outline'` and then use it as a React component.
- What is the license for this icon?
- The Heroicons library, including the document icon, is available under the MIT license.
Related icons
The same idea in other libraries, and near matches in Heroicons.
Looking for something else? Search Heroicons and 4 more libraries by description →
The search behind these pages runs as a Claude Code skill. What skills are and how I ship them →