Skip to content

Toggle Switch Component #8959

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions