Inherits from Checkbox.
- has the same features
The Switcher field is an extension of Checkbox with a different visual design.
use MoonShine\UI\Fields\Switcher; Switcher::make('Publish', 'is_publish')
<x-moonshine::form.wrapper label="Publish"> <x-moonshine::form.switcher name="is_publish" :onValue="1" :offValue="0" /></x-moonshine::form.wrapper>