Ikon Swatch
heroicons:swatch
Ikon Swatch (heroicons:swatch) adalah ikon SVG gratis dari set HeroIcons karya Refactoring UI Inc. Ikon ini digambar pada grid 24 × 24. HeroIcons 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
- HeroIcons
- Pembuat
- Refactoring UI Inc
- Lisensi
- MIT
- Ukuran
- 24 × 24
Kode SVG
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M4.098 19.902a3.75 3.75 0 0 0 5.304 0l6.401-6.402M6.75 21A3.75 3.75 0 0 1 3 17.25V4.125C3 3.504 3.504 3 4.125 3h5.25c.621 0 1.125.504 1.125 1.125v4.072M6.75 21a3.75 3.75 0 0 0 3.75-3.75V8.197M6.75 21h13.125c.621 0 1.125-.504 1.125-1.125v-5.25c0-.621-.504-1.125-1.125-1.125h-4.072M10.5 8.197l2.88-2.88a1.124 1.124 0 0 1 1.59 0l3.712 3.713c.44.44.44 1.152 0 1.59l-2.879 2.88M6.75 17.25h.008v.008H6.75z"/></svg>Cara memakai ikon Swatch
React
import { Icon } from "@iconify/react";
<Icon icon="heroicons:swatch" width="24" />Vue
<script setup>
import { Icon } from "@iconify/vue";
</script>
<template>
<Icon icon="heroicons:swatch" width="24" />
</template>Svelte
<script>
import Icon from "@iconify/svelte";
</script>
<Icon icon="heroicons:swatch" width="24" />Tailwind CSS
<!-- @iconify/tailwind plugin -->
<span class="icon-[heroicons--swatch]"></span>UnoCSS
<!-- @unocss/preset-icons + @iconify-json/heroicons -->
<div class="i-heroicons:swatch"></div>Web component
<script src="https://code.iconify.design/iconify-icon/2.1.0/iconify-icon.min.js"></script>
<iconify-icon icon="heroicons:swatch"></iconify-icon>Gambar HTML
<img src="https://iconyz.com/api/public/svg/heroicons/swatch.svg" alt="Ikon Swatch" width="24" height="24">Ikon terkait di HeroIcons
Ikon Swatch di set ikon lain
FAQ Ikon Swatch
Apakah ikon Swatch gratis untuk penggunaan komersial?
Ya. HeroIcons dirilis di bawah lisensi MIT, yang mengizinkan penggunaan dalam proyek pribadi maupun komersial.
Bagaimana cara memakai ikon Swatch di React?
Pasang @iconify/react lalu render <Icon icon="heroicons:swatch" />, atau gunakan “Salin kode” di halaman ini untuk mendapatkan komponen React mandiri.
Bagaimana cara menambahkan ikon Swatch ke halaman web?
Tautkan file SVG di tag gambar: <img src="https://iconyz.com/api/public/svg/heroicons/swatch.svg" alt="Ikon Swatch">, atau tempel kode SVG langsung di halaman untuk menatanya dengan CSS.