Skip to content

Commit

Permalink
fix: Filter href prop
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Dec 19, 2022
1 parent b16f8c7 commit 1cb327d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Box.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type BoxProps = RestrictedProps<DefaultTheme> & {
*/
export const Box = styled.div<BoxProps>(
// @ts-expect-error HACK: Filter out common props from rendering as styles
({ children, as, src, variant, theme, css, ...props }) => {
({ children, as, src, href, variant, theme, css, ...props }) => {
return getCss({ ...props, ...css }, theme);
}
);
Expand Down

0 comments on commit 1cb327d

Please sign in to comment.