Skip to content

Commit 7caf2a6

Browse files
committed
bump 📦
1 parent 7df0dea commit 7caf2a6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sileo",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "An opinionated, physics based toast notification library for react.",
55
"license": "MIT",
66
"repository": {

src/toast.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ export interface SileoPromiseOptions<T = unknown> {
162162
success: SileoOptions | ((data: T) => SileoOptions);
163163
error: SileoOptions | ((err: unknown) => SileoOptions);
164164
action?: SileoOptions | ((data: T) => SileoOptions);
165+
position?: SileoPosition;
165166
}
166167

167168
export const sileo = {
@@ -182,6 +183,7 @@ export const sileo = {
182183
...opts.loading,
183184
state: "loading",
184185
duration: null,
186+
position: opts.position,
185187
});
186188

187189
const p = typeof promise === "function" ? promise() : promise;

0 commit comments

Comments
 (0)