Skip to content

Toggle Switch Component #8959

@BlackIsTheNewBlack

Description

@BlackIsTheNewBlack

Describe your motivation

A ( Toggle Switch ) component is missing from Vaadin Components. Toggles are the modern replacement for checkboxes and are ubiquitous on mobile interfaces, yet Vaadin Components has no option for toggles.
Compared to checkboxes, toggles have an improved physical world correspondence and click affordability.

Design decision: whether to implement the toggle by theming a checkbox. The logical behaviour is the same, but toggles have a different shape.

Describe the solution you'd like

Either:
Option A. add a <vaadin-toggle> with the same interface as the checkbox.
or Option B. add a theme=toggle to `

Describe alternatives you've considered

https://github.com/vaadin-component-factory/toggle-button is a community library which has not been updated since Vaadin 14.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions