diff --git a/src/index.tsx b/src/index.tsx
index ce031e8..58d5a9d 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -272,6 +272,7 @@ const Toast = (props: ToastProps) => {
toast?.classNames?.[toastType],
)}
data-sonner-toast=""
+ data-toast-id={String(toast.id)}
data-rich-colors={toast.richColors ?? defaultRichColors}
data-styled={!Boolean(toast.jsx || toast.unstyled || unstyled)}
data-mounted={mounted}
diff --git a/test/src/app/page.tsx b/test/src/app/page.tsx
index ef50965..583602c 100644
--- a/test/src/app/page.tsx
+++ b/test/src/app/page.tsx
@@ -343,6 +343,13 @@ export default function Home({ searchParams }: any) {
+