Converts a checkbox to a toggle slider.
composer require jellygnite/silverstripe-admin-toggle-checkbox
Simply add the class 'toggle' to your CheckboxField. e.g.
CheckboxField::create('IsFeatured', 'Is Featured?')->addExtraClass('toggle'),
Based on https://github.com/i-lateral/silverstripe-admin-toggle-checkbox