Have ideas to improve npm?Join in the discussion! »

    gatsby-plugin-styled-components

    4.7.1 • Public • Published

    gatsby-plugin-styled-components

    A Gatsby plugin for styled-components with built-in server-side rendering support.

    Install

    npm install gatsby-plugin-styled-components styled-components babel-plugin-styled-components

    How to use

    Edit gatsby-config.js

    module.exports = {
      plugins: [
        {
          resolve: `gatsby-plugin-styled-components`,
          options: {
            // Add any options here
          },
        },
      ],
    }

    Options

    You can pass options to the plugin, see the Styled Components docs for a full list of options.

    For example, to disable the displayName option:

    options: {
      displayName: false
    }

    Note: The ssr option will be ignored. Gatsby will apply it automatically when needed.

    Install

    npm i gatsby-plugin-styled-components

    DownloadsWeekly Downloads

    98,606

    Version

    4.7.1

    License

    MIT

    Unpacked Size

    28.2 kB

    Total Files

    8

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar