diff --git a/docs/docs/Toaster.md b/docs/docs/Toaster.md index 301bbef..85ae025 100644 --- a/docs/docs/Toaster.md +++ b/docs/docs/Toaster.md @@ -73,19 +73,20 @@ import { ZView } from 'react-native-z-view'; ## API Reference -| Property | Description | Default | -| :----------------------- | :------------------------------------------------------------------------------------------------: | --------------------------: | -| theme | `light`, `dark` | `light` | -| visibleToasts | Maximum number of visible toasts | `3` | -| position | Place where the toasts will be rendered | `top-center` | -| offset | Offset from the top or bottom | `0` | -| closeButton | Adds a close button to all toasts | `false` | -| invert | Dark toasts in light mode and vice versa. | `false` | -| toastOptions | These will act as default options for all toasts. See [toast()](/toast) for all available options. | `{}` | -| gap | Gap between toasts when expanded | `16` | -| icons | Changes the default icons | `-` | -| pauseWhenPageIsHidden | Pauses toast timers when the app enters background. | `{}` | +| Property | Description | Default | +| :------------------------ | :------------------------------------------------------------------------------------------------: | --------------------------: | +| theme | `light`, `dark` | `light` | +| visibleToasts | Maximum number of visible toasts | `3` | +| position | Place where the toasts will be rendered | `top-center` | +| offset | Offset from the top or bottom | `0` | +| closeButton | Adds a close button to all toasts | `false` | +| invert | Dark toasts in light mode and vice versa. | `false` | +| toastOptions | These will act as default options for all toasts. See [toast()](/toast) for all available options. | `{}` | +| gap | Gap between toasts when expanded | `16` | +| icons | Changes the default icons | `-` | +| pauseWhenPageIsHidden | Pauses toast timers when the app enters background. | `{}` | | `swipeToDismissDirection` | Swipe direction to dismiss (`left`, `up`). | `up` | -| cn | Custom function for constructing/merging classes. | `filter(Boolean).join(' ')` | -|  ToasterOverlayWrapper |  Custom component to wrap the Toaster. | `div` | -|  autoWiggleOnUpdate | Adds a wiggle animation on toast update. `never`, `toast-change`, `always` | `never` | +| cn | Custom function for constructing/merging classes. | `filter(Boolean).join(' ')` | +| ToasterOverlayWrapper |  Custom component to wrap the Toaster. | `div` | +| autoWiggleOnUpdate | Adds a wiggle animation on toast update. `never`, `toast-change`, `always` | `never` | +| richColors |  Makes error and success state more colorful | `false` | diff --git a/docs/docs/sonner.md b/docs/docs/sonner.md index 8564f87..b67e95d 100644 --- a/docs/docs/sonner.md +++ b/docs/docs/sonner.md @@ -29,24 +29,24 @@ ## Toaster: -| Property | Sonner Native | Sonner Web | -| :----------------------- | ------------- | ---------- | -| theme | ✅ | ✅ | -| visibleToasts | ✅ | ✅ | -| position | ✅ | ✅ | -| closeButton | ✅ | ✅ | -| invert | ✅ | ✅ | -| toastOptions | ✅ | ✅ | -| gap | ✅ | ✅ | -| icons | ✅ | ✅ | +| Property | Sonner Native | Sonner Web | +| :------------------------ | ------------- | ---------- | +| theme | ✅ | ✅ | +| visibleToasts | ✅ | ✅ | +| position | ✅ | ✅ | +| closeButton | ✅ | ✅ | +| invert | ✅ | ✅ | +| toastOptions | ✅ | ✅ | +| gap | ✅ | ✅ | +| icons | ✅ | ✅ | | `swipeToDismissDirection` | ✅ | ❌ | -| dir | ❌ | ✅ | -| richColors | ❌ | ✅ | -| expand | 🕸️ | ✅ | -| offset | ✅ | ✅ | -| hotkey | 🕸️ | ✅ | -| loadingIcon | ✅ | ✅ | -| pauseWhenPageIsHidden | ✅ | ✅ | -| cn | ✅ | ✅ | +| dir | ❌ | ✅ | +| richColors | ✅ | ✅ | +| expand | 🕸️ | ✅ | +| offset | ✅ | ✅ | +| hotkey | 🕸️ | ✅ | +| loadingIcon | ✅ | ✅ | +| pauseWhenPageIsHidden | ✅ | ✅ | +| cn | ✅ | ✅ | **🕸️: Not applicable for native apps.** diff --git a/docs/docs/toast.md b/docs/docs/toast.md index f1fc24c..bcf62f0 100644 --- a/docs/docs/toast.md +++ b/docs/docs/toast.md @@ -223,6 +223,7 @@ Toasts can also be automatically wiggled by passing the `autoWiggleOnUpdate` pro | actionButtonTextStyles | Styles for the action button text | `{}` | | cancelButtonStyles | Styles for the cancel button | `{}` | | cancelButtonTextStyles | Styles for the cancel button text | `{}` | +| richColors |  Makes error and success state more colorful | `false` | ``` diff --git a/example/src/ToastDemo.tsx b/example/src/ToastDemo.tsx index 3be94c1..afd7d7e 100644 --- a/example/src/ToastDemo.tsx +++ b/example/src/ToastDemo.tsx @@ -42,6 +42,15 @@ export const ToastDemo: React.FC = () => { }); }} /> +