gitmyhub

taro-ui

TypeScript ★ 4.7k updated 16d ago

一款基于 Taro 框架开发的多端 UI 组件库

Taro UI is a library of ready-made interface components for apps built with the Taro framework. Taro is a development tool, originally created by the O2 Lab team at JD.com (a large Chinese e-commerce company), that lets developers write a single codebase and compile it to run on multiple platforms at once.

The problem Taro solves is that mobile apps today need to run in several places: the web browser, WeChat Mini Programs (small apps that run inside WeChat without a separate install), Alipay Mini Programs, Baidu Mini Programs, and more. Without a tool like Taro, a team would need to write and maintain separate code for each platform. Taro compiles one set of code into the format each platform expects.

Taro UI sits on top of Taro and provides pre-built components, things like buttons, forms, navigation bars, and other common interface elements, so developers do not have to build them from scratch for every project. A single set of these components works across WeChat Mini Programs, Alipay Mini Programs, Baidu Mini Programs, and H5 (standard web). React Native support was not yet available at the time of the README.

Installation requires the Taro command-line tool and then adding taro-ui as a project dependency. Components are then imported by name from the taro-ui package.

The README is written in Chinese. The project is open source under the MIT license and maintained by JD.com's open-source team. A version 3 update was in development at the time of writing.