# Priority mixer faders

> Four mixing desk faders with LED meters that set how much each criterion weighs when results are sorted.

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

## Where to use it

Instead of a single sort menu, this filter lets people balance several criteria at once, the way a sound engineer balances channels. Each fader is a native range input turned on its side, with a segmented LED meter and a paper scribble strip for the name. It suits hotel, rental or product search where price, distance and rating all matter.

Set the meter colours with the two colour controls, for example from green to amber, and rename the channels in the code. Show the leading criterion next to the results so people see why the order changed after each move.

## Code

### HTML

```html
<fieldset class="uvq05-mx"><legend>What matters most?</legend><div class="ch"><div class="c" style="--v:0.6"><div class="sc"><span class="ld" aria-hidden="true"></span><span class="tr"><input type="range" min="0" max="100" value="60" aria-label="Price"></span></div><output>60</output><span class="nm" aria-hidden="true">Price</span></div><div class="c" style="--v:0.35"><div class="sc"><span class="ld" aria-hidden="true"></span><span class="tr"><input type="range" min="0" max="100" value="35" aria-label="Distance"></span></div><output>35</output><span class="nm" aria-hidden="true">Distance</span></div><div class="c" style="--v:0.8"><div class="sc"><span class="ld" aria-hidden="true"></span><span class="tr"><input type="range" min="0" max="100" value="80" aria-label="Rating"></span></div><output>80</output><span class="nm" aria-hidden="true">Rating</span></div><div class="c" style="--v:0.45"><div class="sc"><span class="ld" aria-hidden="true"></span><span class="tr"><input type="range" min="0" max="100" value="45" aria-label="Quiet"></span></div><output>45</output><span class="nm" aria-hidden="true">Quiet</span></div></div><p class="tp"><span>Priority:</span> <b>Rating</b></p></fieldset>
```

### CSS

```css
.uvq05-mx {
  --c1: #3ddc84;
  --c2: #ffc23d;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq05-mx {
  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;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 18.5em;
  padding: .9em 1em 1em;
  border-radius: 1em;
  background: linear-gradient(#2a2c31,#18191c);
  color: #ecebe6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09),0 0 0 1px rgba(0,0,0,.4),0 1.4em 2.6em -1.4em rgba(0,0,0,.65);
}

.uvq05-mx legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 .9em;
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.uvq05-mx .ch {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .3em;
}

.uvq05-mx .c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45em;
  min-width: 0;
}

.uvq05-mx .sc {
  display: flex;
  gap: .3em;
  height: 8.5em;
  padding: .4em .35em;
  border-radius: .45em;
  background: #101113;
  box-shadow: inset 0 .1em .3em #000,0 1px 0 rgba(255,255,255,.06);
}

.uvq05-mx .ld {
  width: .32em;
  border-radius: .15em;
  background: repeating-linear-gradient(to top,transparent 0 .32em,#101113 .32em .45em),linear-gradient(to top,var(--c1) 0 55%,var(--c2) 80%,#ff4d4d);
  -webkit-mask: linear-gradient(to top,#000 calc(var(--v) * 100%),rgba(0,0,0,.14) 0);
  mask: linear-gradient(to top,#000 calc(var(--v) * 100%),rgba(0,0,0,.14) 0);
}

.uvq05-mx .tr {
  position: relative;
  width: 1.7em;
}

.uvq05-mx .tr::before {
  content: "";
  position: absolute;
  left: 50%;
  top: .2em;
  bottom: .2em;
  width: .26em;
  margin-left: -.13em;
  border-radius: .2em;
  background: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.uvq05-mx .tr::after {
  content: "";
  position: absolute;
  inset: .2em 0;
  background: linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px) left top/.3em 12.5% repeat-y,linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px) right top/.3em 12.5% repeat-y;
  pointer-events: none;
}

.uvq05-mx input {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 7.7em;
  height: 1.7em;
  margin: 0;
  transform: translate(-50%,-50%) rotate(-90deg);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.uvq05-mx input:active {
  cursor: grabbing;
}

.uvq05-mx input:focus {
  outline: 0;
}

.uvq05-mx input::-webkit-slider-runnable-track {
  height: 1.7em;
  background: transparent;
}

.uvq05-mx input::-moz-range-track {
  background: transparent;
}

.uvq05-mx input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.1em;
  height: 1.7em;
  border-radius: .2em;
  background: linear-gradient(90deg,#7c7f86,#e9ebee 22%,#cfd2d6 42%,#151515 42% 58%,#cfd2d6 58%,#e9ebee 78%,#7c7f86);
  box-shadow: 0 0 .5em rgba(0,0,0,.75);
  transition: transform calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mx input::-moz-range-thumb {
  width: 1.1em;
  height: 1.7em;
  border: 0;
  border-radius: .2em;
  background: linear-gradient(90deg,#7c7f86,#e9ebee 22%,#cfd2d6 42%,#151515 42% 58%,#cfd2d6 58%,#e9ebee 78%,#7c7f86);
  box-shadow: 0 0 .5em rgba(0,0,0,.75);
}

.uvq05-mx input:active::-webkit-slider-thumb {
  transform: scaleY(1.08);
}

.uvq05-mx .tr:has(input:focus-visible) {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
  border-radius: .3em;
}

.uvq05-mx output {
  font: 700 .68em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color: var(--c1);
  font-variant-numeric: tabular-nums;
}

.uvq05-mx .nm {
  max-width: 100%;
  padding: .22em .35em;
  border-radius: .15em;
  font-size: .6em;
  font-weight: 700;
  color: #232323;
  background: #efeadb;
  transform: rotate(-1.5deg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mx .c:nth-child(even) .nm {
  transform: rotate(1.2deg);
}

.uvq05-mx .c.is-top .nm {
  background: var(--c1);
  color: #0f1a12;
}

.uvq05-mx .tp {
  margin: .85em 0 0;
  font-size: .78em;
  color: rgba(236,235,230,.65);
}

.uvq05-mx .tp b {
  color: #fff;
}
```

### JavaScript

```js
document.querySelectorAll(".uvq05-mx").forEach(el => {
  const cs=[...el.querySelectorAll(".c")],tp=el.querySelector(".tp b");
const u=()=>{let m=cs[0],mv=-1;cs.forEach(c=>{const i=c.querySelector("input"),v=+i.value;c.style.setProperty("--v",(v/100).toFixed(2));c.querySelector("output").textContent=v;if(v>mv){mv=v;m=c}});cs.forEach(c=>c.classList.toggle("is-top",c===m));tp.textContent=m.querySelector(".nm").textContent};
cs.forEach(c=>c.querySelector("input").addEventListener("input",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-mx {
  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;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 18.5em;
  padding: .9em 1em 1em;
  border-radius: 1em;
  background: linear-gradient(#2a2c31,#18191c);
  color: #ecebe6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09),0 0 0 1px rgba(0,0,0,.4),0 1.4em 2.6em -1.4em rgba(0,0,0,.65);
}

.uvq05-mx legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 .9em;
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.uvq05-mx .ch {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .3em;
}

.uvq05-mx .c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45em;
  min-width: 0;
}

.uvq05-mx .sc {
  display: flex;
  gap: .3em;
  height: 8.5em;
  padding: .4em .35em;
  border-radius: .45em;
  background: #101113;
  box-shadow: inset 0 .1em .3em #000,0 1px 0 rgba(255,255,255,.06);
}

.uvq05-mx .ld {
  width: .32em;
  border-radius: .15em;
  background: repeating-linear-gradient(to top,transparent 0 .32em,#101113 .32em .45em),linear-gradient(to top,var(--c1) 0 55%,var(--c2) 80%,#ff4d4d);
  -webkit-mask: linear-gradient(to top,#000 calc(var(--v) * 100%),rgba(0,0,0,.14) 0);
  mask: linear-gradient(to top,#000 calc(var(--v) * 100%),rgba(0,0,0,.14) 0);
}

.uvq05-mx .tr {
  position: relative;
  width: 1.7em;
}

.uvq05-mx .tr::before {
  content: "";
  position: absolute;
  left: 50%;
  top: .2em;
  bottom: .2em;
  width: .26em;
  margin-left: -.13em;
  border-radius: .2em;
  background: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.uvq05-mx .tr::after {
  content: "";
  position: absolute;
  inset: .2em 0;
  background: linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px) left top/.3em 12.5% repeat-y,linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px) right top/.3em 12.5% repeat-y;
  pointer-events: none;
}

.uvq05-mx input {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 7.7em;
  height: 1.7em;
  margin: 0;
  transform: translate(-50%,-50%) rotate(-90deg);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.uvq05-mx input:active {
  cursor: grabbing;
}

.uvq05-mx input:focus {
  outline: 0;
}

.uvq05-mx input::-webkit-slider-runnable-track {
  height: 1.7em;
  background: transparent;
}

.uvq05-mx input::-moz-range-track {
  background: transparent;
}

.uvq05-mx input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.1em;
  height: 1.7em;
  border-radius: .2em;
  background: linear-gradient(90deg,#7c7f86,#e9ebee 22%,#cfd2d6 42%,#151515 42% 58%,#cfd2d6 58%,#e9ebee 78%,#7c7f86);
  box-shadow: 0 0 .5em rgba(0,0,0,.75);
  transition: transform calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mx input::-moz-range-thumb {
  width: 1.1em;
  height: 1.7em;
  border: 0;
  border-radius: .2em;
  background: linear-gradient(90deg,#7c7f86,#e9ebee 22%,#cfd2d6 42%,#151515 42% 58%,#cfd2d6 58%,#e9ebee 78%,#7c7f86);
  box-shadow: 0 0 .5em rgba(0,0,0,.75);
}

.uvq05-mx input:active::-webkit-slider-thumb {
  transform: scaleY(1.08);
}

.uvq05-mx .tr:has(input:focus-visible) {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
  border-radius: .3em;
}

.uvq05-mx output {
  font: 700 .68em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color: var(--c1);
  font-variant-numeric: tabular-nums;
}

.uvq05-mx .nm {
  max-width: 100%;
  padding: .22em .35em;
  border-radius: .15em;
  font-size: .6em;
  font-weight: 700;
  color: #232323;
  background: #efeadb;
  transform: rotate(-1.5deg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mx .c:nth-child(even) .nm {
  transform: rotate(1.2deg);
}

.uvq05-mx .c.is-top .nm {
  background: var(--c1);
  color: #0f1a12;
}

.uvq05-mx .tp {
  margin: .85em 0 0;
  font-size: .78em;
  color: rgba(236,235,230,.65);
}

.uvq05-mx .tp b {
  color: #fff;
}
`;

// 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 cs=[...el.querySelectorAll(".c")],tp=el.querySelector(".tp b");
const u=()=>{let m=cs[0],mv=-1;cs.forEach(c=>{const i=c.querySelector("input"),v=+i.value;c.style.setProperty("--v",(v/100).toFixed(2));c.querySelector("output").textContent=v;if(v>mv){mv=v;m=c}});cs.forEach(c=>c.classList.toggle("is-top",c===m));tp.textContent=m.querySelector(".nm").textContent};
cs.forEach(c=>c.querySelector("input").addEventListener("input",u));u()
}

export default function FMixerFaders() {
  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": "#3ddc84",
          "--c2": "#ffc23d",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq05-mx"><legend>What matters most?</legend><div className="ch"><div className="c" style={{ "--v": "0.6" } as CSSProperties}><div className="sc"><span className="ld" aria-hidden="true"></span><span className="tr"><input type="range" min="0" max="100" value="60" aria-label="Price" /></span></div><output>60</output><span className="nm" aria-hidden="true">Price</span></div><div className="c" style={{ "--v": "0.35" } as CSSProperties}><div className="sc"><span className="ld" aria-hidden="true"></span><span className="tr"><input type="range" min="0" max="100" value="35" aria-label="Distance" /></span></div><output>35</output><span className="nm" aria-hidden="true">Distance</span></div><div className="c" style={{ "--v": "0.8" } as CSSProperties}><div className="sc"><span className="ld" aria-hidden="true"></span><span className="tr"><input type="range" min="0" max="100" value="80" aria-label="Rating" /></span></div><output>80</output><span className="nm" aria-hidden="true">Rating</span></div><div className="c" style={{ "--v": "0.45" } as CSSProperties}><div className="sc"><span className="ld" aria-hidden="true"></span><span className="tr"><input type="range" min="0" max="100" value="45" aria-label="Quiet" /></span></div><output>45</output><span className="nm" aria-hidden="true">Quiet</span></div></div><p className="tp"><span>Priority:</span> <b>Rating</b></p></fieldset>
      </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 “Priority mixer faders” block (Filters) from AIMRAN Library to my project.

## What it is
Four mixing desk faders with LED meters that set how much each criterion weighs when results are sorted.

## Chosen settings
- Main color: #3ddc84
- Secondary color: #ffc23d
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "¿Qué pesa más?"

## 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-mx {
  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;
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  width: 18.5em;
  padding: .9em 1em 1em;
  border-radius: 1em;
  background: linear-gradient(#2a2c31,#18191c);
  color: #ecebe6;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09),0 0 0 1px rgba(0,0,0,.4),0 1.4em 2.6em -1.4em rgba(0,0,0,.65);
}

.uvq05-mx legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 .9em;
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.uvq05-mx .ch {
  clear: both;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: .3em;
}

.uvq05-mx .c {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45em;
  min-width: 0;
}

.uvq05-mx .sc {
  display: flex;
  gap: .3em;
  height: 8.5em;
  padding: .4em .35em;
  border-radius: .45em;
  background: #101113;
  box-shadow: inset 0 .1em .3em #000,0 1px 0 rgba(255,255,255,.06);
}

.uvq05-mx .ld {
  width: .32em;
  border-radius: .15em;
  background: repeating-linear-gradient(to top,transparent 0 .32em,#101113 .32em .45em),linear-gradient(to top,var(--c1) 0 55%,var(--c2) 80%,#ff4d4d);
  -webkit-mask: linear-gradient(to top,#000 calc(var(--v) * 100%),rgba(0,0,0,.14) 0);
  mask: linear-gradient(to top,#000 calc(var(--v) * 100%),rgba(0,0,0,.14) 0);
}

.uvq05-mx .tr {
  position: relative;
  width: 1.7em;
}

.uvq05-mx .tr::before {
  content: "";
  position: absolute;
  left: 50%;
  top: .2em;
  bottom: .2em;
  width: .26em;
  margin-left: -.13em;
  border-radius: .2em;
  background: #000;
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}

.uvq05-mx .tr::after {
  content: "";
  position: absolute;
  inset: .2em 0;
  background: linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px) left top/.3em 12.5% repeat-y,linear-gradient(rgba(255,255,255,.22) 1px,transparent 1px) right top/.3em 12.5% repeat-y;
  pointer-events: none;
}

.uvq05-mx input {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 7.7em;
  height: 1.7em;
  margin: 0;
  transform: translate(-50%,-50%) rotate(-90deg);
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: grab;
  touch-action: none;
}

.uvq05-mx input:active {
  cursor: grabbing;
}

.uvq05-mx input:focus {
  outline: 0;
}

.uvq05-mx input::-webkit-slider-runnable-track {
  height: 1.7em;
  background: transparent;
}

.uvq05-mx input::-moz-range-track {
  background: transparent;
}

.uvq05-mx input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 1.1em;
  height: 1.7em;
  border-radius: .2em;
  background: linear-gradient(90deg,#7c7f86,#e9ebee 22%,#cfd2d6 42%,#151515 42% 58%,#cfd2d6 58%,#e9ebee 78%,#7c7f86);
  box-shadow: 0 0 .5em rgba(0,0,0,.75);
  transition: transform calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mx input::-moz-range-thumb {
  width: 1.1em;
  height: 1.7em;
  border: 0;
  border-radius: .2em;
  background: linear-gradient(90deg,#7c7f86,#e9ebee 22%,#cfd2d6 42%,#151515 42% 58%,#cfd2d6 58%,#e9ebee 78%,#7c7f86);
  box-shadow: 0 0 .5em rgba(0,0,0,.75);
}

.uvq05-mx input:active::-webkit-slider-thumb {
  transform: scaleY(1.08);
}

.uvq05-mx .tr:has(input:focus-visible) {
  outline: 2px solid var(--c1);
  outline-offset: 2px;
  border-radius: .3em;
}

.uvq05-mx output {
  font: 700 .68em ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  color: var(--c1);
  font-variant-numeric: tabular-nums;
}

.uvq05-mx .nm {
  max-width: 100%;
  padding: .22em .35em;
  border-radius: .15em;
  font-size: .6em;
  font-weight: 700;
  color: #232323;
  background: #efeadb;
  transform: rotate(-1.5deg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq05-mx .c:nth-child(even) .nm {
  transform: rotate(1.2deg);
}

.uvq05-mx .c.is-top .nm {
  background: var(--c1);
  color: #0f1a12;
}

.uvq05-mx .tp {
  margin: .85em 0 0;
  font-size: .78em;
  color: rgba(236,235,230,.65);
}

.uvq05-mx .tp b {
  color: #fff;
}
`;

// 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 cs=[...el.querySelectorAll(".c")],tp=el.querySelector(".tp b");
const u=()=>{let m=cs[0],mv=-1;cs.forEach(c=>{const i=c.querySelector("input"),v=+i.value;c.style.setProperty("--v",(v/100).toFixed(2));c.querySelector("output").textContent=v;if(v>mv){mv=v;m=c}});cs.forEach(c=>c.classList.toggle("is-top",c===m));tp.textContent=m.querySelector(".nm").textContent};
cs.forEach(c=>c.querySelector("input").addEventListener("input",u));u()
}

export default function FMixerFaders() {
  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": "#3ddc84",
          "--c2": "#ffc23d",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <fieldset className="uvq05-mx"><legend>What matters most?</legend><div className="ch"><div className="c" style={{ "--v": "0.6" } as CSSProperties}><div className="sc"><span className="ld" aria-hidden="true"></span><span className="tr"><input type="range" min="0" max="100" value="60" aria-label="Price" /></span></div><output>60</output><span className="nm" aria-hidden="true">Price</span></div><div className="c" style={{ "--v": "0.35" } as CSSProperties}><div className="sc"><span className="ld" aria-hidden="true"></span><span className="tr"><input type="range" min="0" max="100" value="35" aria-label="Distance" /></span></div><output>35</output><span className="nm" aria-hidden="true">Distance</span></div><div className="c" style={{ "--v": "0.8" } as CSSProperties}><div className="sc"><span className="ld" aria-hidden="true"></span><span className="tr"><input type="range" min="0" max="100" value="80" aria-label="Rating" /></span></div><output>80</output><span className="nm" aria-hidden="true">Rating</span></div><div className="c" style={{ "--v": "0.45" } as CSSProperties}><div className="sc"><span className="ld" aria-hidden="true"></span><span className="tr"><input type="range" min="0" max="100" value="45" aria-label="Quiet" /></span></div><output>45</output><span className="nm" aria-hidden="true">Quiet</span></div></div><p className="tp"><span>Priority:</span> <b>Rating</b></p></fieldset>
      </div>
    </>
  );
}
```

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