Spaces:
deepak191z
/
Runtime error

File size: 1,288 Bytes
229b3b8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
import { Label } from '@/components/ui/label';

import { Slider } from '@/components/ui/slider';
import { Plus, RefreshCcw, RotateCw } from 'lucide-react';
import { useState } from 'react';

const Opacity = () => {
  const [value, setValue] = useState([10]);

  return (
    <div>
      <div className="grid gap-1.5">
        <div className="flex items-center justify-between">
          <Label htmlFor="temperature">Opacity</Label>
        </div>
        <div
          style={{
            display: 'grid',
            gridTemplateColumns: '1fr 40px 24px',
            gap: '4px',
          }}
        >
          <Slider
            id="opacity"
            max={1}
            step={0.1}
            onValueChange={setValue}
            aria-label="Temperature"
          />
          <Input className="w-11 px-2 text-sm text-center" defaultValue={100} />
          <div className="flex items-center">
            <Button
              size="icon"
              variant="ghost"
              className="h-6 w-6 text-zinc-400"
            >
              <RotateCw size={14} />
            </Button>
          </div>
        </div>
      </div>
    </div>
  );
};

export default Opacity;