To style the checkbox, add the “checkbox-color-size” class
Add the checkbox class to the input element to apply size, color, and state-based styles.
Use the <label>
element as it is
The checkbox class is a dynamic unocss shortcut so you can extend it
checkbox-[color]-[size]
sm
, md
, lg
, xl
, or pass a numeric value (checkbox-5
)text-color
classNOTE: If
checkbox-lg
is used, then the default color isprimary