{"id":13563153,"url":"https://github.com/ElemeFE/element-react","last_synced_at":"2025-04-03T19:32:25.715Z","repository":{"id":45654571,"uuid":"71218135","full_name":"ElemeFE/element-react","owner":"ElemeFE","description":"Element UI","archived":false,"fork":false,"pushed_at":"2023-01-14T21:13:08.000Z","size":19416,"stargazers_count":2845,"open_issues_count":259,"forks_count":443,"subscribers_count":88,"default_branch":"master","last_synced_at":"2025-03-27T08:04:50.561Z","etag":null,"topics":["css","element-ui","javascript","react","react-components","ui-design"],"latest_commit_sha":null,"homepage":"https://elemefe.github.io/element-react/index","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElemeFE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-18T06:56:20.000Z","updated_at":"2025-03-18T04:22:03.000Z","dependencies_parsed_at":"2023-02-09T20:31:10.515Z","dependency_job_id":null,"html_url":"https://github.com/ElemeFE/element-react","commit_stats":null,"previous_names":["eleme/element-react"],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Felement-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Felement-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Felement-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElemeFE%2Felement-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElemeFE","download_url":"https://codeload.github.com/ElemeFE/element-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700148,"owners_count":20819829,"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":["css","element-ui","javascript","react","react-components","ui-design"],"created_at":"2024-08-01T13:01:15.699Z","updated_at":"2025-04-03T19:32:25.693Z","avatar_url":"https://github.com/ElemeFE.png","language":"JavaScript","readme":"# Element React\n\n[![](https://travis-ci.org/eleme/element-react.svg?branch=master)](https://travis-ci.org/eleme/element-react)\n[![](https://img.shields.io/npm/v/element-react.svg)](https://www.npmjs.com/package/element-react)\n[![](https://img.shields.io/npm/dm/element-react.svg)](https://www.npmjs.com/package/element-react)\n\n[Element](https://github.com/ElemeFE/element) was initially written in [Vue](https://vuejs.org/), which has many elegant UI components, but we also love [React](https://facebook.github.io/react/), so we forked it for the React community.\n\n## Getting Started\n\n### Install\n\n```bash\nnpm install element-react --save\n```\n\nBefore the building, you need a style theme, here we recommend you to pick up `element-theme-default`.\n\n```bash\nnpm install element-theme-default --save\n```\n\n### Usage\n\nWe are die hard fans of ECMAScript 6, so we recommend you writing code in modern javascript.\n\n```js\nimport { Button } from 'element-react';\n```\n\nAlso we provide an advanced way to [tree shaking](https://blog.engineyard.com/2016/tree-shaking) the code with [Rollup.js](http://rollupjs.org/) and [Webpack 2](https://webpack.github.io/)\n\n```js\nimport { Button } from 'element-react/next';\n```\n\n### Config\n\nWith webpack, you need additional loaders to build with `element-react`.\n\n```js\nconst webpack = require('webpack');\n\nmodule.exports = {\n  entry: {\n    src: 'path/to/src'\n  },\n  output: {\n    path: 'path/to/output'\n    publicPath: '/public',\n    chunkFilename: '[chunkhash:12].js',\n    filename: '[chunkhash:12].js'\n  },\n  plugins: [\n    new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify('production') }),\n    new webpack.optimize.UglifyJsPlugin({\n      output: {\n        comments: false\n      }\n    })\n  ],\n  resolve: {\n    extensions: ['.js', '.jsx']\n  },\n  module: {\n    loaders: [\n      {\n        test: /\\.jsx?$/,\n        loader: 'babel-loader',\n        include: ['path/to/src']\n      },\n      {\n        test: /\\.css$/,\n        loaders: ['style-loader', 'css-loader']\n      },\n      {\n        test: /\\.(ttf|eot|svg|woff|woff2)(\\?.+)?$/,\n        loader: 'file-loader?name=[hash:12].[ext]'\n      }\n    ]\n  }\n}\n```\n\n## Contributing\n\nPlease make sure to read the [Contributing Guide](https://github.com/eleme/element-react/blob/master/CONTRIBUTING.md) before making a pull request.\n\n## Acknowledgments\n\n* [@doxiaodong](https://github.com/doxiaodong) for adding typescript ambient declarations.\n* [@cuining](https://github.com/cuining) for building the live code editor.\n\n## Credits\n\n* [Element](https://github.com/ElemeFE/element) Desktop UI elements for Vue.js 2.0.\n\n## License\n\nMIT\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElemeFE%2Felement-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FElemeFE%2Felement-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FElemeFE%2Felement-react/lists"}