Skip to content

Commit

Permalink
docs: fix typo in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tutkli committed Apr 16, 2024
1 parent 0bbe3af commit dbb8948
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ toast(CustomComponent);

#### Headless

You can use `toast.custom()` to render an unstyled toast with custom component while maintaining the functionality.
You can use `toast.custom()` to render an unstyled toast with a custom component while maintaining the functionality.

```ts
@Component({
Expand Down
6 changes: 3 additions & 3 deletions libs/ngx-sonner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ toast(CustomComponent);

#### Headless

You can use `toast.custom()` to render an unstyled toast with custom component while maintaining the functionality.
You can use `toast.custom()` to render an unstyled toast with a custom component while maintaining the functionality.

```ts
@Component({
Expand Down Expand Up @@ -340,12 +340,12 @@ You can change the duration of each toast by using the `duration` property, or c

```ts
toast('Event has been created', {
duration: 10000
duration: 10000
});

// Persisent toast
toast('Event has been created', {
duration: Number.POSITIVE_INFINITY
duration: Number.POSITIVE_INFINITY
});
```

Expand Down

0 comments on commit dbb8948

Please sign in to comment.