{"id":21534974,"url":"https://github.com/bskimball/gatsby-plugin-antd","last_synced_at":"2025-06-13T16:32:07.423Z","repository":{"id":57244584,"uuid":"99241679","full_name":"bskimball/gatsby-plugin-antd","owner":"bskimball","description":"Plugin to add Ant Design to Gatsby","archived":false,"fork":false,"pushed_at":"2020-10-13T17:12:06.000Z","size":36,"stargazers_count":69,"open_issues_count":3,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T03:24:05.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bskimball.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-03T14:29:38.000Z","updated_at":"2023-06-28T06:55:50.000Z","dependencies_parsed_at":"2022-09-01T04:23:16.203Z","dependency_job_id":null,"html_url":"https://github.com/bskimball/gatsby-plugin-antd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bskimball%2Fgatsby-plugin-antd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bskimball%2Fgatsby-plugin-antd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bskimball%2Fgatsby-plugin-antd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bskimball%2Fgatsby-plugin-antd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bskimball","download_url":"https://codeload.github.com/bskimball/gatsby-plugin-antd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247987108,"owners_count":21028891,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T03:13:33.437Z","updated_at":"2025-04-10T01:43:36.066Z","avatar_url":"https://github.com/bskimball.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm package](https://img.shields.io/npm/v/gatsby-plugin-antd.svg?style=flat-square)](https://www.npmjs.org/package/gatsby-plugin-antd)\n\n# gatsby-plugin-antd\nUse Ant Design with Gatsby\n\n## Install\n`npm install antd gatsby-plugin-antd --save`\n\n## How to use\n1. Include the plugin in your `gatsby-config.js` file.\n\n```javascript\n// in gatsby-config.js\nplugins: [\n  'gatsby-plugin-antd'\n]\n// or if you want to use less\nplugins: [\n  {\n      resolve: 'gatsby-plugin-antd',\n      options: {\n        style: true\n      }\n  }\n]\n```\nnote: if you are using less then you need to install less\n\n2. In your component(s) include the Ant Design component using dynamic imports as suggested here https://ant.design/docs/react/getting-started#Import-on-Demand\n\n```javascript\n// in your component\nimport { Button } from 'antd'\n\nexport default () =\u003e \u003cButton type=\"primary\"\u003ePrimary\u003c/Button\u003e\n```\n\n3. It will pull in the component and the relevant css file using babel-plugin-import\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbskimball%2Fgatsby-plugin-antd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbskimball%2Fgatsby-plugin-antd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbskimball%2Fgatsby-plugin-antd/lists"}