# Embossed label maker input

> Type on the tiny screen, press print and a plastic strip with raised letters feeds out, ready to be peeled off.

- Category: [Inputs](https://library.aimran.es/components/inputs)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-in-label-maker
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

A text input inside a handheld label maker: a green LCD window, a round rubber print button and a slot for the tape. Each label comes out in stepped jerks like a real motor feeding plastic, with white embossed letters and angled cut ends. Labels tilt slightly at random, pile up three at a time and peel away when you tap them.

The main color is the tape and the second color the body, so red on slate, black on yellow or blue on white are one change away. Use it for tags, folder names, inventory apps or a playful way to collect a nickname.

## Code

### HTML

```html
<form class="uvq06-lt"><div class="dv"><span class="br" aria-hidden="true">LT-27</span><div class="lcd"><label for="uvq06-lt-in" class="sr">Label text</label><input id="uvq06-lt-in" maxlength="14" autocomplete="off" spellcheck="false" placeholder="Label text"></div><button type="submit" class="pr">Print</button><span class="sl" aria-hidden="true"></span></div><ul class="tp"></ul><p class="ht">Tap a label to peel it off</p></form>
```

### CSS

```css
.uvq06-lt {
  --c1: #b91c1c;
  --c2: #334155;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq06-lt {
  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: 19em;
}

.uvq06-lt .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.uvq06-lt .dv {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7em;
  padding: 1em .8em .8em .9em;
  border-radius: 1.1em 2.4em 2.4em 1.1em;
  background: linear-gradient(160deg,color-mix(in srgb,var(--c2) 80%,#fff),var(--c2) 45%,color-mix(in srgb,var(--c2) 70%,#000));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25),inset 0 -.2em 0 rgba(0,0,0,.25),0 1em 1.6em -.9em rgba(0,0,0,.6);
}

.uvq06-lt.go .dv {
  animation: uvq06-lt-v calc(0.9s / var(--k)) steps(9);
}

.uvq06-lt.no .lcd {
  animation: uvq06-lt-x calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-lt .br {
  position: absolute;
  left: 1.6em;
  top: .45em;
  font: 800 .5em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .24em;
  color: rgba(255,255,255,.55);
}

.uvq06-lt .lcd {
  flex: 1;
  min-width: 0;
  padding: .3em .55em;
  border-radius: .45em;
  background: linear-gradient(#bcc7a4,#a7b48d);
  box-shadow: inset 0 .12em .25em rgba(0,0,0,.4),0 0 0 .18em rgba(0,0,0,.35);
  transition: box-shadow calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-lt .lcd:focus-within {
  box-shadow: inset 0 .12em .25em rgba(0,0,0,.4),0 0 0 .18em rgba(0,0,0,.35),0 0 0 .38em #fff;
}

.uvq06-lt .lcd input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font: 700 .85em/1.9 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1c2416;
}

.uvq06-lt .lcd input::placeholder {
  letter-spacing: 0;
  text-transform: none;
  color: rgba(28,36,22,.5);
}

.uvq06-lt .pr {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex: none;
  padding: 1.05em 1.1em;
  border-radius: 2em;
  font-size: .68em;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--c1) 65%,#fff),var(--c1) 60%,color-mix(in srgb,var(--c1) 70%,#000));
  box-shadow: 0 .25em 0 color-mix(in srgb,var(--c1) 50%,#000),0 .45em .6em rgba(0,0,0,.4);
  transition: transform calc(0.1s / var(--k)) linear,box-shadow calc(0.1s / var(--k)) linear,filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-lt .pr:hover {
  filter: brightness(1.1);
}

.uvq06-lt .pr:active {
  transform: translateY(.22em);
  box-shadow: 0 .03em 0 color-mix(in srgb,var(--c1) 50%,#000),0 .1em .2em rgba(0,0,0,.4);
}

.uvq06-lt .pr:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.uvq06-lt .sl {
  position: absolute;
  right: 1.5em;
  bottom: -.12em;
  width: 4.5em;
  height: .3em;
  border-radius: .2em;
  background: #0b0b0b;
}

.uvq06-lt .tp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5em;
  min-height: 5.6em;
  margin: .9em 1em 0 0;
  padding: 0;
  list-style: none;
}

.uvq06-lt .tp li {
  border-radius: .15em;
  filter: drop-shadow(0 .25em .3em rgba(0,0,0,.3));
}

.uvq06-lt .tp li:has(button:focus-visible) {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.uvq06-lt .tp button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: block;
  padding: .45em 1.15em .4em;
  font: 900 1em/1 "Arial Black","Helvetica Neue",Arial,sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.93);
  text-shadow: 0 -1px 0 rgba(0,0,0,.4),0 1px 0 rgba(255,255,255,.35);
  background: linear-gradient(color-mix(in srgb,var(--c1) 78%,#fff),var(--c1) 30%,var(--c1) 70%,color-mix(in srgb,var(--c1) 72%,#000));
  clip-path: polygon(.45em 0,100% 0,calc(100% - .45em) 100%,0 100%);
  rotate: var(--r,0deg);
  transition: transform calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq06-lt .tp button:hover {
  transform: translateY(-2px);
}

.uvq06-lt .tp li.in button {
  animation: uvq06-lt calc(0.9s / var(--k)) steps(9);
}

.uvq06-lt .tp li.pe {
  animation: uvq06-lt-p calc(0.5s / var(--k)) cubic-bezier(.25,.1,.25,1) forwards;
}

.uvq06-lt .ht {
  margin: .5em 0 0;
  font-size: .74em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

@keyframes uvq06-lt {
  from {
    clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%);
    transform: translateX(1em);
  }
}

@keyframes uvq06-lt-p {
  to {
    opacity: 0;
    transform: translate(1.2em,-1.4em) rotate(16deg);
  }
}

@keyframes uvq06-lt-v {
  50% {
    transform: translateY(.04em);
  }
}

@keyframes uvq06-lt-x {
  25% {
    transform: translateX(-.2em);
  }
  50% {
    transform: translateX(.2em);
  }
  75% {
    transform: translateX(-.1em);
  }
}

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

### JavaScript

```js
document.querySelectorAll(".uvq06-lt").forEach(el => {
  const i=el.querySelector("input"),tp=el.querySelector(".tp");let t=0;
const add=(s,anim)=>{const li=document.createElement("li"),b=document.createElement("button");b.type="button";b.textContent=s;li.style.setProperty("--r",(Math.random()*3-1.5).toFixed(1)+"deg");if(anim)li.className="in";li.append(b);tp.prepend(li);
b.addEventListener("click",()=>{li.classList.add("pe");li.addEventListener("animationend",e=>{if(e.target===li)li.remove()})});while(tp.children.length>3)tp.lastChild.remove()};
el.addEventListener("submit",e=>{e.preventDefault();const s=i.value.trim().toUpperCase();if(!s){el.classList.remove("no");void el.offsetWidth;el.classList.add("no");i.focus();return}add(s,true);i.value="";el.classList.remove("go");void el.offsetWidth;el.classList.add("go");clearTimeout(t);t=setTimeout(()=>el.classList.remove("go"),900)});
add("KITCHEN",false);add("SPICES",false);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 = `
.uvq06-lt {
  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: 19em;
}

.uvq06-lt .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.uvq06-lt .dv {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7em;
  padding: 1em .8em .8em .9em;
  border-radius: 1.1em 2.4em 2.4em 1.1em;
  background: linear-gradient(160deg,color-mix(in srgb,var(--c2) 80%,#fff),var(--c2) 45%,color-mix(in srgb,var(--c2) 70%,#000));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25),inset 0 -.2em 0 rgba(0,0,0,.25),0 1em 1.6em -.9em rgba(0,0,0,.6);
}

.uvq06-lt.go .dv {
  animation: uvq06-lt-v calc(0.9s / var(--k)) steps(9);
}

.uvq06-lt.no .lcd {
  animation: uvq06-lt-x calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-lt .br {
  position: absolute;
  left: 1.6em;
  top: .45em;
  font: 800 .5em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .24em;
  color: rgba(255,255,255,.55);
}

.uvq06-lt .lcd {
  flex: 1;
  min-width: 0;
  padding: .3em .55em;
  border-radius: .45em;
  background: linear-gradient(#bcc7a4,#a7b48d);
  box-shadow: inset 0 .12em .25em rgba(0,0,0,.4),0 0 0 .18em rgba(0,0,0,.35);
  transition: box-shadow calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-lt .lcd:focus-within {
  box-shadow: inset 0 .12em .25em rgba(0,0,0,.4),0 0 0 .18em rgba(0,0,0,.35),0 0 0 .38em #fff;
}

.uvq06-lt .lcd input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font: 700 .85em/1.9 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1c2416;
}

.uvq06-lt .lcd input::placeholder {
  letter-spacing: 0;
  text-transform: none;
  color: rgba(28,36,22,.5);
}

.uvq06-lt .pr {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex: none;
  padding: 1.05em 1.1em;
  border-radius: 2em;
  font-size: .68em;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--c1) 65%,#fff),var(--c1) 60%,color-mix(in srgb,var(--c1) 70%,#000));
  box-shadow: 0 .25em 0 color-mix(in srgb,var(--c1) 50%,#000),0 .45em .6em rgba(0,0,0,.4);
  transition: transform calc(0.1s / var(--k)) linear,box-shadow calc(0.1s / var(--k)) linear,filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-lt .pr:hover {
  filter: brightness(1.1);
}

.uvq06-lt .pr:active {
  transform: translateY(.22em);
  box-shadow: 0 .03em 0 color-mix(in srgb,var(--c1) 50%,#000),0 .1em .2em rgba(0,0,0,.4);
}

.uvq06-lt .pr:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.uvq06-lt .sl {
  position: absolute;
  right: 1.5em;
  bottom: -.12em;
  width: 4.5em;
  height: .3em;
  border-radius: .2em;
  background: #0b0b0b;
}

.uvq06-lt .tp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5em;
  min-height: 5.6em;
  margin: .9em 1em 0 0;
  padding: 0;
  list-style: none;
}

.uvq06-lt .tp li {
  border-radius: .15em;
  filter: drop-shadow(0 .25em .3em rgba(0,0,0,.3));
}

.uvq06-lt .tp li:has(button:focus-visible) {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.uvq06-lt .tp button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: block;
  padding: .45em 1.15em .4em;
  font: 900 1em/1 "Arial Black","Helvetica Neue",Arial,sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.93);
  text-shadow: 0 -1px 0 rgba(0,0,0,.4),0 1px 0 rgba(255,255,255,.35);
  background: linear-gradient(color-mix(in srgb,var(--c1) 78%,#fff),var(--c1) 30%,var(--c1) 70%,color-mix(in srgb,var(--c1) 72%,#000));
  clip-path: polygon(.45em 0,100% 0,calc(100% - .45em) 100%,0 100%);
  rotate: var(--r,0deg);
  transition: transform calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq06-lt .tp button:hover {
  transform: translateY(-2px);
}

.uvq06-lt .tp li.in button {
  animation: uvq06-lt calc(0.9s / var(--k)) steps(9);
}

.uvq06-lt .tp li.pe {
  animation: uvq06-lt-p calc(0.5s / var(--k)) cubic-bezier(.25,.1,.25,1) forwards;
}

.uvq06-lt .ht {
  margin: .5em 0 0;
  font-size: .74em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

@keyframes uvq06-lt {
  from {
    clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%);
    transform: translateX(1em);
  }
}

@keyframes uvq06-lt-p {
  to {
    opacity: 0;
    transform: translate(1.2em,-1.4em) rotate(16deg);
  }
}

@keyframes uvq06-lt-v {
  50% {
    transform: translateY(.04em);
  }
}

@keyframes uvq06-lt-x {
  25% {
    transform: translateX(-.2em);
  }
  50% {
    transform: translateX(.2em);
  }
  75% {
    transform: translateX(-.1em);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq06-lt,.uvq06-lt *,.uvq06-lt *::before,.uvq06-lt *::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 i=el.querySelector("input"),tp=el.querySelector(".tp");let t=0;
const add=(s,anim)=>{const li=document.createElement("li"),b=document.createElement("button");b.type="button";b.textContent=s;li.style.setProperty("--r",(Math.random()*3-1.5).toFixed(1)+"deg");if(anim)li.className="in";li.append(b);tp.prepend(li);
b.addEventListener("click",()=>{li.classList.add("pe");li.addEventListener("animationend",e=>{if(e.target===li)li.remove()})});while(tp.children.length>3)tp.lastChild.remove()};
el.addEventListener("submit",e=>{e.preventDefault();const s=i.value.trim().toUpperCase();if(!s){el.classList.remove("no");void el.offsetWidth;el.classList.add("no");i.focus();return}add(s,true);i.value="";el.classList.remove("go");void el.offsetWidth;el.classList.add("go");clearTimeout(t);t=setTimeout(()=>el.classList.remove("go"),900)});
add("KITCHEN",false);add("SPICES",false);return()=>clearTimeout(t)
}

export default function InLabelMaker() {
  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": "#b91c1c",
          "--c2": "#334155",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <form className="uvq06-lt"><div className="dv"><span className="br" aria-hidden="true">LT-27</span><div className="lcd"><label htmlFor="uvq06-lt-in" className="sr">Label text</label><input id="uvq06-lt-in" maxLength={14} autoComplete="off" spellCheck="false" placeholder="Label text" /></div><button type="submit" className="pr">Print</button><span className="sl" aria-hidden="true"></span></div><ul className="tp"></ul><p className="ht">Tap a label to peel it off</p></form>
      </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 “Embossed label maker input” block (Inputs) from AIMRAN Library to my project.

## What it is
Type on the tiny screen, press print and a plastic strip with raised letters feeds out, ready to be peeled off.

## Chosen settings
- Main color: #b91c1c
- Secondary color: #334155
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Texto de la etiqueta"

## 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 = `
.uvq06-lt {
  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: 19em;
}

.uvq06-lt .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.uvq06-lt .dv {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7em;
  padding: 1em .8em .8em .9em;
  border-radius: 1.1em 2.4em 2.4em 1.1em;
  background: linear-gradient(160deg,color-mix(in srgb,var(--c2) 80%,#fff),var(--c2) 45%,color-mix(in srgb,var(--c2) 70%,#000));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25),inset 0 -.2em 0 rgba(0,0,0,.25),0 1em 1.6em -.9em rgba(0,0,0,.6);
}

.uvq06-lt.go .dv {
  animation: uvq06-lt-v calc(0.9s / var(--k)) steps(9);
}

.uvq06-lt.no .lcd {
  animation: uvq06-lt-x calc(0.4s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-lt .br {
  position: absolute;
  left: 1.6em;
  top: .45em;
  font: 800 .5em/1 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .24em;
  color: rgba(255,255,255,.55);
}

.uvq06-lt .lcd {
  flex: 1;
  min-width: 0;
  padding: .3em .55em;
  border-radius: .45em;
  background: linear-gradient(#bcc7a4,#a7b48d);
  box-shadow: inset 0 .12em .25em rgba(0,0,0,.4),0 0 0 .18em rgba(0,0,0,.35);
  transition: box-shadow calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-lt .lcd:focus-within {
  box-shadow: inset 0 .12em .25em rgba(0,0,0,.4),0 0 0 .18em rgba(0,0,0,.35),0 0 0 .38em #fff;
}

.uvq06-lt .lcd input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font: 700 .85em/1.9 ui-monospace,"SF Mono",Menlo,Consolas,monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1c2416;
}

.uvq06-lt .lcd input::placeholder {
  letter-spacing: 0;
  text-transform: none;
  color: rgba(28,36,22,.5);
}

.uvq06-lt .pr {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  flex: none;
  padding: 1.05em 1.1em;
  border-radius: 2em;
  font-size: .68em;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--c1) 65%,#fff),var(--c1) 60%,color-mix(in srgb,var(--c1) 70%,#000));
  box-shadow: 0 .25em 0 color-mix(in srgb,var(--c1) 50%,#000),0 .45em .6em rgba(0,0,0,.4);
  transition: transform calc(0.1s / var(--k)) linear,box-shadow calc(0.1s / var(--k)) linear,filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-lt .pr:hover {
  filter: brightness(1.1);
}

.uvq06-lt .pr:active {
  transform: translateY(.22em);
  box-shadow: 0 .03em 0 color-mix(in srgb,var(--c1) 50%,#000),0 .1em .2em rgba(0,0,0,.4);
}

.uvq06-lt .pr:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.uvq06-lt .sl {
  position: absolute;
  right: 1.5em;
  bottom: -.12em;
  width: 4.5em;
  height: .3em;
  border-radius: .2em;
  background: #0b0b0b;
}

.uvq06-lt .tp {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5em;
  min-height: 5.6em;
  margin: .9em 1em 0 0;
  padding: 0;
  list-style: none;
}

.uvq06-lt .tp li {
  border-radius: .15em;
  filter: drop-shadow(0 .25em .3em rgba(0,0,0,.3));
}

.uvq06-lt .tp li:has(button:focus-visible) {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

.uvq06-lt .tp button {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  display: block;
  padding: .45em 1.15em .4em;
  font: 900 1em/1 "Arial Black","Helvetica Neue",Arial,sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.93);
  text-shadow: 0 -1px 0 rgba(0,0,0,.4),0 1px 0 rgba(255,255,255,.35);
  background: linear-gradient(color-mix(in srgb,var(--c1) 78%,#fff),var(--c1) 30%,var(--c1) 70%,color-mix(in srgb,var(--c1) 72%,#000));
  clip-path: polygon(.45em 0,100% 0,calc(100% - .45em) 100%,0 100%);
  rotate: var(--r,0deg);
  transition: transform calc(0.3s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq06-lt .tp button:hover {
  transform: translateY(-2px);
}

.uvq06-lt .tp li.in button {
  animation: uvq06-lt calc(0.9s / var(--k)) steps(9);
}

.uvq06-lt .tp li.pe {
  animation: uvq06-lt-p calc(0.5s / var(--k)) cubic-bezier(.25,.1,.25,1) forwards;
}

.uvq06-lt .ht {
  margin: .5em 0 0;
  font-size: .74em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

@keyframes uvq06-lt {
  from {
    clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%);
    transform: translateX(1em);
  }
}

@keyframes uvq06-lt-p {
  to {
    opacity: 0;
    transform: translate(1.2em,-1.4em) rotate(16deg);
  }
}

@keyframes uvq06-lt-v {
  50% {
    transform: translateY(.04em);
  }
}

@keyframes uvq06-lt-x {
  25% {
    transform: translateX(-.2em);
  }
  50% {
    transform: translateX(.2em);
  }
  75% {
    transform: translateX(-.1em);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq06-lt,.uvq06-lt *,.uvq06-lt *::before,.uvq06-lt *::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 i=el.querySelector("input"),tp=el.querySelector(".tp");let t=0;
const add=(s,anim)=>{const li=document.createElement("li"),b=document.createElement("button");b.type="button";b.textContent=s;li.style.setProperty("--r",(Math.random()*3-1.5).toFixed(1)+"deg");if(anim)li.className="in";li.append(b);tp.prepend(li);
b.addEventListener("click",()=>{li.classList.add("pe");li.addEventListener("animationend",e=>{if(e.target===li)li.remove()})});while(tp.children.length>3)tp.lastChild.remove()};
el.addEventListener("submit",e=>{e.preventDefault();const s=i.value.trim().toUpperCase();if(!s){el.classList.remove("no");void el.offsetWidth;el.classList.add("no");i.focus();return}add(s,true);i.value="";el.classList.remove("go");void el.offsetWidth;el.classList.add("go");clearTimeout(t);t=setTimeout(()=>el.classList.remove("go"),900)});
add("KITCHEN",false);add("SPICES",false);return()=>clearTimeout(t)
}

export default function InLabelMaker() {
  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": "#b91c1c",
          "--c2": "#334155",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <form className="uvq06-lt"><div className="dv"><span className="br" aria-hidden="true">LT-27</span><div className="lcd"><label htmlFor="uvq06-lt-in" className="sr">Label text</label><input id="uvq06-lt-in" maxLength={14} autoComplete="off" spellCheck="false" placeholder="Label text" /></div><button type="submit" className="pr">Print</button><span className="sl" aria-hidden="true"></span></div><ul className="tp"></ul><p className="ht">Tap a label to peel it off</p></form>
      </div>
    </>
  );
}
```

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