ICONYZ
Bahasa Indonesia
Ikon Trash2 dari Bootstrap Icons

Ikon Trash2

bi:trash2

Ikon Trash2 (bi:trash2) adalah ikon SVG gratis dari set Bootstrap Icons karya The Bootstrap Authors. Ikon ini digambar pada grid 24 × 24. Bootstrap Icons dirilis di bawah lisensi MIT, yang mengizinkan penggunaan dalam proyek pribadi maupun komersial. Salin sebagai kode SVG, JSX, Vue, atau Svelte, atau unduh file SVG-nya.

Set ikon
Bootstrap Icons
Pembuat
The Bootstrap Authors
Lisensi
MIT
Ukuran
24 × 24
Download SVG

Kode SVG

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M14 3a.7.7 0 0 1-.037.225l-1.684 10.104A2 2 0 0 1 10.305 15H5.694a2 2 0 0 1-1.973-1.671L2.037 3.225A.7.7 0 0 1 2 3c0-1.105 2.686-2 6-2s6 .895 6 2M3.215 4.207l1.493 8.957a1 1 0 0 0 .986.836h4.612a1 1 0 0 0 .986-.836l1.493-8.957C11.69 4.689 9.954 5 8 5s-3.69-.311-4.785-.793"/></svg>

Cara memakai ikon Trash2

React

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

<Icon icon="bi:trash2" width="24" />

Vue

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

<template>
  <Icon icon="bi:trash2" width="24" />
</template>

Svelte

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

<Icon icon="bi:trash2" width="24" />

Tailwind CSS

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

UnoCSS

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

Web component

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

<iconify-icon icon="bi:trash2"></iconify-icon>

Gambar HTML

<img src="https://iconyz.com/api/public/svg/bi/trash2.svg" alt="Ikon Trash2" width="24" height="24">

Ikon terkait di Bootstrap Icons

Ikon Trash2 di set ikon lain

FAQ Ikon Trash2

Apakah ikon Trash2 gratis untuk penggunaan komersial?

Ya. Bootstrap Icons dirilis di bawah lisensi MIT, yang mengizinkan penggunaan dalam proyek pribadi maupun komersial.

Bagaimana cara memakai ikon Trash2 di React?

Pasang @iconify/react lalu render <Icon icon="bi:trash2" />, atau gunakan “Salin kode” di halaman ini untuk mendapatkan komponen React mandiri.

Bagaimana cara menambahkan ikon Trash2 ke halaman web?

Tautkan file SVG di tag gambar: <img src="https://iconyz.com/api/public/svg/bi/trash2.svg" alt="Ikon Trash2">, atau tempel kode SVG langsung di halaman untuk menatanya dengan CSS.

Lihat semua Bootstrap Icons →