mirror of
https://github.com/IoTManagerProject/IoTManagerWeb.git
synced 2026-03-27 15:32:29 +03:00
toggle
This commit is contained in:
@@ -13,9 +13,9 @@
|
||||
</div>
|
||||
<div class="w-1/3">
|
||||
<div class="flex items-center justify-center w-full">
|
||||
<label for="toggleB" class="items-center cursor-pointer">
|
||||
<label for={widget.topic} class="items-center cursor-pointer">
|
||||
<div class="relative">
|
||||
<input id="toggleB" type="checkbox" class="sr-only" />
|
||||
<input id={widget.topic} type="checkbox" class="sr-only" />
|
||||
<div class="block bg-gray-600 w-14 h-8 rounded-full" />
|
||||
<div class="dot absolute left-1 top-1 bg-white w-6 h-6 rounded-full transition" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user