Switch - Vaadin Add-on Directory
Switch is a decorated toggle checkbox.Switch is basically a decorated checkbox with a very similar look to the switch component found on iOS and Android.
The server-side API extends the Vaadin CheckBox with added methods for enabling/disabling client-side animations. The state of the Switch can be changed with mouse (click and/or drag), keyboard (focus with tab, use space to change the value) or by sliding the component via touch gestures in Mobile Safari and Android browser.
Starting from version 1.0.0 the add-on has two additional built in styles ("compact" and "holodeck"). Navigate to the online demo to see them in action.