Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

xxxcandy/xcandy-ui-taro

Repository files navigation

XCandy UI Taro

Npm Ci

A UI framework for taro.js

View

https://xxxcandy.github.io/xcandy-ui-taro

Usage

Install

npm install @xcandy/ui-taro

Use in your Taro component

import Taro, { Component } from '@tarojs/taro'
import { View } from '@tarojs/components'
import { XcCalendar } from '@xcandy/ui-taro'

class Demo extends Component {
  render() {
    return (
      <View>
        <XcCalendar />
      </View>
    )
  }
}

export default Demo

Dont forget add esnextModules: ['@xcandy/ui-taro'] on config if you want to build h5.

See: https://nervjs.github.io/taro/docs/config-detail.html#h5esnextmodules

Development

Build UI component

npm run ui:build

Dev command

# h5
npm run dev:h5

# weapp
npm run dev:weapp

License

MIT