-
-
-
-
-
-
-
Helen Walter
Admin
Checkbox & Radio
ADMIN PANELCheckbox
You can use checkbox as code show bellow
With Label and Form-control
Use checkbox With Label and form-control
Remember Me
<div class="flex flex-col flex-wrap items-center gap-2 my-2">
<span class="text-gray-500"> Remember Me </span>
<label checkbox class="w-[20px] h-[20px]">
<input type= 'checkbox'class="peer"/>
<div checkbox-indicator class="peer-checked:!bg-primary !border-primary"></div>
<i data-feather="check">
</label>
</div>
Checkbox With Different Colors
Use different color checkbox by adding class bg-*
<div class="flex flex-col flex-wrap items-center gap-2 my-2">
<label checkbox class="w-[20px] h-[20px]">
<input type= 'checkbox'class="peer"/>
<div checkbox-indicator class="peer-checked:!bg-primary !border-primary"></div>
<i data-feather="check">
</label>
</div>
<div class="flex flex-col flex-wrap items-center gap-2 my-2">
<label checkbox class="w-[20px] h-[20px]">
<input type= 'checkbox'class="peer"/>
<div checkbox-indicator class="peer-checked:!bg-secondary !border-secondary"></div>
<i data-feather="check">
</label>
</div>
<div class="flex flex-col flex-wrap items-center gap-2 my-2">
<label checkbox class="w-[20px] h-[20px]">
<input type= 'checkbox'class="peer"/>
<div checkbox-indicator class="peer-checked:!bg-info !border-info"></div>
<i data-feather="check">
</label>
</div>
Checkbox With Different Size
You can use different size checkbox by adding class .checkbox-(xs, sm, md, lg)
<div class="flex flex-col flex-wrap items-center gap-2 my-2">
<label checkbox class="checkbox-sm">
<input type= 'checkbox'class="peer"/>
<div checkbox-indicator class="peer-checked:!bg-primary !border-primary"></div>
<i data-feather="check">
</label>
<label checkbox class="checkbox-md">
<input type= 'checkbox'class="peer"/>
<div checkbox-indicator class="peer-checked:!bg-secondary !border-secondary"></div>
<i data-feather="check">
</label>
<label checkbox class="checkbox-lg">
<input type= 'checkbox'class="peer"/>
<div checkbox-indicator class="peer-checked:!bg-info !border-info"></div>
<i data-feather="check">
</label>
<label checkbox class="checkbox-xl">
<input type= 'checkbox'class="peer"/>
<div checkbox-indicator class="peer-checked:!bg-info !border-info"></div>
<i data-feather="check">
</label>
</div>
Checkbox Disabled
You can disabled checkbox by adding disabled attribute
Radio
You can use radio as code show bellow
Radio width Different Colors
You can use different colors radio by adding .radio-(accent, primary, secondary) classes


