I was creating a form and I wanted to create a checkbox but toggle switch like UI how can I make that.
Also, I wanted to make things simpler.
so, I searched everywhere and finely figured it out by myself.
There are no extra elements used and it's fully customizable in terms of size, shape, and color. also, it is reusable.