ICONYZ
English
Preview icon from Codicons

Preview icon

codicon:preview

The Preview icon (codicon:preview) is a free SVG icon from the Codicons set by Microsoft Corporation. It is drawn on a 24 × 24 grid. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
Codicons
Author
Microsoft Corporation
License
CC-BY-4.0
Size
24 × 24
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12.5 1h-9A2.503 2.503 0 0 0 1 3.5v9C1 13.878 2.122 15 3.5 15h9c1.378 0 2.5-1.122 2.5-2.5v-9C15 2.122 13.878 1 12.5 1M14 12.5c0 .827-.673 1.5-1.5 1.5h-9c-.827 0-1.5-.673-1.5-1.5v-9C2 2.673 2.673 2 3.5 2h9c.827 0 1.5.673 1.5 1.5zM11 4H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V5a1 1 0 0 0-1-1m0 3H5V5h6zm0 2h-1a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h1a1 1 0 0 0 1-1v-1a1 1 0 0 0-1-1m0 2h-1v-1h1zM8 9.5a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 1 .5.5m0 2a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1 0-1h3a.5.5 0 0 1 .5.5"/></svg>

How to use the Preview icon

React

import { Icon } from "@iconify/react";

<Icon icon="codicon:preview" width="24" />

Vue

<script setup>
import { Icon } from "@iconify/vue";
</script>

<template>
  <Icon icon="codicon:preview" width="24" />
</template>

Svelte

<script>
  import Icon from "@iconify/svelte";
</script>

<Icon icon="codicon:preview" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[codicon--preview]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/codicon -->
<div class="i-codicon:preview"></div>

Web component

<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>

<iconify-icon icon="codicon:preview"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/codicon/preview.svg" alt="Preview icon" width="24" height="24">

Preview icon in other icon sets

Preview icon FAQ

Is the Preview icon free for commercial use?

Yes. Codicons are released under the CC BY 4.0 license, which allows use in personal and commercial projects as long as you credit the author.

How do I use the Preview icon in React?

Install @iconify/react and render <Icon icon="codicon:preview" />, or use “Copy code” on this page to get a standalone React component.

How do I add the Preview icon to a web page?

Link the SVG file in an image tag: <img src="https://iconyz.com/api/public/svg/codicon/preview.svg" alt="Preview icon">, or paste the SVG code inline to style it with CSS.

Browse all Codicons →