Document Square icon

The Document Square icon is part of Microsoft's Fluent UI System Icons, available here in filled and regular (outlined) styles on a 24 px grid. Download it as SVG or PNG, or copy it as code — it's free to use under the MIT License.

Regular (outlined)

SVG

Filled

SVG

Use the Document Square icon in React

Install Microsoft's @fluentui/react-icons package, then import the component. Icons inherit the current text color, and you can size them with CSS.

npm install @fluentui/react-icons

import { DocumentSquare24Regular, DocumentSquare24Filled } from "@fluentui/react-icons";

export function Example() {
  return <DocumentSquare24Regular aria-label="Document Square" />;
}

Use it in HTML

Reference the SVG file directly:

<img src="https://fluenticons.co/icons/ic_fluent_document_square_24_regular.svg" width="24" height="24" alt="Document Square">

Or paste the SVG markup inline. Setting fill="currentColor" makes the icon follow the text color of its parent:

<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M13.1289 3C13.7256 3.00006 14.2978 3.23728 14.7197 3.65918L20.3408 9.28027C20.7627 9.70218 20.9999 10.2744 21 10.8711V18.75C21 19.9926 19.9926 21 18.75 21H5.25C4.00736 21 3 19.9926 3 18.75V5.25C3 4.00736 4.00736 3 5.25 3H13.1289ZM5.25 4.5C4.83579 4.5 4.5 4.83579 4.5 5.25V18.75C4.5 19.1642 4.83579 19.5 5.25 19.5H18.75C19.1642 19.5 19.5 19.1642 19.5 18.75V11H15C13.8954 11 13 10.1046 13 9V4.5H5.25ZM14.5 9C14.5 9.27614 14.7239 9.5 15 9.5H18.4395L14.5 5.56055V9Z" fill="currentColor"/></svg>

Use it from the SVG package

Microsoft's @fluentui/svg-icons package contains the raw SVG files, which works well with bundlers that import SVGs:

npm install @fluentui/svg-icons

import icon from "@fluentui/svg-icons/icons/document_square_24_regular.svg";

Details

NameDocument Square
StylesRegular (outlined), Filled
Size24 × 24 px (scalable SVG)
Regular (outlined) fileic_fluent_document_square_24_regular.svg
Filled fileic_fluent_document_square_24_filled.svg
React componentsDocumentSquare24Regular, DocumentSquare24Filled
LicenseMIT (© Microsoft Corporation)

Related icons