imranmodel32

Get a quote UI inputs

Oct 2nd, 2025
5
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. <div className="flex items-center space-x-2">
  2. <label htmlFor="airplane-mode" className="text-sm">
  3. Airplane Mode
  4. </label>
  5. <Switch.Root
  6. // checked={checked}
  7. // onCheckedChange={onChange}
  8. className="w-11 h-6 bg-gray-300 rounded-full relative data-[state=checked]:bg-blue-500"
  9. id="airplane-mode"
  10. >
  11. <Switch.Thumb className="block w-5 h-5 bg-white rounded-full transition-transform translate-x-0.5 will-change-transform data-[state=checked]:translate-x-[22px]" />
  12. </Switch.Root>
  13. </div>
  14.  
  15. <div className="p-4">
  16. <Slider.Root
  17. className="relative flex items-center w-48 h-5"
  18. value={sliderValue}
  19. onValueChange={setSliderValue}
  20. max={100}
  21. step={1}
  22. >
  23. <Slider.Track className="bg-gray-300 relative flex-1 h-1 rounded">
  24. <Slider.Range className="absolute h-1 bg-blue-500 rounded" />
  25. </Slider.Track>
  26. <Slider.Thumb className="block w-4 h-4 bg-white border rounded-full shadow" />
  27. </Slider.Root>
  28.  
  29. <div className="mt-2 text-sm text-gray-600">
  30. Value: {sliderValue[0]}
  31. </div>
  32. </div>
  33.  
  34. <Popover.Root>
  35. <Popover.Trigger
  36. className="w-8 h-8 rounded border"
  37. style={{ backgroundColor: color }}
  38. />
  39. <Popover.Content className="p-2 bg-white border rounded shadow">
  40. <HexColorPicker color={color} onChange={setColor} />
  41. </Popover.Content>
  42. </Popover.Root>
Tags: react
Advertisement
Add Comment
Please, Sign In to add comment