ness-ui
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.9 • Public • Published

    NESS-UI

    基于React开发的移动端UI组件库 📦

    演示地址

    点击查看

    安装

    npm install ness-ui

    引入

        import Button from 'ness-ui'
        import 'ness-ui/lib/components/styles/Button.css'

    或者

        import { Button } from 'ness-ui'
        import 'ness-ui/lib/components/styles/Button.css'

    如需要配置按需加载,可安装babel-plugin-component来实现组件和样式的按需加载,创建一个.babelrc.js文件,添加如下配置:

    module.exports = {
        "plugins": [
            ["component", {
                "libDir": "lib/components",
                "camel2Dash": false,
                "root": "index",
                "libraryName": "ness-ui",
                "style":true,
                "styleLibrary": {
                    "name": "styles"
                }
            }, "ness-ui"]
        ]
    };

    配置成功后,即可像下面这样引入组件即可:

        import { Button } from 'ness-ui'

    Install

    npm i ness-ui

    DownloadsWeekly Downloads

    1

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    628 kB

    Total Files

    234

    Last publish

    Collaborators

    • tanghua