I am utilizing Mantine and need to create a custom styled container for a Checkbox input.
This particular checkbox will alter its body styles based on the input state (checked or not checked). To achieve this, I must determine the pseudo class state of the checkbox input.
Within the theme
file, there is a snippet like this:
Checkbox: {
styles: theme => ({
body: {
background: "white",
},
"input:checked": {
body: {
background: "black",
}
},
}),
},
The values for body
and input
are retrieved from the StylesAPI provided by Mantine:
https://i.sstatic.net/kqjou.png
Any suggestions on how I can accomplish this?
Thank you in advance!