1. Icon Monks
  2. Interface icons
  3. Warning Square

Warning Square icon

The warning square icon is a free interface icon from Icon Monks, drawn as one clean path on a 256-unit grid in six weights. It is free for personal and commercial use under the MIT license.

Warning Square icon, thin weight
Thin
SVG
Warning Square icon, light weight
Light
SVG
Warning Square icon, regular weight
Regular
SVG
Warning Square icon, bold weight
Bold
SVG
Warning Square icon, fill weight
Fill
SVG
Warning Square icon, duotone weight
Duotone
SVG

Open in the icon browserCustomize size and color, then download PNG, WebP or PDF.

About the warning square icon

It is the warning icon set inside a square, for app-style tiles, so it keeps the exact outline of the warning icon. Use it to stand for alert, exclamation and error. The regular weight is a single path made of 4 shapes, and the duotone weight adds a 20% tint behind the outline. It comes with 1 variant for states and actions: warning square slash.

When to use the warning square icon

It belongs to the interface set, made for buttons, menus, toolbars and app navigation. Pair it with the related icons below so a screen stays in one visual style.

Use the warning square icon in your code

React

import { WarningSquare } from '@icon-monks/react';

<WarningSquare size={24} />

Vue

<script setup>
import { WarningSquare } from '@icon-monks/vue';
</script>

<WarningSquare :size="24" />

Web component

<icon-monks name="warning-square" size="24"></icon-monks>

Icon font

<i class="im im-warning-square"></i>

Flutter

Icon(IconMonks.warningSquare)

SwiftUI

Image(iconMonks: .warningSquare)

Compose

import com.designmonks.icons.IconMonks
import com.designmonks.icons.regular.WarningSquare

Icon(IconMonks.Regular.WarningSquare, contentDescription = null)

Need setup steps? See the getting started guide or the page for React, Flutter, SwiftUI or Jetpack Compose.

Tags

Related interface icons

See all 489 interface icons

Similar icons in other categories

Questions about the warning square icon

Is the warning square icon free for commercial use?

Yes. The warning square icon is released under the MIT license, so you can use it in personal, client and commercial projects without paying or adding credit in your interface.

How do I change the color and size of the warning square icon?

The icon draws in currentColor, so it takes the text color around it. In React, Vue and the web component, set the size and color props; in the icon browser, pick a color and size before you download a PNG, WebP, SVG or PDF.

Are there variants of the warning square icon?

Yes. The warning square icon has 1 variant, including warning square slash. Each one keeps the same base shape and comes in all six weights.

Last updated with version 0.4.3. Release notes