-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a4b450
commit 1deb222
Showing
1 changed file
with
44 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
# Comparison with Sonner | ||
# Comparison with Sonner web | ||
|
||
## toast(): | ||
|
||
| Property | Reanimated Toasts | Sonner | | ||
| :----------------- | ----------------- | ------ | | ||
| description | ✅ | ✅ | | ||
| closeButton | ✅ | ✅ | | ||
| invert | ✅ | ✅ | | ||
| important | ✅ | ✅ | | ||
| duration | ✅ | ✅ | | ||
| position | ✅ | ✅ | | ||
| dismissible | ✅ | ✅ | | ||
| icon | ✅ | ✅ | | ||
| action | ✅ | ✅ | | ||
| id | ✅ | ✅ | | ||
| onDismiss | ✅ | ✅ | | ||
| onAutoClose | ✅ | ✅ | | ||
| unstyled | ✅ | ✅ | | ||
| actionButtonStyles | ✅ | ✅ | | ||
| cancelButtonStyles | ✅ | ✅ | | ||
| cancel | ✅ | ✅ | | ||
| action as JSX | ✅ | ✅ | | ||
| loading | ✅ | ✅ | | ||
| Headless | ❌ | ✅ | | ||
| Dynamic position | ❌ | ✅ | | ||
| important | ❌ | ✅ | | ||
| warning variant | ❌ | ✅ | | ||
| Property | Sonner Native | Sonner Web | | ||
| :----------------- | ------------- | ---------- | | ||
| description | ✅ | ✅ | | ||
| closeButton | ✅ | ✅ | | ||
| invert | ✅ | ✅ | | ||
| important | ✅ | ✅ | | ||
| duration | ✅ | ✅ | | ||
| position | ✅ | ✅ | | ||
| dismissible | ✅ | ✅ | | ||
| icon | ✅ | ✅ | | ||
| action | ✅ | ✅ | | ||
| id | ✅ | ✅ | | ||
| onDismiss | ✅ | ✅ | | ||
| onAutoClose | ✅ | ✅ | | ||
| unstyled | ✅ | ✅ | | ||
| actionButtonStyles | ✅ | ✅ | | ||
| cancelButtonStyles | ✅ | ✅ | | ||
| cancel | ✅ | ✅ | | ||
| action as JSX | ✅ | ✅ | | ||
| loading | ✅ | ✅ | | ||
| Headless | ❌ | ✅ | | ||
| Dynamic position | ❌ | ✅ | | ||
| important | ❌ | ✅ | | ||
| warning variant | ❌ | ✅ | | ||
|
||
## Toaster: | ||
|
||
| Property | Reanimated Toasts | Sonner | | ||
| :----------------------- | ----------------- | ------ | | ||
| theme | ✅ | ✅ | | ||
| visibleToasts | ✅ | ✅ | | ||
| position | ✅ | ✅ | | ||
| closeButton | ✅ | ✅ | | ||
| invert | ✅ | ✅ | | ||
| toastOptions | ✅ | ✅ | | ||
| gap | ✅ | ✅ | | ||
| icons | ✅ | ✅ | | ||
| `swipToDismissDirection` | ✅ | ❌ | | ||
| dir | ❌ | ✅ | | ||
| richColors | ❌ | ✅ | | ||
| expand | 🕸️ | ✅ | | ||
| offset | ✅ | ✅ | | ||
| hotkey | 🕸️ | ✅ | | ||
| loadingIcon | ❌ | ✅ | | ||
| pauseWhenPageIsHidden | ❌ | ✅ | | ||
| cn | ❌ | ✅ | | ||
| Property | Sonner Native | Sonner Web | | ||
| :----------------------- | ------------- | ---------- | | ||
| theme | ✅ | ✅ | | ||
| visibleToasts | ✅ | ✅ | | ||
| position | ✅ | ✅ | | ||
| closeButton | ✅ | ✅ | | ||
| invert | ✅ | ✅ | | ||
| toastOptions | ✅ | ✅ | | ||
| gap | ✅ | ✅ | | ||
| icons | ✅ | ✅ | | ||
| `swipToDismissDirection` | ✅ | ❌ | | ||
| dir | ❌ | ✅ | | ||
| richColors | ❌ | ✅ | | ||
| expand | 🕸️ | ✅ | | ||
| offset | ✅ | ✅ | | ||
| hotkey | 🕸️ | ✅ | | ||
| loadingIcon | ❌ | ✅ | | ||
| pauseWhenPageIsHidden | ❌ | ✅ | | ||
| cn | ❌ | ✅ | | ||
|
||
**🕸️: Not applicable for native apps.** |