major updates to popup dev, manifest fix

This commit is contained in:
Seth Burkart
2023-09-15 12:01:08 +10:00
parent 979e67f622
commit e9db7b0283
34 changed files with 416 additions and 146 deletions
+35
View File
@@ -0,0 +1,35 @@
import React, { useState } from 'react';
import "./Slider.css";
interface Slider {
onValueChange: (value: number) => void;
}
const Slider: React.FC<Slider> = ({ onValueChange }) => {
const [sliderValue, setSliderValue] = useState(0);
const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const value = parseInt(event.target.value, 10);
setSliderValue(value);
};
const handleMouseUp = () => {
onValueChange(sliderValue);
};
return (
<div className="relative">
<input
type="range"
min="0"
max="100"
value={sliderValue}
onChange={handleInputChange}
onMouseUp={handleMouseUp}
className="absolute w-full h-1 rounded-full cursor-pointer range-slider focus:outline-none"
/>
</div>
);
};
export default Slider;