import { DocumentText } from "fmicon-react";
<DocumentText size={24} variant="bulk" />
Props
| Prop | Type | Default | Description |
|---|---|---|---|
size | number | string | 24 | Width and height in pixels |
variant | "linear" | "bold" | … | linear | Any of the 8 styles, plus glass-light for light backgrounds |
color | string | currentColor | Any CSS colour; inherits the text colour by default |
strokeWidth | number | 1.5 | Line weight for linear, twotone, broken and duotone |
...props | SVG attributes | – | className, aria-label, onClick and the rest |
More in Content
What is the Document Text Icon?
The file icon shows a page covered in lines of text, telling people this is a readable document such as a report, contract, article or text file. Use it in file lists, attachment chips and content menus where the words inside the file matter, not just the fact that a file exists.
Horizontal lines on a page are the shorthand for writing, borrowed from ruled paper and printed reports. As a text file icon, it suggests content you can read, search or edit, which separates it from a blank page that only says file. It differs from the note icon, which suggests a quick jotting, and the clipboard, which suggests a checklist or form. Lines make it the natural choice for terms, invoices and articles.
When to Use the File Icon
- Account footer: a link to the terms of service and privacy policy pages.
- Upload list: a row for plain text, Markdown or Word files, with the file name and size.
- Search results page: a filter that narrows results to documents rather than images or videos.
- Accounting dashboard: a button to view or download the invoice for a completed payment.
The Document Text Icon in Bulk Style
Bulk icons put a solid shape over a softer, semi-transparent one. You get depth and a clear focal point from a single colour, with no second colour to manage.
Best for: feature lists, empty states and cards that need a bit more presence.
The same icon also comes in linear, outline, bold, twotone, broken, glass and duotone. See every icon in this look on the free bulk icons page.
How to Use the Document Text Icon
- Customise it. Bulk is a filled style, so pick a size and colour on the left; stroke weight doesn't apply.
- Copy or download. Copy the SVG, or download SVG, PNG or WebP at any size from 16 to 512 px.
- Drop it into code. Choose React, React Native, Vue, Svelte, Angular or Flutter above and copy the ready-made
DocumentTextIconcomponent. - Label it. If the icon is the only thing in a button, give it a name for screen readers:
aria-label="View document". If text sits next to it, usearia-hidden="true"instead.
Design Tips for the Document Text Icon
- Use two or three lines rather than many; at 16 pixels, five lines blur into a grey block and the page loses its shape.
- Shorten the last line of text in the glyph, as real paragraphs do, so the page reads as writing rather than a table.
- When the icon opens a file preview, label it View document, and add the file size if the download could be large.
Icons That Work Well with Document Text
Browse all content iconsDocument Text Icon FAQ
It means a text document: something with written content you can read. People see it on reports, articles, terms pages and text files. The lines separate it from a blank page icon, which usually stands for any file or a new empty document.
Use the page with lines of text, because terms, policies and contracts are written content people read. A blank page suggests an empty or generic file. If the link opens a PDF rather than a web page, add the format and file size next to the label.
Yes. The document text icon is one of 891 free, open-source icons you can use in personal and commercial work, including client projects and apps you sell. The packages are MIT licensed; keep the licence notice if you redistribute the icon files.
SVG, PNG and WebP, at any size from 16 to 512 pixels. You can also copy it as JSX or as a ready-made component for React, React Native, Vue, Svelte, Angular and Flutter, with your stroke weight and colour already applied.