saltui
1.0.0
Chinese | English
SaltUI is a React UI component library officially cooperated with DingTalk. It is committed to providing efficient, concise and practical component solutions for DingTalk micro-application developers and other React developers.
https://salt-ui.github.io/
$ npm install saltui --save
import { Button } from 'saltui' ;
ReactDOM . render ( < Button /> , mountNode ) ;
Use babel-plugin-import (recommended).
// .babelrc or babel-loader option
{
"plugins" : [
[ "import" , { libraryName : "saltui" , camel2DashComponentName : false } ]
]
}
After configuration, the reference method does not need to be changed, and on-demand loading can be achieved.
Or, import it manually
import Button from 'saltui/lib/Button' ;
@import '~saltui/build/salt-ui.css' ;
This project is developed and released under the MIT license.