You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji,
26
+
Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
27
+
```
28
+
29
+
You can change this value using the `font` property. In this case, we are using the utility class [`font-sans` from Tailwind CSS](https://tailwindcss.com/docs/font-family#setting-the-font-family) to set the font:
30
+
31
+
```jsx
32
+
<Toaster
33
+
toastOptions={{
34
+
font:'font-sans',
35
+
}}
36
+
/>
37
+
```
38
+
39
+
## `icons`
40
+
41
+
`@pheralb/toast` use [Phosphor Icons](https://phosphoricons.com/) by default. You can change the default icons for all toasts using `icons` property:
UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji,
42
-
Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
43
-
```
44
-
45
-
You can change this value using the `toastFont` prop. In this case, we are using the utility class [`font-sans` from Tailwind CSS](https://tailwindcss.com/docs/font-family#setting-the-font-family) to set the font:
46
-
47
-
```jsx
48
-
<Toaster toastFont="font-sans"/>
49
-
```
50
-
51
-
## ToastIcons
52
-
53
-
`@pheralb/toast` use [Phosphor Icons](https://phosphoricons.com/) by default. You can change the default icons for all toasts using `toastIcons` property:
|`theme`| Theme of the all toasts |`Theme` (default: `system`): `'light'`, `'dark'`, or `'system'`| - |
76
-
|`maxToasts`| Maximum number of toasts to display |`number`| - |
77
-
|`toastIcons`| Replace the default icons with custom icons |`Record<Variant, ReactNode>`| - |
78
-
|`position`| Position of the toaster on the screen |`Position` (default: `bottom-right`): `'top-left'`, `'top-right'`, `'top-center'`, `'bottom-left'`, `'bottom-right'` or `'bottom-center'`| - |
79
-
|`toastFont`| Font style for the all toasts |`string`| - |
|`theme`| Theme of the all toasts |`Theme` (default: `system`): `'light'`, `'dark'`, or `'system'`| - |
42
+
|`maxToasts`| Maximum number of toasts to display |`number`| - |
43
+
|`toastIcons`| Replace the default icons with custom icons |`Record<Variant, ReactNode>`| - |
44
+
|`position`| Position of the toaster on the screen |`Position` (default: `bottom-right`): `'top-left'`, `'top-right'`, `'top-center'`, `'bottom-left'`, `'bottom-right'` or `'bottom-center'`| - |
45
+
|`toastOptions`| Options to customize all toasts.|[`ToastOptions`](/toastOptions)| - |
0 commit comments