F
F
froggush2021-07-21 17:06:40
css
froggush, 2021-07-21 17:06:40

How to render this input range?

Good afternoon. There is such an input design for layout for React.

P113i1ANjg8.jpg?size=799x72&quality=96&sign=6f75279df7494aeef1285eb22ccdb5a1&type=album

What is the best way to layout it? Maybe it would be better not even through input, but somehow, according to the classics, on divs? I have no idea how to implement such a range switch. Maybe someone knows ready-made components? I found only react-range, but it doesn't fit

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Sanych, 2021-07-21
@jean_gaben

Wrap 3 blocks in flex or grid, on + and - hang the click event, but the input event. If the number should not be edited from the keyboard, then just a block with a number. And make it a separate component. Might come in handy elsewhere. There is no need for any libs here, for a maximum of half an hour of work

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question