Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/toast.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ const ToastTriggers = () => {
};
```

[Toast Basic - Open On Sandbox](https://codesandbox.io/s/yf6i7)
[Toast Basic - Open On Sandbox](https://codesandbox.io/s/2z7hj)

[Toast Styled - Open On Sandbox](https://codesandbox.io/s/1297l)
[Toast Styled - Open On Sandbox](https://codesandbox.io/s/k9rki)

[Toast CSS Animated - Open On Sandbox](https://codesandbox.io/s/i0emy)
[Toast CSS Animated - Open On Sandbox](https://codesandbox.io/s/8vkcv)

[Toast React Spring - Open On Sandbox](https://codesandbox.io/s/2uhsj)
[Toast React Spring - Open On Sandbox](https://codesandbox.io/s/2hr08)
8 changes: 7 additions & 1 deletion src/toast/ToastProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ export type ToastTypes = Record<
>
>;

export type ToastWrapper = (props: any) => React.ReactElement<any>;
type ToastWrapper = (
props: React.PropsWithChildren<{
id: string;
placement: Placements;
isVisible?: boolean;
}>,
) => any;

type ToastProviderProps = {
/**
Expand Down