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" value="1" :onValue="1" :offValue="0" /></x-moonshine::form.wrapper>