ICONYZ
English
Rifle icon from Game Icons

Rifle icon

game-icons:rifle

The Rifle icon (game-icons:rifle) is a free SVG icon from the Game Icons set by GameIcons. It is drawn on a 512 × 512 grid. Game Icons are released under the CC BY 3.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
Game Icons
Author
GameIcons
License
CC-BY-3.0
Size
512 × 512
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="currentColor" d="M256 16S136 76 136 226v120c0 30 0 30 30 30h180c30 0 30 0 30-30V226C376 76 256 16 256 16m0 75s60 30 60 135v60H196v-60c0-105 60-135 60-135M148.63 420.998A12.63 12.63 0 0 0 136 433.63v49.737a12.63 12.63 0 0 0 12.63 12.63h214.74a12.63 12.63 0 0 0 12.63-12.63V433.63A12.63 12.63 0 0 0 363.37 421H148.63z"/></svg>

How to use the Rifle icon

React

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

<Icon icon="game-icons:rifle" width="24" />

Vue

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

<template>
  <Icon icon="game-icons:rifle" width="24" />
</template>

Svelte

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

<Icon icon="game-icons:rifle" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[game-icons--rifle]"></span>

UnoCSS

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

Web component

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

<iconify-icon icon="game-icons:rifle"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/game-icons/rifle.svg" alt="Rifle icon" width="24" height="24">

Rifle icon FAQ

Is the Rifle icon free for commercial use?

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

How do I use the Rifle icon in React?

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

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

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

Browse all Game Icons →