# Dashboard warning light toast

> Like a car dashboard: the amber warning light runs its bulb check and the underinflated tyre keeps blinking.

- Category: [Toasts](https://library.aimran.es/components/toasts)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-toast-car-warning
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Drivers read dashboard symbols in a split second, which makes them a strong model for urgent alerts. This toast uses a dark instrument panel, an amber tyre pressure symbol that flickers through a bulb check, and a top view of the car where the affected wheel pulses. It suits fleet software, connected car apps, smart home sensors and IoT dashboards.

The main color is the warning amber and the second color marks the tyres that are fine. Because it uses role alert, keep it for problems that need attention now, and point the Got it button at your own acknowledge action.

## Code

### HTML

```html
<div class="uvq09-car"><button type="button" class="fire">Show again</button><div class="tt" role="alert"><span class="ic" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.9" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M6.5 5C4.5 7.2 3.5 9.6 3.5 12.2c0 2.4.8 4.4 2 6M17.5 5c2 2.2 3 4.6 3 7.2 0 2.4-.8 4.4-2 6"/><path d="M5 18.4h14M5.5 20.6l.8-2.2M9.5 20.6l.4-2.2M14.5 20.6l-.4-2.2M18.5 20.6l-.8-2.2M12 8v5.2M12 15.9v.01"/></svg></span><span class="tx"><b>Low tyre pressure</b><small>Front left: 1.6 bar</small><button type="button" class="ok">Got it</button></span><span class="cr" aria-hidden="true"><svg viewBox="0 0 40 64"><rect class="w lo" x="2" y="10" width="6" height="12" rx="2"/><rect class="w" x="32" y="10" width="6" height="12" rx="2"/><rect class="w" x="2" y="43" width="6" height="12" rx="2"/><rect class="w" x="32" y="43" width="6" height="12" rx="2"/><path class="bd" d="M10 7c0-3 3-5 10-5s10 2 10 5v50c0 3-3 5-10 5s-10-2-10-5z"/><path class="gl" d="M12.5 20.5c2.5-2.2 12.5-2.2 15 0l-1.6 7H14.1zM13.6 45.5h12.8l1.1 6c-2.5 1.7-12.5 1.7-15 0z"/></svg></span></div></div>
```

### CSS

```css
.uvq09-car {
  --c1: #f59e0b;
  --c2: #38bdf8;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq09-car {
  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;
  position: relative;
  width: 21em;
  height: 15em;
}

.uvq09-car .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-car .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-car .fire:active {
  scale: .96;
}

.uvq09-car .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-car .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .85em .9em;
  border-radius: 1em;
  color: #e5e7eb;
  background: radial-gradient(130% 150% at 15% 0,#1f2833,#0a0d12 70%);
  box-shadow: 0 0 0 1px #000,inset 0 1px rgba(255,255,255,.07),0 1.2em 2.4em -1em rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(1em) scale(.97);
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq09-car .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-car .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  color: var(--c1);
  background: radial-gradient(circle,color-mix(in srgb,var(--c1) 22%,transparent),transparent 70%);
}

.uvq09-car .ic svg {
  width: 1.85em;
  height: 1.85em;
  filter: drop-shadow(0 0 .35em var(--c1));
}

.uvq09-car .tt.in .ic svg {
  animation: uvq09-car-l calc(0.9s / var(--k)) steps(1) calc(0.2s / var(--k)) both;
}

.uvq09-car .tx {
  display: grid;
  flex: 1;
  gap: .15em;
  justify-items: start;
}

.uvq09-car .tx b {
  font-size: .9em;
  line-height: 1.2;
}

.uvq09-car small {
  font-size: .72em;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.uvq09-car .ok {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: .4em;
  padding: .42em .8em;
  border-radius: .45em;
  font-size: .72em;
  font-weight: 750;
  color: #1c1204;
  background: var(--c1);
  transition: filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-car .ok:hover {
  filter: brightness(1.12);
}

.uvq09-car .ok:active {
  scale: .95;
}

.uvq09-car .ok:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-car .cr {
  flex: none;
  width: 2.4em;
}

.uvq09-car .cr svg {
  display: block;
  width: 100%;
  height: auto;
}

.uvq09-car .bd {
  fill: #151a21;
  stroke: #9ca3af;
  stroke-width: 1.5;
}

.uvq09-car .gl {
  fill: rgba(156,163,175,.28);
}

.uvq09-car .w {
  fill: var(--c2);
  opacity: .7;
}

.uvq09-car .lo {
  fill: var(--c1);
  opacity: 1;
  animation: uvq09-car-b calc(1.1s / var(--k)) ease-in-out infinite;
}

@keyframes uvq09-car-l {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  28% {
    opacity: .15;
  }
  42% {
    opacity: 1;
  }
  55% {
    opacity: .3;
  }
  70%,100% {
    opacity: 1;
  }
}

@keyframes uvq09-car-b {
  50% {
    opacity: .25;
  }
}

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

### JavaScript

```js
document.querySelectorAll(".uvq09-car").forEach(el => {
  const t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".ok").addEventListener("click",hide);return clr
});
```

### 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 = `
.uvq09-car {
  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;
  position: relative;
  width: 21em;
  height: 15em;
}

.uvq09-car .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-car .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-car .fire:active {
  scale: .96;
}

.uvq09-car .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-car .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .85em .9em;
  border-radius: 1em;
  color: #e5e7eb;
  background: radial-gradient(130% 150% at 15% 0,#1f2833,#0a0d12 70%);
  box-shadow: 0 0 0 1px #000,inset 0 1px rgba(255,255,255,.07),0 1.2em 2.4em -1em rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(1em) scale(.97);
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq09-car .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-car .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  color: var(--c1);
  background: radial-gradient(circle,color-mix(in srgb,var(--c1) 22%,transparent),transparent 70%);
}

.uvq09-car .ic svg {
  width: 1.85em;
  height: 1.85em;
  filter: drop-shadow(0 0 .35em var(--c1));
}

.uvq09-car .tt.in .ic svg {
  animation: uvq09-car-l calc(0.9s / var(--k)) steps(1) calc(0.2s / var(--k)) both;
}

.uvq09-car .tx {
  display: grid;
  flex: 1;
  gap: .15em;
  justify-items: start;
}

.uvq09-car .tx b {
  font-size: .9em;
  line-height: 1.2;
}

.uvq09-car small {
  font-size: .72em;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.uvq09-car .ok {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: .4em;
  padding: .42em .8em;
  border-radius: .45em;
  font-size: .72em;
  font-weight: 750;
  color: #1c1204;
  background: var(--c1);
  transition: filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-car .ok:hover {
  filter: brightness(1.12);
}

.uvq09-car .ok:active {
  scale: .95;
}

.uvq09-car .ok:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-car .cr {
  flex: none;
  width: 2.4em;
}

.uvq09-car .cr svg {
  display: block;
  width: 100%;
  height: auto;
}

.uvq09-car .bd {
  fill: #151a21;
  stroke: #9ca3af;
  stroke-width: 1.5;
}

.uvq09-car .gl {
  fill: rgba(156,163,175,.28);
}

.uvq09-car .w {
  fill: var(--c2);
  opacity: .7;
}

.uvq09-car .lo {
  fill: var(--c1);
  opacity: 1;
  animation: uvq09-car-b calc(1.1s / var(--k)) ease-in-out infinite;
}

@keyframes uvq09-car-l {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  28% {
    opacity: .15;
  }
  42% {
    opacity: 1;
  }
  55% {
    opacity: .3;
  }
  70%,100% {
    opacity: 1;
  }
}

@keyframes uvq09-car-b {
  50% {
    opacity: .25;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-car,.uvq09-car *,.uvq09-car *::before,.uvq09-car *::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 t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".ok").addEventListener("click",hide);return clr
}

export default function ToastCarWarning() {
  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": "#f59e0b",
          "--c2": "#38bdf8",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-car"><button type="button" className="fire">Show again</button><div className="tt" role="alert"><span className="ic" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.9" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M6.5 5C4.5 7.2 3.5 9.6 3.5 12.2c0 2.4.8 4.4 2 6M17.5 5c2 2.2 3 4.6 3 7.2 0 2.4-.8 4.4-2 6" /><path d="M5 18.4h14M5.5 20.6l.8-2.2M9.5 20.6l.4-2.2M14.5 20.6l-.4-2.2M18.5 20.6l-.8-2.2M12 8v5.2M12 15.9v.01" /></svg></span><span className="tx"><b>Low tyre pressure</b><small>Front left: 1.6 bar</small><button type="button" className="ok">Got it</button></span><span className="cr" aria-hidden="true"><svg viewBox="0 0 40 64"><rect className="w lo" x="2" y="10" width="6" height="12" rx="2" /><rect className="w" x="32" y="10" width="6" height="12" rx="2" /><rect className="w" x="2" y="43" width="6" height="12" rx="2" /><rect className="w" x="32" y="43" width="6" height="12" rx="2" /><path className="bd" d="M10 7c0-3 3-5 10-5s10 2 10 5v50c0 3-3 5-10 5s-10-2-10-5z" /><path className="gl" d="M12.5 20.5c2.5-2.2 12.5-2.2 15 0l-1.6 7H14.1zM13.6 45.5h12.8l1.1 6c-2.5 1.7-12.5 1.7-15 0z" /></svg></span></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 “Dashboard warning light toast” block (Toasts) from AIMRAN Library to my project.

## What it is
Like a car dashboard: the amber warning light runs its bulb check and the underinflated tyre keeps blinking.

## Chosen settings
- Main color: #f59e0b
- Secondary color: #38bdf8
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Presión baja en un neumático"

## 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 = `
.uvq09-car {
  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;
  position: relative;
  width: 21em;
  height: 15em;
}

.uvq09-car .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-car .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-car .fire:active {
  scale: .96;
}

.uvq09-car .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-car .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .85em .9em;
  border-radius: 1em;
  color: #e5e7eb;
  background: radial-gradient(130% 150% at 15% 0,#1f2833,#0a0d12 70%);
  box-shadow: 0 0 0 1px #000,inset 0 1px rgba(255,255,255,.07),0 1.2em 2.4em -1em rgba(0,0,0,.6);
  opacity: 0;
  transform: translateY(1em) scale(.97);
  transition: opacity calc(0.25s / var(--k)) cubic-bezier(.25,.1,.25,1),transform calc(0.45s / var(--k)) cubic-bezier(.22,1,.36,1);
}

.uvq09-car .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-car .ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.7em;
  height: 2.7em;
  border-radius: 50%;
  color: var(--c1);
  background: radial-gradient(circle,color-mix(in srgb,var(--c1) 22%,transparent),transparent 70%);
}

.uvq09-car .ic svg {
  width: 1.85em;
  height: 1.85em;
  filter: drop-shadow(0 0 .35em var(--c1));
}

.uvq09-car .tt.in .ic svg {
  animation: uvq09-car-l calc(0.9s / var(--k)) steps(1) calc(0.2s / var(--k)) both;
}

.uvq09-car .tx {
  display: grid;
  flex: 1;
  gap: .15em;
  justify-items: start;
}

.uvq09-car .tx b {
  font-size: .9em;
  line-height: 1.2;
}

.uvq09-car small {
  font-size: .72em;
  color: #9ca3af;
  font-variant-numeric: tabular-nums;
}

.uvq09-car .ok {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  margin-top: .4em;
  padding: .42em .8em;
  border-radius: .45em;
  font-size: .72em;
  font-weight: 750;
  color: #1c1204;
  background: var(--c1);
  transition: filter calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-car .ok:hover {
  filter: brightness(1.12);
}

.uvq09-car .ok:active {
  scale: .95;
}

.uvq09-car .ok:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-car .cr {
  flex: none;
  width: 2.4em;
}

.uvq09-car .cr svg {
  display: block;
  width: 100%;
  height: auto;
}

.uvq09-car .bd {
  fill: #151a21;
  stroke: #9ca3af;
  stroke-width: 1.5;
}

.uvq09-car .gl {
  fill: rgba(156,163,175,.28);
}

.uvq09-car .w {
  fill: var(--c2);
  opacity: .7;
}

.uvq09-car .lo {
  fill: var(--c1);
  opacity: 1;
  animation: uvq09-car-b calc(1.1s / var(--k)) ease-in-out infinite;
}

@keyframes uvq09-car-l {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  28% {
    opacity: .15;
  }
  42% {
    opacity: 1;
  }
  55% {
    opacity: .3;
  }
  70%,100% {
    opacity: 1;
  }
}

@keyframes uvq09-car-b {
  50% {
    opacity: .25;
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-car,.uvq09-car *,.uvq09-car *::before,.uvq09-car *::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 t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();t.querySelector(".ok").addEventListener("click",hide);return clr
}

export default function ToastCarWarning() {
  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": "#f59e0b",
          "--c2": "#38bdf8",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-car"><button type="button" className="fire">Show again</button><div className="tt" role="alert"><span className="ic" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.9" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true"><path d="M6.5 5C4.5 7.2 3.5 9.6 3.5 12.2c0 2.4.8 4.4 2 6M17.5 5c2 2.2 3 4.6 3 7.2 0 2.4-.8 4.4-2 6" /><path d="M5 18.4h14M5.5 20.6l.8-2.2M9.5 20.6l.4-2.2M14.5 20.6l-.4-2.2M18.5 20.6l-.8-2.2M12 8v5.2M12 15.9v.01" /></svg></span><span className="tx"><b>Low tyre pressure</b><small>Front left: 1.6 bar</small><button type="button" className="ok">Got it</button></span><span className="cr" aria-hidden="true"><svg viewBox="0 0 40 64"><rect className="w lo" x="2" y="10" width="6" height="12" rx="2" /><rect className="w" x="32" y="10" width="6" height="12" rx="2" /><rect className="w" x="2" y="43" width="6" height="12" rx="2" /><rect className="w" x="32" y="43" width="6" height="12" rx="2" /><path className="bd" d="M10 7c0-3 3-5 10-5s10 2 10 5v50c0 3-3 5-10 5s-10-2-10-5z" /><path className="gl" d="M12.5 20.5c2.5-2.2 12.5-2.2 15 0l-1.6 7H14.1zM13.6 45.5h12.8l1.1 6c-2.5 1.7-12.5 1.7-15 0z" /></svg></span></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.
````
