A configurable component library for web built on React.
npm install miniapp-nextEnglish | įŽäŊ䏿
An enterprise-class UI solution for backend system, amied of settling the problems like cooperation between designers and front-developers, consistency of product experience and development efficiency.
---
You can customize your own DesignSystem via Collaboration Platform.đ Designers will receive design materials by Fusion Cool - an easy to use plugin on sketch. Developers will get code fragment on IceWorks. At the same time, the consistency between code and visual manuscript is guaranteed. đ
@alifd/next usually used with Fusion Design to improving designer-developer collaboration and development efficiency. Designer can customize the UI of components and release an npm theme package. Developer can use this theme package directly, and don't need to care about the UI refactoring. It saves the workload of reductive degree review repeatedly with designers, and greatly improves the development efficiency.

| !Chrome | !Firefox | !Edge | !IE | !Safari | !Opera | !UC |
| :--------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------: | :--------------------------------------------------------------------------: |
| â | â | â | 9+ â | â | â | â |
```
npm install @alifd/next --save
Use the script and link tags in the browser to directly import the file and use the global variable Next. We provide files such as next.js/next.min.js and next.css/next.min.css in the @alifd/next/dist directory in the npm package, or via unpkg Download it.
`html
// The above ways import latest @alifd/next, we recommend you specify version.
// Or import as your own static resource
`
- @alifd/next is based on react@16 development and is currently not compatible with versions below react@16. react/react-dom is used as peerDependencies, which requires the user to manually install or import it.@alifd/next
- use moment library to implement date-time related component. moment is also used as peerDependencies, which requires the user to manually install or import it.
`js
import '@alifd/next/dist/next.css';
// import '@alifd/next/index.scss';
import { Button, Input } from '@alifd/next';
`
#### 1. Import module manually
`js`
import Button from '@alifd/next/lib/button';
import '@alifd/next/lib/button/style';
#### 2. Use with babel-plugin-import ( Recommend )
`js`
// webpack babel loader option or .babelrc
{
// ...
plugins: [
[
'babel-plugin-import',
{
libraryName: '@alifd/next',
style: true,
},
],
];
}
It will transform code as below
`js`
import { Button } from '@alifd/next';
To
`js``
import Button from '@alifd/next/lib/button';
import '@alifd/next/lib/button/style';
- Use with Theme Package
- Internationalization
- Deploy Font File
Use Dingtalk App scan the Qrcode to join in _Dingtalk Group_ :
