Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #483 from gluestack/fix/waring-passing-prop
Browse files Browse the repository at this point in the history
fix: added Warning for passing prop in media query
  • Loading branch information
ankit-tailor authored Oct 17, 2023
2 parents 68a1888 + 3952576 commit 9f22b6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example/storybook/src/api/PropsPassing/index.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ const StyledComponent = styled(
},
);
```

> Caution: Utilizing the `Passing Props` feature within `Media Queries` is not supported.
3 changes: 3 additions & 0 deletions example/storybook/src/api/ResponsiveStyles/index.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ Once configured, you can apply different styles at different breakpoints.
/>
</AppProvider>


> Note that the '@' symbol indicates a media query.The '@' symbol should be followed by the name of the desired breakpoint for the styles.
> Note that the same API can be used with the sx prop to override styles inline.
> Caution: Utilizing the `Passing Props` feature within `Media Queries` is not supported.

0 comments on commit 9f22b6c

Please sign in to comment.