Skip to content

Add a Twig component to render switches/toggles#7662

Merged
javiereguiluz merged 1 commit into
EasyCorp:5.xfrom
javiereguiluz:switch_component
Jul 2, 2026
Merged

Add a Twig component to render switches/toggles#7662
javiereguiluz merged 1 commit into
EasyCorp:5.xfrom
javiereguiluz:switch_component

Conversation

@javiereguiluz

@javiereguiluz javiereguiluz commented Jun 14, 2026

Copy link
Copy Markdown
Collaborator

The new <twig:ea:Switch> comnponent works the same as before, but the design changed a bit to look more modern.

This is how it looked before (a single medium size and a single default color):

switch-before

And this is how it looks now: two sizes, multiple variants, smoother animation

switch-after

@javiereguiluz javiereguiluz merged commit 62332b0 into EasyCorp:5.x Jul 2, 2026
@javiereguiluz javiereguiluz deleted the switch_component branch July 2, 2026 20:44
javiereguiluz added a commit that referenced this pull request Jul 3, 2026
…ereguiluz)

This PR was merged into the 5.x branch.

Discussion
----------

Update existing components to use the new size enum

The `Size` enum was introduced as part of #7662.

Nothing changes in practice for end-users because you can still pass raw strings like `'md'` as the size option.

Commits
-------

671c089 Update existing components to use the new size enum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant