Skip to content

[Shadcn] Add Sonner - #3477

Merged
Kocal merged 1 commit into
symfony:3.xfrom
makraz:feat/toolkit-toast
Jul 5, 2026
Merged

Kocal merged 1 commit into
symfony:3.xfrom
makraz:feat/toolkit-toast

Conversation

@makraz

@makraz makraz commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor
Q A
Bug fix? no
New feature? yes
Deprecations? no
Documentation? no
Issues Part of #3233
License MIT

Add Sonner component

@makraz
makraz requested a review from Kocal as a code owner April 17, 2026 17:31
@carsonbot carsonbot added Feature New Feature Status: Needs Review Needs to be reviewed labels Apr 17, 2026
@carsonbot carsonbot changed the title Add Toast (Sonner) Add Toast (Sonner) Apr 17, 2026
@makraz makraz changed the title Add Toast (Sonner) [Toolkit][Shadcn] Add Toast (Sonner) Apr 17, 2026
@makraz
makraz force-pushed the feat/toolkit-toast branch from 86ce6ae to a756085 Compare April 17, 2026 17:59
@makraz makraz changed the title [Toolkit][Shadcn] Add Toast (Sonner) [Toolkit][Shadcn] Add Sonner Apr 18, 2026
@makraz
makraz force-pushed the feat/toolkit-toast branch 3 times, most recently from d7172da to 1ce0877 Compare April 19, 2026 18:47
Comment thread src/Toolkit/kits/shadcn/sonner/assets/controllers/sonner_controller.js Outdated
Comment thread src/Toolkit/kits/shadcn/sonner/assets/controllers/sonner_controller.js Outdated
Comment thread src/Toolkit/kits/shadcn/sonner/assets/controllers/sonner_controller.js Outdated
@zairigimad

Copy link
Copy Markdown
Contributor

It will be great to add a video 🙏🏻

makraz added a commit to makraz/ux that referenced this pull request Jun 27, 2026
Namespace the controller's custom event channel to the recipe name for
consistency with data-controller="sonner" and the Twig surface:

- window event 'toast' -> 'sonner' (listen + dispatch)
- handler onToastEvent -> onSonnerEvent
- outbound 'toast:dismiss' -> 'sonner:dismiss'

The public toast() helper keeps its name (matches the upstream Sonner
API), and the per-item "toast" vocabulary (data-slot, Toast component)
is unchanged.

Addresses review feedback on symfony#3477.
makraz added a commit to makraz/ux that referenced this pull request Jun 27, 2026
Namespace the controller's custom event channel to the recipe name for
consistency with data-controller="sonner" and the Twig surface:

- window event 'toast' -> 'sonner' (listen + dispatch)
- handler onToastEvent -> onSonnerEvent
- outbound 'toast:dismiss' -> 'sonner:dismiss'

The public toast() helper keeps its name (matches the upstream Sonner
API), and the per-item "toast" vocabulary (data-slot, Toast component)
is unchanged.

Addresses review feedback on symfony#3477.
@makraz
makraz force-pushed the feat/toolkit-toast branch from 25acc69 to 4fbfcc8 Compare June 27, 2026 21:36
makraz added a commit to makraz/ux that referenced this pull request Jun 27, 2026
Namespace the controller's custom event channel to the recipe name for
consistency with data-controller="sonner" and the Twig surface:

- window event 'toast' -> 'sonner' (listen + dispatch)
- handler onToastEvent -> onSonnerEvent
- outbound 'toast:dismiss' -> 'sonner:dismiss'

The public toast() helper keeps its name (matches the upstream Sonner
API), and the per-item "toast" vocabulary (data-slot, Toast component)
is unchanged.

Addresses review feedback on symfony#3477.
@makraz
makraz force-pushed the feat/toolkit-toast branch from 4fbfcc8 to d8a95ca Compare June 27, 2026 21:42
makraz added a commit to makraz/ux that referenced this pull request Jun 27, 2026
Namespace the controller's custom event channel to the recipe name for
consistency with data-controller="sonner" and the Twig surface:

- window event 'toast' -> 'sonner' (listen + dispatch)
- handler onToastEvent -> onSonnerEvent
- outbound 'toast:dismiss' -> 'sonner:dismiss'

The public toast() helper keeps its name (matches the upstream Sonner
API), and the per-item "toast" vocabulary (data-slot, Toast component)
is unchanged.

Addresses review feedback on symfony#3477.
@makraz
makraz force-pushed the feat/toolkit-toast branch from d8a95ca to 0ccbffd Compare June 27, 2026 22:40
@makraz

makraz commented Jun 28, 2026 •

Copy link
Copy Markdown
Contributor Author

It will be great to add a video 🙏🏻

@zairigimad here's the video 👌🏼 also created a PR here symfony/ux.symfony.com#151

614241459-2f956a4b-0fd9-4a14-a570-fd049c7ca5e0.mp4

@Kocal
Kocal force-pushed the feat/toolkit-toast branch from 2c2a4d7 to 9d523ec Compare July 5, 2026 07:51

@Kocal Kocal left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Impressive work, I just pushed minor modifications and squashed everything

@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Jul 5, 2026
@carsonbot carsonbot changed the title [Toolkit][Shadcn] Add Sonner [Shadcn] Add Sonner Jul 5, 2026
@Kocal

Kocal commented Jul 5, 2026

Copy link
Copy Markdown
Member

Thank you @makraz.

@Kocal
Kocal merged commit 401acbc into symfony:3.x Jul 5, 2026
33 checks passed
@makraz
makraz deleted the feat/toolkit-toast branch July 5, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature New Feature Status: Reviewed Has been reviewed by a maintainer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants