Switch
A switch component.
<x-ui::forms.switch />
<x-ui::forms.switch :on="true"/>
Copied!
Inverted
Sometimes you want the switch to be inversed, useful in the instances where the default option is "false" in the database, but for ui purposes you want to display the option as marked.
<x-ui::forms.switch :inverted="true"/>
<x-ui::forms.switch :inverted="true" :on="true"/>
Copied!