-
-
-
-
-
-
-
Helen Walter
Admin
Swap
ADMIN PANELSwap
Swap allows you to toggle the visibility of two elements adding .swap , .swap-on, .swap-off class.
Swap with Dark/Light
Set swap by adding class .swap
Swap With volume
Add any icon for swap using .swap class.
<div class="text-center">
<label class="swap">
<input type="checkbox" class="mb-0.5 border-none h-4">
<span class="swap-on mb-[-9px] text-3xl"><i class="iconly-Volume-Down icbo text-[30px]"></i></span>
<span class="swap-off mb-[-9px] text-3xl"><i class="iconly-Volume-Off icbo text-[30px]"></i></span>
</label>
</div>
Swap with Open/Close
Add swap text using .swap , .swap-on, .swap-off class.
<div class="text-center">
<label class="text-white rounded-full btn btn-accent swap swap-rotate">
<input type="checkbox" class="mb-0.5 border-none h-4">
<span class="swap-on mb-[-6px] text-3xl text-primary"> Open </span>
<span class="swap-off mb-[-6px] text-3xl text-secondary"> Close </span>
</label>
</div>
Swap With Emoji
Set emoji for swap using .swap-flip class.
Swap With Hide/Show
Add any icon for swap using .swap class.
<div class="text-center">
<label class="swap">
<span class="swap-on text-3xl mb-[9px]">
+iconly('', 'Show', 'text-[24px]', ['1','2'], 'path_formatter')
</span>
<span class="swap-off text-3xl mb-[9px]">
+iconly('', 'Hide', 'text-[24px]', ['1','2'], 'path_formatter')
</span>
</label>
</div>


