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

fix: added Warning for passing prop in media query #483

Merged
merged 2 commits into from
Oct 17, 2023
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
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.