feat: implement checkboxlist component

This commit is contained in:
alphafetus committed 2025-08-27 13:16:23 -04:00
1 parent f7ca1ecbc5
commit 9925e753d8
8 files changed
+125 -14

No files matched your search

+33 -1
View File
@@ -1 +1,33 @@
@import "tailwindcss";
@import "tailwindcss";
/* Check icon styling */
.checkbox-icon:checked::after {
content: '';
position: absolute;
top: 50%;
bottom: 50%;
width: 5px;
height: 10px;
border: solid #fff;
border-width: 0 3px 3px 0;
transform: rotate(45deg);
}
/* Checkbox styling */
.checkbox-box {
position: absolute;
top: 0;
left: 0;
height: 25px;
width: 25px;
border-radius: 2px;
}
/*
* Checkbox selected styling.
* Selects the first checkbox-icon class after a checked input element within
* this checkbox-box.
*/
.checkbox-box input:checked ~ .checkbox-icon {
background-color: var(--color-red-700); /* Use the tailwindcss variables */
}