Skip to content

Commit

Permalink
omit default element props if overidden by custom props
Browse files Browse the repository at this point in the history
  • Loading branch information
flodlc committed Nov 16, 2022
1 parent d964a63 commit ea012c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"types": "./dist/index.d.ts",
"type": "module",
"packageManager": "[email protected]",
"version": "1.0.10",
"version": "1.0.11",
"scripts": {
"dev": "run-p --continue-on-error watch:source watch:types",
"watch:types": "npx tsc -w",
Expand Down
4 changes: 2 additions & 2 deletions packages/lib/src/SxComponent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type SxComponent<A extends React.ElementType = 'div', P = unknown> = <
args: {
as?: C;
sx?: SX;
} & React.ComponentPropsWithoutRef<C> &
} & Omit<React.ComponentPropsWithoutRef<C>, keyof P> &
P
) => React.ReactElement | null;

Expand All @@ -20,7 +20,7 @@ export type SxComponentWithRef<
as?: C;
sx?: SX;
ref?: ForwardedRef<C> | any;
} & React.ComponentPropsWithoutRef<C> &
} & Omit<React.ComponentPropsWithoutRef<C>, keyof P> &
P,
ref: React.ForwardedRef<C>
) => React.ReactElement | null;
Expand Down

0 comments on commit ea012c1

Please sign in to comment.