🚀 DAY 4 OF LAUNCH WEEK: Introducing GitHub Actions Scanning Support.Learn more
Socket
Book a DemoInstallSign in
Socket

@chainx/ui

Package Overview
Dependencies
Maintainers
3
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chainx/ui

基于 React material ui 开发 https://material-ui.com/

latest
npmnpm
Version
0.1.4
Version published
Maintainers
3
Created
Source

Chainx ui

基于 React material ui 开发 https://material-ui.com/

开发调试

yarn run storybook

引入依赖

# 在 chainx ui 中
yanr build --watch
yarn link

# 在你的项目中
yarn link @chainx/ui

自定义样式

  • theme.ts

  • makeStyle

有时候我们需要项目和组件库同时进行开发。此时将组件库作为项目的本地依赖,会极大的方便开发。为此,我们需要以下的几步。

  • 在组件库目录运行 yarn link
  • 在项目目录运行 yarn link @chainx/ui
  • 在组件库运行 npm link {你的项目目录}/node_modules/reactnpm link {你的项目目录}/node_modules/react-dom
  • 在组件库目录里面运行 yarn build --watch 以便可以实时的构建更改的文件。

发布

yarn publish

FAQs

Package last updated on 24 Mar 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