ICONYZ
English
Swatch Input icon from OpenSearch UI

Swatch Input icon

oui:swatch-input

The Swatch Input icon (oui:swatch-input) is a free SVG icon from the OpenSearch UI set by OpenSearch Contributors. It is drawn on a 24 × 24 grid. OpenSearch UI icons are released under the Apache 2.0 license, which allows use in personal and commercial projects. Copy it as SVG, JSX, Vue or Svelte code, or download the SVG file.

Icon set
OpenSearch UI
Author
OpenSearch Contributors
License
Apache-2.0
Size
24 × 24
Tags
swatchinput
Download SVG

SVG code

<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><rect width="12" height="12" x="2" y="2" fill="currentColor" rx="3"/><rect width="11" height="11" x="2.5" y="2.5" fill="currentColor" class="ouiSwatchInput__stroke" rx="2"/></svg>

How to use the Swatch Input icon

React

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

<Icon icon="oui:swatch-input" width="24" />

Vue

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

<template>
  <Icon icon="oui:swatch-input" width="24" />
</template>

Svelte

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

<Icon icon="oui:swatch-input" width="24" />

Tailwind CSS

<!-- @iconify/tailwind plugin -->
<span class="icon-[oui--swatch-input]"></span>

UnoCSS

<!-- @unocss/preset-icons + @iconify-json/oui -->
<div class="i-oui:swatch-input"></div>

Web component

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

<iconify-icon icon="oui:swatch-input"></iconify-icon>

HTML image

<img src="https://iconyz.com/api/public/svg/oui/swatch-input.svg" alt="Swatch Input icon" width="24" height="24">

Swatch Input icon FAQ

Is the Swatch Input icon free for commercial use?

Yes. OpenSearch UI icons are released under the Apache 2.0 license, which allows use in personal and commercial projects.

How do I use the Swatch Input icon in React?

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

How do I add the Swatch Input icon to a web page?

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

Browse all OpenSearch UI icons →