# Color swatch fan deck

> A swatch guide that fans open on hover; each strip lifts out when pressed and copies its hex code.

- Category: [Cards](https://library.aimran.es/components/cards)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-card-pantone-fan
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Printers and designers still carry swatch fans, and the gesture of spreading them is satisfying. Seven strips share a rivet pivot and rotate by a custom property that grows on hover or focus. Pressing one lifts it from the fan, reads its real color from the computed style and copies the hex code, with a short confirmation. Good for design systems, paint shops and brand guidelines.

The first strip uses the main color and the fourth the second color, so the palette follows your brand. Edit the names and codes in the list, and use the arrow keys to move between strips.

## Code

### HTML

```html
<div class="uvq07-pan"><p class="ti">Autumn 27 palette</p><div class="fn" role="group" aria-label="Swatches"><button type="button" style="--i:0;--sw:var(--c1)" aria-pressed="false"><span class="cl"></span><span class="lb"><b>18-1450</b><span>Terracotta</span></span></button><button type="button" style="--i:1;--sw:#d9a441" aria-pressed="false"><span class="cl"></span><span class="lb"><b>14-0952</b><span>Mustard</span></span></button><button type="button" style="--i:2;--sw:#9caf88" aria-pressed="false"><span class="cl"></span><span class="lb"><b>15-6316</b><span>Sage</span></span></button><button type="button" style="--i:3;--sw:var(--c2)" aria-pressed="false"><span class="cl"></span><span class="lb"><b>19-4524</b><span>Petrol blue</span></span></button><button type="button" style="--i:4;--sw:#6b3a5b" aria-pressed="false"><span class="cl"></span><span class="lb"><b>19-2311</b><span>Plum</span></span></button><button type="button" style="--i:5;--sw:#e3d3b6" aria-pressed="false"><span class="cl"></span><span class="lb"><b>13-1012</b><span>Sand</span></span></button><button type="button" style="--i:6;--sw:#2e2e30" aria-pressed="false"><span class="cl"></span><span class="lb"><b>19-0303</b><span>Charcoal</span></span></button><i class="rv" aria-hidden="true"></i></div><p class="st" aria-live="polite"><span class="nm">Pick a swatch</span><span class="ok">Code copied</span></p></div>
```

### CSS

```css
.uvq07-pan {
  --c1: #c2562f;
  --c2: #2f5d63;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq07-pan {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  display: grid;
  justify-items: center;
  width: 20em;
}

.uvq07-pan .ti {
  margin: 0 0 .4em;
  font-size: .72em;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-pan .fn {
  position: relative;
  width: 20em;
  height: 14.6em;
  --a: 7deg;
}

.uvq07-pan .fn:hover,.uvq07-pan .fn:focus-within {
  --a: 15deg;
}

.uvq07-pan .fn button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  bottom: .4em;
  width: 3.5em;
  height: 13em;
  margin-left: -1.75em;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: .45em;
  text-align: left;
  background: #fbfaf7;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 .4em 1em -.4em rgba(0,0,0,.35);
  transform-origin: 50% calc(100% - 1.3em);
  transform: rotate(calc((var(--i) - 3) * var(--a))) translateY(var(--y,0em));
  transition: transform calc(0.6s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq07-pan .fn button:hover {
  --y: -.5em;
}

.uvq07-pan .fn button[aria-pressed="true"] {
  --y: -1.5em;
  z-index: 10;
}

.uvq07-pan .fn button:active {
  --y: -.2em;
}

.uvq07-pan .fn button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.uvq07-pan .cl {
  flex: none;
  height: 62%;
  background: var(--sw);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

.uvq07-pan .lb {
  display: grid;
  gap: .2em;
  padding: .5em .4em;
  color: #222;
}

.uvq07-pan .lb b {
  font: 700 .56em ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  white-space: nowrap;
}

.uvq07-pan .lb span {
  font-size: .6em;
  font-weight: 600;
  white-space: nowrap;
}

.uvq07-pan .rv {
  position: absolute;
  left: 50%;
  bottom: 1.7em;
  z-index: 20;
  width: .9em;
  height: .9em;
  margin: 0 0 -.45em -.45em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#f5f5f5,#9a9a9a 60%,#5b5b5b);
  box-shadow: 0 .1em .2em rgba(0,0,0,.4);
}

.uvq07-pan .st {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6em;
  min-height: 1.8em;
  margin: .6em 0 0;
  font-size: .8em;
}

.uvq07-pan .nm {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.uvq07-pan .ok {
  padding: .2em .55em;
  border-radius: 1em;
  font-size: .85em;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  opacity: 0;
  transform: translateY(.3em);
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq07-pan.cp .ok {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion:reduce) {
  .uvq07-pan,.uvq07-pan *,.uvq07-pan *::before,.uvq07-pan *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq07-pan").forEach(el => {
  const bs=[...el.querySelectorAll(".fn button")],nm=el.querySelector(".nm");let t=0;
const hex=c=>"#"+(c.match(/[0-9.]+/g)||[]).slice(0,3).map(n=>Math.round(+n).toString(16).padStart(2,"0")).join("");
bs.forEach((b,i)=>{b.addEventListener("click",()=>{bs.forEach(x=>x.setAttribute("aria-pressed",String(x===b)));const h=hex(getComputedStyle(b.querySelector(".cl")).backgroundColor);nm.textContent=b.querySelector(".lb span").textContent+" · "+h;if(navigator.clipboard)navigator.clipboard.writeText(h).catch(()=>{});el.classList.add("cp");clearTimeout(t);t=setTimeout(()=>el.classList.remove("cp"),1600)});
b.addEventListener("keydown",e=>{const d=e.key==="ArrowRight"?1:e.key==="ArrowLeft"?-1:0;if(d){e.preventDefault();bs[(i+d+bs.length)%bs.length].focus()}})});
return()=>clearTimeout(t)
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq07-pan {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  display: grid;
  justify-items: center;
  width: 20em;
}

.uvq07-pan .ti {
  margin: 0 0 .4em;
  font-size: .72em;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-pan .fn {
  position: relative;
  width: 20em;
  height: 14.6em;
  --a: 7deg;
}

.uvq07-pan .fn:hover,.uvq07-pan .fn:focus-within {
  --a: 15deg;
}

.uvq07-pan .fn button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  bottom: .4em;
  width: 3.5em;
  height: 13em;
  margin-left: -1.75em;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: .45em;
  text-align: left;
  background: #fbfaf7;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 .4em 1em -.4em rgba(0,0,0,.35);
  transform-origin: 50% calc(100% - 1.3em);
  transform: rotate(calc((var(--i) - 3) * var(--a))) translateY(var(--y,0em));
  transition: transform calc(0.6s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq07-pan .fn button:hover {
  --y: -.5em;
}

.uvq07-pan .fn button[aria-pressed="true"] {
  --y: -1.5em;
  z-index: 10;
}

.uvq07-pan .fn button:active {
  --y: -.2em;
}

.uvq07-pan .fn button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.uvq07-pan .cl {
  flex: none;
  height: 62%;
  background: var(--sw);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

.uvq07-pan .lb {
  display: grid;
  gap: .2em;
  padding: .5em .4em;
  color: #222;
}

.uvq07-pan .lb b {
  font: 700 .56em ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  white-space: nowrap;
}

.uvq07-pan .lb span {
  font-size: .6em;
  font-weight: 600;
  white-space: nowrap;
}

.uvq07-pan .rv {
  position: absolute;
  left: 50%;
  bottom: 1.7em;
  z-index: 20;
  width: .9em;
  height: .9em;
  margin: 0 0 -.45em -.45em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#f5f5f5,#9a9a9a 60%,#5b5b5b);
  box-shadow: 0 .1em .2em rgba(0,0,0,.4);
}

.uvq07-pan .st {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6em;
  min-height: 1.8em;
  margin: .6em 0 0;
  font-size: .8em;
}

.uvq07-pan .nm {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.uvq07-pan .ok {
  padding: .2em .55em;
  border-radius: 1em;
  font-size: .85em;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  opacity: 0;
  transform: translateY(.3em);
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq07-pan.cp .ok {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion:reduce) {
  .uvq07-pan,.uvq07-pan *,.uvq07-pan *::before,.uvq07-pan *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const bs=[...el.querySelectorAll(".fn button")],nm=el.querySelector(".nm");let t=0;
const hex=c=>"#"+(c.match(/[0-9.]+/g)||[]).slice(0,3).map(n=>Math.round(+n).toString(16).padStart(2,"0")).join("");
bs.forEach((b,i)=>{b.addEventListener("click",()=>{bs.forEach(x=>x.setAttribute("aria-pressed",String(x===b)));const h=hex(getComputedStyle(b.querySelector(".cl")).backgroundColor);nm.textContent=b.querySelector(".lb span").textContent+" · "+h;if(navigator.clipboard)navigator.clipboard.writeText(h).catch(()=>{});el.classList.add("cp");clearTimeout(t);t=setTimeout(()=>el.classList.remove("cp"),1600)});
b.addEventListener("keydown",e=>{const d=e.key==="ArrowRight"?1:e.key==="ArrowLeft"?-1:0;if(d){e.preventDefault();bs[(i+d+bs.length)%bs.length].focus()}})});
return()=>clearTimeout(t)
}

export default function CardPantoneFan() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#c2562f",
          "--c2": "#2f5d63",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq07-pan"><p className="ti">Autumn 27 palette</p><div className="fn" role="group" aria-label="Swatches"><button type="button" style={{ "--i": "0", "--sw": "var(--c1)" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>18-1450</b><span>Terracotta</span></span></button><button type="button" style={{ "--i": "1", "--sw": "#d9a441" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>14-0952</b><span>Mustard</span></span></button><button type="button" style={{ "--i": "2", "--sw": "#9caf88" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>15-6316</b><span>Sage</span></span></button><button type="button" style={{ "--i": "3", "--sw": "var(--c2)" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>19-4524</b><span>Petrol blue</span></span></button><button type="button" style={{ "--i": "4", "--sw": "#6b3a5b" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>19-2311</b><span>Plum</span></span></button><button type="button" style={{ "--i": "5", "--sw": "#e3d3b6" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>13-1012</b><span>Sand</span></span></button><button type="button" style={{ "--i": "6", "--sw": "#2e2e30" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>19-0303</b><span>Charcoal</span></span></button><i className="rv" aria-hidden="true"></i></div><p className="st" aria-live="polite"><span className="nm">Pick a swatch</span><span className="ok">Code copied</span></p></div>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Color swatch fan deck” block (Cards) from AIMRAN Library to my project.

## What it is
A swatch guide that fans open on hover; each strip lifts out when pressed and copies its hex code.

## Chosen settings
- Main color: #c2562f
- Secondary color: #2f5d63
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Paleta Otoño 27"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq07-pan {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  display: grid;
  justify-items: center;
  width: 20em;
}

.uvq07-pan .ti {
  margin: 0 0 .4em;
  font-size: .72em;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq07-pan .fn {
  position: relative;
  width: 20em;
  height: 14.6em;
  --a: 7deg;
}

.uvq07-pan .fn:hover,.uvq07-pan .fn:focus-within {
  --a: 15deg;
}

.uvq07-pan .fn button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  bottom: .4em;
  width: 3.5em;
  height: 13em;
  margin-left: -1.75em;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: .45em;
  text-align: left;
  background: #fbfaf7;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08),0 .4em 1em -.4em rgba(0,0,0,.35);
  transform-origin: 50% calc(100% - 1.3em);
  transform: rotate(calc((var(--i) - 3) * var(--a))) translateY(var(--y,0em));
  transition: transform calc(0.6s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq07-pan .fn button:hover {
  --y: -.5em;
}

.uvq07-pan .fn button[aria-pressed="true"] {
  --y: -1.5em;
  z-index: 10;
}

.uvq07-pan .fn button:active {
  --y: -.2em;
}

.uvq07-pan .fn button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.uvq07-pan .cl {
  flex: none;
  height: 62%;
  background: var(--sw);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

.uvq07-pan .lb {
  display: grid;
  gap: .2em;
  padding: .5em .4em;
  color: #222;
}

.uvq07-pan .lb b {
  font: 700 .56em ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  white-space: nowrap;
}

.uvq07-pan .lb span {
  font-size: .6em;
  font-weight: 600;
  white-space: nowrap;
}

.uvq07-pan .rv {
  position: absolute;
  left: 50%;
  bottom: 1.7em;
  z-index: 20;
  width: .9em;
  height: .9em;
  margin: 0 0 -.45em -.45em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,#f5f5f5,#9a9a9a 60%,#5b5b5b);
  box-shadow: 0 .1em .2em rgba(0,0,0,.4);
}

.uvq07-pan .st {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6em;
  min-height: 1.8em;
  margin: .6em 0 0;
  font-size: .8em;
}

.uvq07-pan .nm {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.uvq07-pan .ok {
  padding: .2em .55em;
  border-radius: 1em;
  font-size: .85em;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  opacity: 0;
  transform: translateY(.3em);
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq07-pan.cp .ok {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion:reduce) {
  .uvq07-pan,.uvq07-pan *,.uvq07-pan *::before,.uvq07-pan *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const bs=[...el.querySelectorAll(".fn button")],nm=el.querySelector(".nm");let t=0;
const hex=c=>"#"+(c.match(/[0-9.]+/g)||[]).slice(0,3).map(n=>Math.round(+n).toString(16).padStart(2,"0")).join("");
bs.forEach((b,i)=>{b.addEventListener("click",()=>{bs.forEach(x=>x.setAttribute("aria-pressed",String(x===b)));const h=hex(getComputedStyle(b.querySelector(".cl")).backgroundColor);nm.textContent=b.querySelector(".lb span").textContent+" · "+h;if(navigator.clipboard)navigator.clipboard.writeText(h).catch(()=>{});el.classList.add("cp");clearTimeout(t);t=setTimeout(()=>el.classList.remove("cp"),1600)});
b.addEventListener("keydown",e=>{const d=e.key==="ArrowRight"?1:e.key==="ArrowLeft"?-1:0;if(d){e.preventDefault();bs[(i+d+bs.length)%bs.length].focus()}})});
return()=>clearTimeout(t)
}

export default function CardPantoneFan() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#c2562f",
          "--c2": "#2f5d63",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq07-pan"><p className="ti">Autumn 27 palette</p><div className="fn" role="group" aria-label="Swatches"><button type="button" style={{ "--i": "0", "--sw": "var(--c1)" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>18-1450</b><span>Terracotta</span></span></button><button type="button" style={{ "--i": "1", "--sw": "#d9a441" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>14-0952</b><span>Mustard</span></span></button><button type="button" style={{ "--i": "2", "--sw": "#9caf88" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>15-6316</b><span>Sage</span></span></button><button type="button" style={{ "--i": "3", "--sw": "var(--c2)" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>19-4524</b><span>Petrol blue</span></span></button><button type="button" style={{ "--i": "4", "--sw": "#6b3a5b" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>19-2311</b><span>Plum</span></span></button><button type="button" style={{ "--i": "5", "--sw": "#e3d3b6" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>13-1012</b><span>Sand</span></span></button><button type="button" style={{ "--i": "6", "--sw": "#2e2e30" } as CSSProperties} aria-pressed="false"><span className="cl"></span><span className="lb"><b>19-0303</b><span>Charcoal</span></span></button><i className="rv" aria-hidden="true"></i></div><p className="st" aria-live="polite"><span className="nm">Pick a swatch</span><span className="ok">Code copied</span></p></div>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
