Style your form label element adding a label
class, useful with radio, checkbox and switch elements.
<label for="my-checkbox" class="label"> <input type="checkbox" class="checkbox has-mr-3" id="my-checkbox" /> I agree with the terms of service. </label>
The label element will apply the styles defined in the forms.label
field of your theme configuration.
export default { forms: { label: { color: "inherit", fontWeight: "bold", }, }, // ...other configuration };
Designed and maintained with by @jmjuanes.
Code is licensed under MIT, documentation under Creative Commons Attribution 4.0.