Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(docs): Update gatsby-slice.md to reference styled components non-support #37525

Merged
merged 4 commits into from
Jan 24, 2023
4 changes: 4 additions & 0 deletions docs/docs/reference/built-in-components/gatsby-slice.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ export const query = graphql`

## Restrictions on using `<Slice>` placeholder

### JSS and Styled Components Support

Using Styled-components or JSS within Slice components is currently [not supported](https://github.com/gatsbyjs/gatsby/issues/37278). Alternatively, you can use emotion or normal CSS.

### Must be in `src` directory

Slice placeholders must be used in files that are nested below your site's top-level `src` directory. For example:
Expand Down