Big update!Introducing GitHub Bot Commands. Learn more →
Socket
Log inBook a demo

shopee-ui-react

Package Overview
Dependencies
23
Maintainers
1
Versions
3
Issues
File Explorer

Advanced tools

shopee-ui-react

A set of UI components written with React.

    2.10.49unpublished

Version published
Maintainers
1
Weekly downloads
3
increased by50%

Weekly downloads

Readme

Source

EDS React

A set of UI components written with React.

🔩 Install

npm install shopee-ui-react

🔰 Quick Start

// 全局引入 import * as ShopeeUI from 'shopee-ui-react/dist/shopee-ui-react.min.js'; import 'shopee-ui-react/lib/theme-default/index.css'; // 类型引入 import { ButtonProps } from 'shopee-ui-react'; or import { ButtonProps } from 'shopee-ui-react/es/components/button/types'; // 按需加载 import { Button } from 'shopee-ui-react'; import 'shopee-ui-react/es/theme-default/components/button/index.css'; // EDS默认支持基于 ES modules 的 tree shaking,对于 js 部分,直接引入 import { Button } from 'shopee-ui-react' 就会有按需加载的效果。

也可以使用 babel-plugin-import 来实现按需加载

// .babelrc.js module.exports = { plugins: [ [ 'import', { libraryName: 'shopee-ui-react', libraryDirectory: 'es/components', customStyleName: (component) => `shopee-ui-react/es/theme-default/components/${component}/index.css` } ] ] } // babel-plugin-import 会帮助你加载 JS 和 CSS import { Button } from 'shopee-ui-react'; ↓ ↓ ↓ ↓ ↓ ↓ ↓ import Button from 'shopee-ui-react/es/components/button'; import 'shopee-ui-react/es/theme-default/components/button/index.css'

🤝 Contributing

Read our contributing guide.

Keywords

FAQs

What is shopee-ui-react?

security holding package

Is shopee-ui-react popular?

The npm package shopee-ui-react receives a total of 3 weekly downloads. As such, shopee-ui-react popularity was classified as not popular.

Is shopee-ui-react well maintained?

We found that shopee-ui-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 0 open source maintainers collaborating on the project.

Last updated on 08 Nov 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc