Working with Angular 9 reactive forms, I am currently using the following form setup:
<form [formGroup]="form" (ngSubmit)="onSubmit()">
<label for="active">Active</label>
<input id="active" type="checkbox" formControlName="active">
<button class="action" type="submit">Send</button>
</form>
However, rather than a traditional checkbox, I want to implement a clickable rectangle that functions like a checkbox:
.active { padding: 20px; display: inline-block; }
.checked { border: 1px solid green; color: green; }
<span class="active checked">Active</span>
What steps do I need to take to achieve this?