# Licence plate input

> A European number plate with a blue band and stars where you type four digits and three consonants, with a warning on vowels.

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

## Where to use it

This field is a full Spanish licence plate drawn in CSS: white reflective plate, black border, blue EU band with twelve SVG stars and a condensed typeface. The script splits what you type into four digits and three letters, rejects vowels, Ñ and Q with a short shake and a hint, and sweeps a shine across the plate once the format is valid.

The main color sets the band and the second color the stars, so you can adapt it to other countries. Use it in car insurance quotes, parking apps and rental forms, and change the letter rule in the script for other plate formats.

## Code

### HTML

```html
<div class="uvq06-pl"><label for="uvq06-pl-in" class="lb">Number plate</label><div class="pt"><span class="eu" aria-hidden="true"><svg viewBox="0 0 24 24"><polygon points="19.00,10.50 19.35,11.51 20.43,11.54 19.57,12.19 19.88,13.21 19.00,12.60 18.12,13.21 18.43,12.19 17.57,11.54 18.65,11.51"/><polygon points="18.06,14.00 18.41,15.01 19.49,15.04 18.63,15.69 18.94,16.71 18.06,16.10 17.18,16.71 17.49,15.69 16.64,15.04 17.71,15.01"/><polygon points="15.50,16.56 15.85,17.58 16.93,17.60 16.07,18.25 16.38,19.28 15.50,18.66 14.62,19.28 14.93,18.25 14.07,17.60 15.15,17.58"/><polygon points="12.00,17.50 12.35,18.51 13.43,18.54 12.57,19.19 12.88,20.21 12.00,19.60 11.12,20.21 11.43,19.19 10.57,18.54 11.65,18.51"/><polygon points="8.50,16.56 8.85,17.58 9.93,17.60 9.07,18.25 9.38,19.28 8.50,18.66 7.62,19.28 7.93,18.25 7.07,17.60 8.15,17.58"/><polygon points="5.94,14.00 6.29,15.01 7.36,15.04 6.51,15.69 6.82,16.71 5.94,16.10 5.06,16.71 5.37,15.69 4.51,15.04 5.59,15.01"/><polygon points="5.00,10.50 5.35,11.51 6.43,11.54 5.57,12.19 5.88,13.21 5.00,12.60 4.12,13.21 4.43,12.19 3.57,11.54 4.65,11.51"/><polygon points="5.94,7.00 6.29,8.01 7.36,8.04 6.51,8.69 6.82,9.71 5.94,9.10 5.06,9.71 5.37,8.69 4.51,8.04 5.59,8.01"/><polygon points="8.50,4.44 8.85,5.45 9.93,5.47 9.07,6.12 9.38,7.15 8.50,6.54 7.62,7.15 7.93,6.12 7.07,5.47 8.15,5.45"/><polygon points="12.00,3.50 12.35,4.51 13.43,4.54 12.57,5.19 12.88,6.21 12.00,5.60 11.12,6.21 11.43,5.19 10.57,4.54 11.65,4.51"/><polygon points="15.50,4.44 15.85,5.45 16.93,5.47 16.07,6.12 16.38,7.15 15.50,6.54 14.62,7.15 14.93,6.12 14.07,5.47 15.15,5.45"/><polygon points="18.06,7.00 18.41,8.01 19.49,8.04 18.63,8.69 18.94,9.71 18.06,9.10 17.18,9.71 17.49,8.69 16.64,8.04 17.71,8.01"/></svg><b>E</b></span><input id="uvq06-pl-in" maxlength="8" autocomplete="off" spellcheck="false" placeholder="0000 BBB" aria-describedby="uvq06-pl-h"></div><p class="ht" id="uvq06-pl-h">4 digits and 3 consonants</p></div>
```

### CSS

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

.uvq06-pl {
  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: 17em;
  perspective: 40em;
}

.uvq06-pl .lb {
  display: block;
  margin: 0 0 .45em;
  font-size: .82em;
  font-weight: 650;
}

.uvq06-pl .pt {
  position: relative;
  display: flex;
  height: 3.6em;
  border-radius: .5em;
  overflow: hidden;
  background: linear-gradient(170deg,#fff,#f1f1ec);
  box-shadow: inset 0 0 0 .12em #1a1a1a,0 0 0 .22em #c9ced4,0 0 0 calc(.22em + 1px) #8d939b,0 .9em 1.4em -.8em rgba(0,0,0,.6);
  transition: transform calc(0.5s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq06-pl .pt:hover {
  transform: rotateX(10deg) rotateY(-8deg);
}

.uvq06-pl .pt:has(input:focus-visible) {
  outline: 2px solid color-mix(in srgb,var(--c1) 60%,var(--fg));
  outline-offset: .45em;
}

.uvq06-pl .pt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,transparent 35%,rgba(255,255,255,.85) 50%,transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.uvq06-pl.ok .pt::after {
  animation: uvq06-pl calc(0.9s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-pl .eu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: none;
  width: 2em;
  margin: .12em 0 .12em .12em;
  padding: .32em 0 .28em;
  border-radius: .38em 0 0 .38em;
  color: #fff;
  background: var(--c1);
}

.uvq06-pl .eu svg {
  width: 1.55em;
  height: 1.55em;
  fill: var(--c2);
}

.uvq06-pl .eu b {
  font-size: .95em;
  font-weight: 800;
  line-height: 1;
}

.uvq06-pl input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 .2em;
  border: 0;
  outline: 0;
  background: none;
  text-align: center;
  font: 700 2.05em/1 "DIN Condensed","Arial Narrow","Roboto Condensed","Helvetica Neue",Arial,sans-serif;
  font-stretch: condensed;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111;
  caret-color: var(--c1);
}

.uvq06-pl input::placeholder {
  color: rgba(17,17,17,.16);
}

.uvq06-pl .ht {
  min-height: 1.2em;
  margin: .8em 0 0;
  font-size: .75em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  transition: color calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-pl.ok .ht {
  font-weight: 650;
  color: #16a34a;
}

.uvq06-pl.warn .ht {
  font-weight: 650;
  color: #e5484d;
}

.uvq06-pl.warn .pt {
  animation: uvq06-pl-x calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

@keyframes uvq06-pl {
  to {
    transform: translateX(120%);
  }
}

@keyframes uvq06-pl-x {
  25% {
    translate: -.2em 0;
  }
  50% {
    translate: .2em 0;
  }
  75% {
    translate: -.1em 0;
  }
}

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

### JavaScript

```js
document.querySelectorAll(".uvq06-pl").forEach(el => {
  const i=el.querySelector("input"),ht=el.querySelector(".ht"),base=ht.textContent,L="BCDFGHJKLMNPRSTVWXYZ";let t=0;
const say=(s,c)=>{ht.textContent=s;el.classList.toggle("ok",c==="or");if(c==="w"){el.classList.remove("warn");void el.offsetWidth}el.classList.toggle("warn",c==="w")};
const u=()=>{const raw=i.value.toUpperCase().replace(/[^0-9A-ZÑ]/g,"");let d="",l="",bad=false;for(const ch of raw){if(d.length<4){if(/\d/.test(ch))d+=ch;else bad=true}else if(l.length<3){if(L.includes(ch))l+=ch;else bad=true}}
i.value=d+(l?" "+l:"");clearTimeout(t);if(d.length===4&&l.length===3)say("Valid format","or");else if(bad){say(d.length<4?"The 4 digits come first":"No vowels, Ñ or Q","w");t=setTimeout(()=>say(base,""),1800)}else say(base,"")};
i.addEventListener("input",u);i.value="2748 KX";u();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-pl {
  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: 17em;
  perspective: 40em;
}

.uvq06-pl .lb {
  display: block;
  margin: 0 0 .45em;
  font-size: .82em;
  font-weight: 650;
}

.uvq06-pl .pt {
  position: relative;
  display: flex;
  height: 3.6em;
  border-radius: .5em;
  overflow: hidden;
  background: linear-gradient(170deg,#fff,#f1f1ec);
  box-shadow: inset 0 0 0 .12em #1a1a1a,0 0 0 .22em #c9ced4,0 0 0 calc(.22em + 1px) #8d939b,0 .9em 1.4em -.8em rgba(0,0,0,.6);
  transition: transform calc(0.5s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq06-pl .pt:hover {
  transform: rotateX(10deg) rotateY(-8deg);
}

.uvq06-pl .pt:has(input:focus-visible) {
  outline: 2px solid color-mix(in srgb,var(--c1) 60%,var(--fg));
  outline-offset: .45em;
}

.uvq06-pl .pt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,transparent 35%,rgba(255,255,255,.85) 50%,transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.uvq06-pl.ok .pt::after {
  animation: uvq06-pl calc(0.9s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-pl .eu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: none;
  width: 2em;
  margin: .12em 0 .12em .12em;
  padding: .32em 0 .28em;
  border-radius: .38em 0 0 .38em;
  color: #fff;
  background: var(--c1);
}

.uvq06-pl .eu svg {
  width: 1.55em;
  height: 1.55em;
  fill: var(--c2);
}

.uvq06-pl .eu b {
  font-size: .95em;
  font-weight: 800;
  line-height: 1;
}

.uvq06-pl input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 .2em;
  border: 0;
  outline: 0;
  background: none;
  text-align: center;
  font: 700 2.05em/1 "DIN Condensed","Arial Narrow","Roboto Condensed","Helvetica Neue",Arial,sans-serif;
  font-stretch: condensed;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111;
  caret-color: var(--c1);
}

.uvq06-pl input::placeholder {
  color: rgba(17,17,17,.16);
}

.uvq06-pl .ht {
  min-height: 1.2em;
  margin: .8em 0 0;
  font-size: .75em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  transition: color calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-pl.ok .ht {
  font-weight: 650;
  color: #16a34a;
}

.uvq06-pl.warn .ht {
  font-weight: 650;
  color: #e5484d;
}

.uvq06-pl.warn .pt {
  animation: uvq06-pl-x calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

@keyframes uvq06-pl {
  to {
    transform: translateX(120%);
  }
}

@keyframes uvq06-pl-x {
  25% {
    translate: -.2em 0;
  }
  50% {
    translate: .2em 0;
  }
  75% {
    translate: -.1em 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq06-pl,.uvq06-pl *,.uvq06-pl *::before,.uvq06-pl *::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"),ht=el.querySelector(".ht"),base=ht.textContent,L="BCDFGHJKLMNPRSTVWXYZ";let t=0;
const say=(s,c)=>{ht.textContent=s;el.classList.toggle("ok",c==="or");if(c==="w"){el.classList.remove("warn");void el.offsetWidth}el.classList.toggle("warn",c==="w")};
const u=()=>{const raw=i.value.toUpperCase().replace(/[^0-9A-ZÑ]/g,"");let d="",l="",bad=false;for(const ch of raw){if(d.length<4){if(/\d/.test(ch))d+=ch;else bad=true}else if(l.length<3){if(L.includes(ch))l+=ch;else bad=true}}
i.value=d+(l?" "+l:"");clearTimeout(t);if(d.length===4&&l.length===3)say("Valid format","or");else if(bad){say(d.length<4?"The 4 digits come first":"No vowels, Ñ or Q","w");t=setTimeout(()=>say(base,""),1800)}else say(base,"")};
i.addEventListener("input",u);i.value="2748 KX";u();return()=>clearTimeout(t)
}

export default function InPlate() {
  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": "#003399",
          "--c2": "#ffcc00",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq06-pl"><label htmlFor="uvq06-pl-in" className="lb">Number plate</label><div className="pt"><span className="eu" aria-hidden="true"><svg viewBox="0 0 24 24"><polygon points="19.00,10.50 19.35,11.51 20.43,11.54 19.57,12.19 19.88,13.21 19.00,12.60 18.12,13.21 18.43,12.19 17.57,11.54 18.65,11.51" /><polygon points="18.06,14.00 18.41,15.01 19.49,15.04 18.63,15.69 18.94,16.71 18.06,16.10 17.18,16.71 17.49,15.69 16.64,15.04 17.71,15.01" /><polygon points="15.50,16.56 15.85,17.58 16.93,17.60 16.07,18.25 16.38,19.28 15.50,18.66 14.62,19.28 14.93,18.25 14.07,17.60 15.15,17.58" /><polygon points="12.00,17.50 12.35,18.51 13.43,18.54 12.57,19.19 12.88,20.21 12.00,19.60 11.12,20.21 11.43,19.19 10.57,18.54 11.65,18.51" /><polygon points="8.50,16.56 8.85,17.58 9.93,17.60 9.07,18.25 9.38,19.28 8.50,18.66 7.62,19.28 7.93,18.25 7.07,17.60 8.15,17.58" /><polygon points="5.94,14.00 6.29,15.01 7.36,15.04 6.51,15.69 6.82,16.71 5.94,16.10 5.06,16.71 5.37,15.69 4.51,15.04 5.59,15.01" /><polygon points="5.00,10.50 5.35,11.51 6.43,11.54 5.57,12.19 5.88,13.21 5.00,12.60 4.12,13.21 4.43,12.19 3.57,11.54 4.65,11.51" /><polygon points="5.94,7.00 6.29,8.01 7.36,8.04 6.51,8.69 6.82,9.71 5.94,9.10 5.06,9.71 5.37,8.69 4.51,8.04 5.59,8.01" /><polygon points="8.50,4.44 8.85,5.45 9.93,5.47 9.07,6.12 9.38,7.15 8.50,6.54 7.62,7.15 7.93,6.12 7.07,5.47 8.15,5.45" /><polygon points="12.00,3.50 12.35,4.51 13.43,4.54 12.57,5.19 12.88,6.21 12.00,5.60 11.12,6.21 11.43,5.19 10.57,4.54 11.65,4.51" /><polygon points="15.50,4.44 15.85,5.45 16.93,5.47 16.07,6.12 16.38,7.15 15.50,6.54 14.62,7.15 14.93,6.12 14.07,5.47 15.15,5.45" /><polygon points="18.06,7.00 18.41,8.01 19.49,8.04 18.63,8.69 18.94,9.71 18.06,9.10 17.18,9.71 17.49,8.69 16.64,8.04 17.71,8.01" /></svg><b>E</b></span><input id="uvq06-pl-in" maxLength={8} autoComplete="off" spellCheck="false" placeholder="0000 BBB" aria-describedby="uvq06-pl-h" /></div><p className="ht" id="uvq06-pl-h">4 digits and 3 consonants</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 “Licence plate input” block (Inputs) from AIMRAN Library to my project.

## What it is
A European number plate with a blue band and stars where you type four digits and three consonants, with a warning on vowels.

## Chosen settings
- Main color: #003399
- Secondary color: #ffcc00
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Matrícula"

## 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-pl {
  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: 17em;
  perspective: 40em;
}

.uvq06-pl .lb {
  display: block;
  margin: 0 0 .45em;
  font-size: .82em;
  font-weight: 650;
}

.uvq06-pl .pt {
  position: relative;
  display: flex;
  height: 3.6em;
  border-radius: .5em;
  overflow: hidden;
  background: linear-gradient(170deg,#fff,#f1f1ec);
  box-shadow: inset 0 0 0 .12em #1a1a1a,0 0 0 .22em #c9ced4,0 0 0 calc(.22em + 1px) #8d939b,0 .9em 1.4em -.8em rgba(0,0,0,.6);
  transition: transform calc(0.5s / var(--k)) cubic-bezier(.34,1.56,.64,1);
}

.uvq06-pl .pt:hover {
  transform: rotateX(10deg) rotateY(-8deg);
}

.uvq06-pl .pt:has(input:focus-visible) {
  outline: 2px solid color-mix(in srgb,var(--c1) 60%,var(--fg));
  outline-offset: .45em;
}

.uvq06-pl .pt::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,transparent 35%,rgba(255,255,255,.85) 50%,transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}

.uvq06-pl.ok .pt::after {
  animation: uvq06-pl calc(0.9s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-pl .eu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: none;
  width: 2em;
  margin: .12em 0 .12em .12em;
  padding: .32em 0 .28em;
  border-radius: .38em 0 0 .38em;
  color: #fff;
  background: var(--c1);
}

.uvq06-pl .eu svg {
  width: 1.55em;
  height: 1.55em;
  fill: var(--c2);
}

.uvq06-pl .eu b {
  font-size: .95em;
  font-weight: 800;
  line-height: 1;
}

.uvq06-pl input {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 .2em;
  border: 0;
  outline: 0;
  background: none;
  text-align: center;
  font: 700 2.05em/1 "DIN Condensed","Arial Narrow","Roboto Condensed","Helvetica Neue",Arial,sans-serif;
  font-stretch: condensed;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #111;
  caret-color: var(--c1);
}

.uvq06-pl input::placeholder {
  color: rgba(17,17,17,.16);
}

.uvq06-pl .ht {
  min-height: 1.2em;
  margin: .8em 0 0;
  font-size: .75em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  transition: color calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq06-pl.ok .ht {
  font-weight: 650;
  color: #16a34a;
}

.uvq06-pl.warn .ht {
  font-weight: 650;
  color: #e5484d;
}

.uvq06-pl.warn .pt {
  animation: uvq06-pl-x calc(0.35s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

@keyframes uvq06-pl {
  to {
    transform: translateX(120%);
  }
}

@keyframes uvq06-pl-x {
  25% {
    translate: -.2em 0;
  }
  50% {
    translate: .2em 0;
  }
  75% {
    translate: -.1em 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq06-pl,.uvq06-pl *,.uvq06-pl *::before,.uvq06-pl *::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"),ht=el.querySelector(".ht"),base=ht.textContent,L="BCDFGHJKLMNPRSTVWXYZ";let t=0;
const say=(s,c)=>{ht.textContent=s;el.classList.toggle("ok",c==="or");if(c==="w"){el.classList.remove("warn");void el.offsetWidth}el.classList.toggle("warn",c==="w")};
const u=()=>{const raw=i.value.toUpperCase().replace(/[^0-9A-ZÑ]/g,"");let d="",l="",bad=false;for(const ch of raw){if(d.length<4){if(/\d/.test(ch))d+=ch;else bad=true}else if(l.length<3){if(L.includes(ch))l+=ch;else bad=true}}
i.value=d+(l?" "+l:"");clearTimeout(t);if(d.length===4&&l.length===3)say("Valid format","or");else if(bad){say(d.length<4?"The 4 digits come first":"No vowels, Ñ or Q","w");t=setTimeout(()=>say(base,""),1800)}else say(base,"")};
i.addEventListener("input",u);i.value="2748 KX";u();return()=>clearTimeout(t)
}

export default function InPlate() {
  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": "#003399",
          "--c2": "#ffcc00",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq06-pl"><label htmlFor="uvq06-pl-in" className="lb">Number plate</label><div className="pt"><span className="eu" aria-hidden="true"><svg viewBox="0 0 24 24"><polygon points="19.00,10.50 19.35,11.51 20.43,11.54 19.57,12.19 19.88,13.21 19.00,12.60 18.12,13.21 18.43,12.19 17.57,11.54 18.65,11.51" /><polygon points="18.06,14.00 18.41,15.01 19.49,15.04 18.63,15.69 18.94,16.71 18.06,16.10 17.18,16.71 17.49,15.69 16.64,15.04 17.71,15.01" /><polygon points="15.50,16.56 15.85,17.58 16.93,17.60 16.07,18.25 16.38,19.28 15.50,18.66 14.62,19.28 14.93,18.25 14.07,17.60 15.15,17.58" /><polygon points="12.00,17.50 12.35,18.51 13.43,18.54 12.57,19.19 12.88,20.21 12.00,19.60 11.12,20.21 11.43,19.19 10.57,18.54 11.65,18.51" /><polygon points="8.50,16.56 8.85,17.58 9.93,17.60 9.07,18.25 9.38,19.28 8.50,18.66 7.62,19.28 7.93,18.25 7.07,17.60 8.15,17.58" /><polygon points="5.94,14.00 6.29,15.01 7.36,15.04 6.51,15.69 6.82,16.71 5.94,16.10 5.06,16.71 5.37,15.69 4.51,15.04 5.59,15.01" /><polygon points="5.00,10.50 5.35,11.51 6.43,11.54 5.57,12.19 5.88,13.21 5.00,12.60 4.12,13.21 4.43,12.19 3.57,11.54 4.65,11.51" /><polygon points="5.94,7.00 6.29,8.01 7.36,8.04 6.51,8.69 6.82,9.71 5.94,9.10 5.06,9.71 5.37,8.69 4.51,8.04 5.59,8.01" /><polygon points="8.50,4.44 8.85,5.45 9.93,5.47 9.07,6.12 9.38,7.15 8.50,6.54 7.62,7.15 7.93,6.12 7.07,5.47 8.15,5.45" /><polygon points="12.00,3.50 12.35,4.51 13.43,4.54 12.57,5.19 12.88,6.21 12.00,5.60 11.12,6.21 11.43,5.19 10.57,4.54 11.65,4.51" /><polygon points="15.50,4.44 15.85,5.45 16.93,5.47 16.07,6.12 16.38,7.15 15.50,6.54 14.62,7.15 14.93,6.12 14.07,5.47 15.15,5.45" /><polygon points="18.06,7.00 18.41,8.01 19.49,8.04 18.63,8.69 18.94,9.71 18.06,9.10 17.18,9.71 17.49,8.69 16.64,8.04 17.71,8.01" /></svg><b>E</b></span><input id="uvq06-pl-in" maxLength={8} autoComplete="off" spellCheck="false" placeholder="0000 BBB" aria-describedby="uvq06-pl-h" /></div><p className="ht" id="uvq06-pl-h">4 digits and 3 consonants</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.
````
