Socket
Book a DemoInstallSign in
Socket

gatsby-plugin-antd

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-antd

Gatsby plugin to use Ant Design

2.2.0
latest
Source
npmnpm
Version published
Weekly downloads
1.7K
0.65%
Maintainers
1
Weekly downloads
 
Created
Source

npm package

gatsby-plugin-antd

Use Ant Design with Gatsby

Install

npm install antd gatsby-plugin-antd --save

How to use

  • Include the plugin in your gatsby-config.js file.
// in gatsby-config.js
plugins: [
  'gatsby-plugin-antd'
]
// or if you want to use less
plugins: [
  {
      resolve: 'gatsby-plugin-antd',
      options: {
        style: true
      }
  }
]

note: if you are using less then you need to install less

// in your component
import { Button } from 'antd'

export default () => <Button type="primary">Primary</Button>
  • It will pull in the component and the relevant css file using babel-plugin-import

Keywords

gatsby

FAQs

Package last updated on 28 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.