Coder Social home page Coder Social logo

duanruilong / next Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alibaba-fusion/next

0.0 1.0 0.0 206.64 MB

๐Ÿฆ A configurable component library for web built on React.

Home Page: https://fusion.design

License: MIT License

CSS 0.05% JavaScript 76.61% HTML 0.86% SCSS 22.48%

next's Introduction

English | ็ฎ€ไฝ“ไธญๆ–‡

Fusion

An enterprise-class UI solution for backend system, aimed at 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. ๐Ÿ˜

howtouse

๐Ÿค” Why use

@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.

๐Ÿ’ป Browser Compatibility

Chrome Firefox Edge IE Safari Opera UC
โœ” โœ” โœ” 9+ โœ” โœ” โœ” โœ”

๐Ÿš€ Quick Start

๐Ÿ›  Install

1.Use NPM ( Recommend )

npm install @alifd/next --save

2.Import in Browser

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.

<link rel="stylesheet" href="https://unpkg.com/@alifd/next/dist/next.css" />

<script src="https://unpkg.com/@alifd/next/dist/next.js"></script>

// The above ways import latest @alifd/next, we recommend you specify version.
<script src="https://unpkg.com/@alifd/[email protected]/dist/next.min.js"></script>

// Or import as your own static resource
<script src="../build/public/@alifd/next.js"></script>

โ˜”๏ธ Dependencies

  • @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.

๐ŸŽฏ Import

Import All

import '@alifd/next/dist/next.css';
// import '@alifd/next/index.scss';

import { Button, Input } from '@alifd/next';

Import module with plugin

1. Import module manually

import Button from '@alifd/next/lib/button';
import '@alifd/next/lib/button/style';

2. Use with babel-plugin-import ( Recommend )

// webpack babel loader option or .babelrc
{
    // ...
    plugins: [
        [
            'import',
            {
                libraryName: '@alifd/next',
                style: true,
            },
        ],
    ];
}

It will transform code as below

import { Button } from '@alifd/next';

To

import Button from '@alifd/next/lib/button';
import '@alifd/next/lib/button/style';

๐Ÿ”— Advanced

๐ŸŒˆ Contributing

๐Ÿ“ฃ Join Group

Use Dingtalk App scan the Qrcode to join in Dingtalk Group :

Join the chat at dingtalk

next's People

Contributors

185172970 avatar bindoon avatar bojoyzhou avatar byeval avatar csr632 avatar empireo avatar guanpu avatar heluwe avatar hongxingshi avatar ileenhow avatar jdkahn avatar jerryyxu avatar jinchanz avatar lianmin avatar liunian avatar macrox avatar myronliu347 avatar nianxiongdi avatar purple-force avatar richardo2016 avatar skysuka avatar tao1991123 avatar wqj97 avatar wwsun avatar xdddi avatar youluna avatar zhaofinger avatar zhoukekestar avatar zobor avatar zuoqi705 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.