#8232·ui

[bug]: Missing `tesdId` property in Sonner

Author: alamenaiCreated Sep 16, 2025Updated Sep 16, 2026
Labelsbugstale?

Describe the bug

Hi,

While I was reading the documentation of the Toast from Sonner, I found that there's an attribute called testId which used to access the toast in the tests.

However, this is missed in the shadcn Sonner.

Affected component/components

Sonner

How to reproduce

  1. Go to the API reference
  2. Check the attribute testId ( row 11 in the table).

Codesandbox/StackBlitz link

No response

Logs

System Info

.

Before submitting

  • I've made research efforts and searched the documentation
  • I've searched for existing issues