File Text Icon

file-text · Files · 6 styles

Filed under Files, the File Text icon is part of the Solar Icons Angular package. It is one of 15 glyphs in that category and one of 1,246 icons in the library overall, each drawn on the same 24x24 grid so File Text lines up optically with everything around it. The icon is addressed in templates by the string "file-text", and every style variant resolves from that single name.

Users read the shape as individual files and text content. That places File Text in the Files family, which covers documents by format and by state and turns up in file managers, upload widgets, attachment lists and export menus. Teams building document-heavy products and storage front-ends reach for this set first. Use File Text where the label alone would be ambiguous — an icon-only button, a dense table row, a mobile tab bar — and keep an accessible name on the control, because the SVG itself is decorative.

File Text in 6 styles

File Text is drawn in 6 style variants: Bold, Bold Duotone, Linear, Outline, Broken and Line Duotone. Bold gives you solid filled shapes that hold their weight at 16px and read clearly against coloured backgrounds. Bold Duotone gives you a filled body with a second, lower-opacity layer that adds depth without a second colour token. Linear gives you even 1.5px strokes, the neutral default for dense interfaces and toolbars. A common pairing is Bold for the selected state and Line Duotone for the rest, so the active item reads without a colour change.

BoldFileTextBold
Bold DuotoneFileTextBoldDuotone
LinearFileTextLinear
OutlineFileTextOutline
BrokenFileTextBroken
Line DuotoneFileTextLineDuotone

How to use the file-text icon in Angular

Nothing is registered globally by default, so the import list is the bundle. Import FileTextBold from the "@rchernando/solar-icons/files" entry point, hand it to provideSolarIcons in your application config or in a route-level providers array, and render it with the solar-icon component. All 6 exports for file-text live in that same entry point, so switching style is a one-line change.

typescript
import { FileTextBold, FileTextBoldDuotone, FileTextLinear, FileTextOutline, FileTextBroken, FileTextLineDuotone } from '@rchernando/solar-icons/files';
typescript
import { ApplicationConfig } from '@angular/core';
import { provideSolarIcons } from '@rchernando/solar-icons';
import { FileTextBold } from '@rchernando/solar-icons/files';

export const appConfig: ApplicationConfig = {
  providers: [provideSolarIcons(FileTextBold)]
};
html
<solar-icon name="file-text" iconStyle="bold" size="24px" />
<solar-icon name="file-text" iconStyle="bold-duotone" size="24px" />
<solar-icon name="file-text" iconStyle="linear" size="24px" />
<solar-icon name="file-text" iconStyle="outline" size="24px" />
<solar-icon name="file-text" iconStyle="broken" size="24px" />
<solar-icon name="file-text" iconStyle="line-duotone" size="24px" />

More Files icons

Icons drawn alongside it in Files include Figma File, File Download, File Right, Zipfile, File, File Favourite, File Send and Cloud File. They share stroke weight and corner radius with File Text, so mixing them in one toolbar stays consistent.

Browse all Files icons →

Icons related to File Text

If File Text is not quite the shape you want, Clapperboard Text, Clipboard Text, Cloud File, Code File and Document Text share part of its name and often work as substitutes.

Elsewhere in the library

Further afield in the catalog, Transfer Horizontal, Remote Controller Minimalistic, Home Wi Fi Angle, Chart Square, Undo Left Round Square and Round Arrow Down cover neighbouring ideas; the name "file-text" is 9 characters long and splits into 2 tokens, which is how the explorer's search matches it.

File Text icon FAQ

How do I use the file-text icon in Angular?
Import FileTextBold from "@rchernando/solar-icons/files", register it with provideSolarIcons(FileTextBold) and render <solar-icon name="file-text" iconStyle="bold" />. No HTTP request is made — the SVG is inlined at build time.
Which styles does File Text support?
6 of them: Bold, Bold Duotone, Linear, Outline, Broken and Line Duotone. Each is a separate export, so you only ship the ones you import.
Can I change the size and colour of file-text?
Yes. The size input accepts any CSS length and the SVG uses currentColor, so File Text inherits the text colour of its container — a Tailwind class such as text-violet-400 is enough.

One of 1,246 icons in the Solar Icons explorer. See also the installation guide and the styling reference.