# Latching mechanical key filters

> Mechanical keyboard keys that stay pressed with their LED lit, while a small screen spells out the filter.

- Category: [Filters](https://library.aimran.es/components/filters)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-f-latch-keys
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Old hardware used latching keys that stayed down while active, and this file-type filter brings that feel back with keycaps. Each key is a toggle button with a sculpted cap, a deep skirt, a short travel on press and a green LED when latched. An orange clear key releases them all, and an OLED strip shows the matching pattern.

The first colour lights the LEDs and the screen text, the second paints the clear key. Change the legends to tags, sizes or any short code, and keep it to six keys per row so the caps stay readable.

## Code

### HTML

```html
<div class="uvq05-kb"><p class="ol" aria-live="polite"><span class="pr">File type</span><span class="tx">*.pdf *.mp3</span></p><div class="pl"><button type="button" aria-pressed="true"><span class="cap"><span class="lg">PDF</span><i class="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="false"><span class="cap"><span class="lg">JPG</span><i class="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="true"><span class="cap"><span class="lg">MP3</span><i class="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="false"><span class="cap"><span class="lg">ZIP</span><i class="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="false"><span class="cap"><span class="lg">DOC</span><i class="led" aria-hidden="true"></i></span></button><button type="button" class="cl"><span class="cap"><span class="lg">Clear</span></span></button></div></div>
```

### CSS

```css
.uvq05-kb {
  --c1: #36d67a;
  --c2: #ff7a1a;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq05-kb {
  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;
  width: 15em;
  padding: .8em;
  border-radius: 1em;
  background: linear-gradient(160deg,#34363b,#1f2024);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 1.4em 2.6em -1.4em rgba(0,0,0,.65);
}

.uvq05-kb .ol {
  display: flex;
  flex-direction: column;
  gap: .2em;
  margin: 0 0 .8em;
  padding: .5em .7em;
  border-radius: .4em;
  background: #07090a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color: var(--c1);
  text-shadow: 0 0 .4em color-mix(in srgb,var(--c1) 70%,transparent);
}

.uvq05-kb .pr {
  font-size: .6em;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .65;
}

.uvq05-kb .tx {
  min-height: 1.2em;
  overflow: hidden;
  font-size: .85em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.uvq05-kb .tx::after {
  content: "_";
  animation: uvq05-kbb 1s steps(1) infinite;
}

.uvq05-kb .pl {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .45em;
  padding: .5em .5em .2em;
  border-radius: .6em;
  background: #141518;
  box-shadow: inset 0 .15em .4em rgba(0,0,0,.7);
}

.uvq05-kb button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: block;
  padding: 0 0 .45em;
}

.uvq05-kb .cap {
  position: relative;
  display: block;
  height: 2.8em;
  border-radius: .5em;
  background: linear-gradient(#f3efe6,#d9d3c6);
  box-shadow: 0 .4em 0 #a9a294,0 .55em .6em rgba(0,0,0,.5);
  transition: transform calc(0.08s / var(--k)) cubic-bezier(.25,.1,.25,1),box-shadow calc(0.08s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-kb .cap::before {
  content: "";
  position: absolute;
  inset: .25em .3em .55em;
  border-radius: .4em;
  background: radial-gradient(ellipse at 50% 40%,#fbf8f2,#ebe5d9);
  box-shadow: inset 0 .1em .15em rgba(0,0,0,.08);
}

.uvq05-kb .lg {
  position: absolute;
  left: .65em;
  top: .55em;
  font: 700 .62em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing: .06em;
  color: #3a3833;
}

.uvq05-kb .led {
  position: absolute;
  right: .6em;
  top: .6em;
  width: .38em;
  height: .38em;
  border-radius: 50%;
  background: #7d786e;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.4);
  transition: background calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),box-shadow calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-kb button:hover .cap {
  transform: translateY(.05em);
}

.uvq05-kb button[aria-pressed="true"] .cap {
  transform: translateY(.25em);
  box-shadow: 0 .15em 0 #a9a294,0 .25em .35em rgba(0,0,0,.45);
}

.uvq05-kb button[aria-pressed="true"] .led {
  background: var(--c1);
  box-shadow: 0 0 .35em .1em var(--c1);
}

.uvq05-kb button:active .cap {
  transform: translateY(.35em);
  box-shadow: 0 .05em 0 #a9a294,0 .1em .2em rgba(0,0,0,.4);
}

.uvq05-kb button:focus-visible .cap {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq05-kb .cl .cap {
  background: linear-gradient(color-mix(in srgb,var(--c2) 85%,#fff),var(--c2));
  box-shadow: 0 .4em 0 color-mix(in srgb,var(--c2) 60%,#000),0 .55em .6em rgba(0,0,0,.5);
}

.uvq05-kb .cl .cap::before {
  background: radial-gradient(ellipse at 50% 40%,color-mix(in srgb,var(--c2) 70%,#fff),var(--c2));
}

.uvq05-kb .cl .lg {
  color: #fff;
}

.uvq05-kb .cl:active .cap {
  box-shadow: 0 .05em 0 color-mix(in srgb,var(--c2) 60%,#000),0 .1em .2em rgba(0,0,0,.4);
}

@keyframes uvq05-kbb {
  50% {
    opacity: 0;
  }
}

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

### JavaScript

```js
document.querySelectorAll(".uvq05-kb").forEach(el => {
  const ks=[...el.querySelectorAll(".pl button:not(.cl)")],tx=el.querySelector(".tx");
const u=()=>{const on=ks.filter(b=>b.getAttribute("aria-pressed")==="true").map(b=>"*."+b.textContent.trim().toLowerCase());tx.textContent=on.length?on.join(" "):"All files"};
ks.forEach(b=>b.addEventListener("click",()=>{b.setAttribute("aria-pressed",b.getAttribute("aria-pressed")==="true"?"false":"true");u()}));
el.querySelector(".cl").addEventListener("click",()=>{ks.forEach(b=>b.setAttribute("aria-pressed","false"));u()});u()
});
```

### 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 = `
.uvq05-kb {
  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;
  width: 15em;
  padding: .8em;
  border-radius: 1em;
  background: linear-gradient(160deg,#34363b,#1f2024);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 1.4em 2.6em -1.4em rgba(0,0,0,.65);
}

.uvq05-kb .ol {
  display: flex;
  flex-direction: column;
  gap: .2em;
  margin: 0 0 .8em;
  padding: .5em .7em;
  border-radius: .4em;
  background: #07090a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color: var(--c1);
  text-shadow: 0 0 .4em color-mix(in srgb,var(--c1) 70%,transparent);
}

.uvq05-kb .pr {
  font-size: .6em;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .65;
}

.uvq05-kb .tx {
  min-height: 1.2em;
  overflow: hidden;
  font-size: .85em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.uvq05-kb .tx::after {
  content: "_";
  animation: uvq05-kbb 1s steps(1) infinite;
}

.uvq05-kb .pl {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .45em;
  padding: .5em .5em .2em;
  border-radius: .6em;
  background: #141518;
  box-shadow: inset 0 .15em .4em rgba(0,0,0,.7);
}

.uvq05-kb button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: block;
  padding: 0 0 .45em;
}

.uvq05-kb .cap {
  position: relative;
  display: block;
  height: 2.8em;
  border-radius: .5em;
  background: linear-gradient(#f3efe6,#d9d3c6);
  box-shadow: 0 .4em 0 #a9a294,0 .55em .6em rgba(0,0,0,.5);
  transition: transform calc(0.08s / var(--k)) cubic-bezier(.25,.1,.25,1),box-shadow calc(0.08s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-kb .cap::before {
  content: "";
  position: absolute;
  inset: .25em .3em .55em;
  border-radius: .4em;
  background: radial-gradient(ellipse at 50% 40%,#fbf8f2,#ebe5d9);
  box-shadow: inset 0 .1em .15em rgba(0,0,0,.08);
}

.uvq05-kb .lg {
  position: absolute;
  left: .65em;
  top: .55em;
  font: 700 .62em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing: .06em;
  color: #3a3833;
}

.uvq05-kb .led {
  position: absolute;
  right: .6em;
  top: .6em;
  width: .38em;
  height: .38em;
  border-radius: 50%;
  background: #7d786e;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.4);
  transition: background calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),box-shadow calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-kb button:hover .cap {
  transform: translateY(.05em);
}

.uvq05-kb button[aria-pressed="true"] .cap {
  transform: translateY(.25em);
  box-shadow: 0 .15em 0 #a9a294,0 .25em .35em rgba(0,0,0,.45);
}

.uvq05-kb button[aria-pressed="true"] .led {
  background: var(--c1);
  box-shadow: 0 0 .35em .1em var(--c1);
}

.uvq05-kb button:active .cap {
  transform: translateY(.35em);
  box-shadow: 0 .05em 0 #a9a294,0 .1em .2em rgba(0,0,0,.4);
}

.uvq05-kb button:focus-visible .cap {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq05-kb .cl .cap {
  background: linear-gradient(color-mix(in srgb,var(--c2) 85%,#fff),var(--c2));
  box-shadow: 0 .4em 0 color-mix(in srgb,var(--c2) 60%,#000),0 .55em .6em rgba(0,0,0,.5);
}

.uvq05-kb .cl .cap::before {
  background: radial-gradient(ellipse at 50% 40%,color-mix(in srgb,var(--c2) 70%,#fff),var(--c2));
}

.uvq05-kb .cl .lg {
  color: #fff;
}

.uvq05-kb .cl:active .cap {
  box-shadow: 0 .05em 0 color-mix(in srgb,var(--c2) 60%,#000),0 .1em .2em rgba(0,0,0,.4);
}

@keyframes uvq05-kbb {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq05-kb,.uvq05-kb *,.uvq05-kb *::before,.uvq05-kb *::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 ks=[...el.querySelectorAll(".pl button:not(.cl)")],tx=el.querySelector(".tx");
const u=()=>{const on=ks.filter(b=>b.getAttribute("aria-pressed")==="true").map(b=>"*."+b.textContent.trim().toLowerCase());tx.textContent=on.length?on.join(" "):"All files"};
ks.forEach(b=>b.addEventListener("click",()=>{b.setAttribute("aria-pressed",b.getAttribute("aria-pressed")==="true"?"false":"true");u()}));
el.querySelector(".cl").addEventListener("click",()=>{ks.forEach(b=>b.setAttribute("aria-pressed","false"));u()});u()
}

export default function FLatchKeys() {
  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": "#36d67a",
          "--c2": "#ff7a1a",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq05-kb"><p className="ol" aria-live="polite"><span className="pr">File type</span><span className="tx">*.pdf *.mp3</span></p><div className="pl"><button type="button" aria-pressed="true"><span className="cap"><span className="lg">PDF</span><i className="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="false"><span className="cap"><span className="lg">JPG</span><i className="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="true"><span className="cap"><span className="lg">MP3</span><i className="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="false"><span className="cap"><span className="lg">ZIP</span><i className="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="false"><span className="cap"><span className="lg">DOC</span><i className="led" aria-hidden="true"></i></span></button><button type="button" className="cl"><span className="cap"><span className="lg">Clear</span></span></button></div></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 “Latching mechanical key filters” block (Filters) from AIMRAN Library to my project.

## What it is
Mechanical keyboard keys that stay pressed with their LED lit, while a small screen spells out the filter.

## Chosen settings
- Main color: #36d67a
- Secondary color: #ff7a1a
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Tipo de archivo"

## 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 = `
.uvq05-kb {
  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;
  width: 15em;
  padding: .8em;
  border-radius: 1em;
  background: linear-gradient(160deg,#34363b,#1f2024);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1),0 1.4em 2.6em -1.4em rgba(0,0,0,.65);
}

.uvq05-kb .ol {
  display: flex;
  flex-direction: column;
  gap: .2em;
  margin: 0 0 .8em;
  padding: .5em .7em;
  border-radius: .4em;
  background: #07090a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  font-family: ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color: var(--c1);
  text-shadow: 0 0 .4em color-mix(in srgb,var(--c1) 70%,transparent);
}

.uvq05-kb .pr {
  font-size: .6em;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .65;
}

.uvq05-kb .tx {
  min-height: 1.2em;
  overflow: hidden;
  font-size: .85em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.uvq05-kb .tx::after {
  content: "_";
  animation: uvq05-kbb 1s steps(1) infinite;
}

.uvq05-kb .pl {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .45em;
  padding: .5em .5em .2em;
  border-radius: .6em;
  background: #141518;
  box-shadow: inset 0 .15em .4em rgba(0,0,0,.7);
}

.uvq05-kb button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: block;
  padding: 0 0 .45em;
}

.uvq05-kb .cap {
  position: relative;
  display: block;
  height: 2.8em;
  border-radius: .5em;
  background: linear-gradient(#f3efe6,#d9d3c6);
  box-shadow: 0 .4em 0 #a9a294,0 .55em .6em rgba(0,0,0,.5);
  transition: transform calc(0.08s / var(--k)) cubic-bezier(.25,.1,.25,1),box-shadow calc(0.08s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-kb .cap::before {
  content: "";
  position: absolute;
  inset: .25em .3em .55em;
  border-radius: .4em;
  background: radial-gradient(ellipse at 50% 40%,#fbf8f2,#ebe5d9);
  box-shadow: inset 0 .1em .15em rgba(0,0,0,.08);
}

.uvq05-kb .lg {
  position: absolute;
  left: .65em;
  top: .55em;
  font: 700 .62em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing: .06em;
  color: #3a3833;
}

.uvq05-kb .led {
  position: absolute;
  right: .6em;
  top: .6em;
  width: .38em;
  height: .38em;
  border-radius: 50%;
  background: #7d786e;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.4);
  transition: background calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1),box-shadow calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-kb button:hover .cap {
  transform: translateY(.05em);
}

.uvq05-kb button[aria-pressed="true"] .cap {
  transform: translateY(.25em);
  box-shadow: 0 .15em 0 #a9a294,0 .25em .35em rgba(0,0,0,.45);
}

.uvq05-kb button[aria-pressed="true"] .led {
  background: var(--c1);
  box-shadow: 0 0 .35em .1em var(--c1);
}

.uvq05-kb button:active .cap {
  transform: translateY(.35em);
  box-shadow: 0 .05em 0 #a9a294,0 .1em .2em rgba(0,0,0,.4);
}

.uvq05-kb button:focus-visible .cap {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq05-kb .cl .cap {
  background: linear-gradient(color-mix(in srgb,var(--c2) 85%,#fff),var(--c2));
  box-shadow: 0 .4em 0 color-mix(in srgb,var(--c2) 60%,#000),0 .55em .6em rgba(0,0,0,.5);
}

.uvq05-kb .cl .cap::before {
  background: radial-gradient(ellipse at 50% 40%,color-mix(in srgb,var(--c2) 70%,#fff),var(--c2));
}

.uvq05-kb .cl .lg {
  color: #fff;
}

.uvq05-kb .cl:active .cap {
  box-shadow: 0 .05em 0 color-mix(in srgb,var(--c2) 60%,#000),0 .1em .2em rgba(0,0,0,.4);
}

@keyframes uvq05-kbb {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq05-kb,.uvq05-kb *,.uvq05-kb *::before,.uvq05-kb *::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 ks=[...el.querySelectorAll(".pl button:not(.cl)")],tx=el.querySelector(".tx");
const u=()=>{const on=ks.filter(b=>b.getAttribute("aria-pressed")==="true").map(b=>"*."+b.textContent.trim().toLowerCase());tx.textContent=on.length?on.join(" "):"All files"};
ks.forEach(b=>b.addEventListener("click",()=>{b.setAttribute("aria-pressed",b.getAttribute("aria-pressed")==="true"?"false":"true");u()}));
el.querySelector(".cl").addEventListener("click",()=>{ks.forEach(b=>b.setAttribute("aria-pressed","false"));u()});u()
}

export default function FLatchKeys() {
  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": "#36d67a",
          "--c2": "#ff7a1a",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq05-kb"><p className="ol" aria-live="polite"><span className="pr">File type</span><span className="tx">*.pdf *.mp3</span></p><div className="pl"><button type="button" aria-pressed="true"><span className="cap"><span className="lg">PDF</span><i className="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="false"><span className="cap"><span className="lg">JPG</span><i className="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="true"><span className="cap"><span className="lg">MP3</span><i className="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="false"><span className="cap"><span className="lg">ZIP</span><i className="led" aria-hidden="true"></i></span></button><button type="button" aria-pressed="false"><span className="cap"><span className="lg">DOC</span><i className="led" aria-hidden="true"></i></span></button><button type="button" className="cl"><span className="cap"><span className="lg">Clear</span></span></button></div></div>
      </div>
    </>
  );
}
```

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