# taro-ui

> UI KIT for Taro

Latest version **3.4.1** (published 2026-07-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install taro-ui
pnpm add taro-ui
yarn add taro-ui
bun add taro-ui
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.4.1 |
| Published | 2026-07-30 |
| First published | 2018-08-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 4 |
| Unpacked size | 2.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4729 |
| Author | O2Team |
| Maintainers | kopptho, 329604487, defaultlee, garfield550, robin.ren |
| Keywords | taro, taro-ui, ui |

## Links

- npm: https://www.npmjs.com/package/taro-ui
- Repository: https://github.com/nervjs/taro-ui
- Homepage: https://jd-opensource.github.io/taro-ui/#/
- Issues: https://github.com/nervjs/taro-ui/issues
- npm.io page: https://npm.io/package/taro-ui

## Dependencies (4)

- [dayjs](https://npm.io/package/dayjs.md) ^1.7.7
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 3.4.1 (latest) — 2026-07-30
- 3.2.0-beta.2 (beta) — 2023-11-19
- 3.4.0 — 2026-07-13
- 3.3.3 — 2026-05-25
- 3.3.2 — 2026-05-21
- 3.3.1 — 2026-04-22
- 3.3.0 — 2024-01-24
- 3.2.2 — 2024-01-04
- 3.2.1 — 2024-01-03
- 3.2.0 — 2023-11-20
- 3.2.0-beta.1 — 2023-11-19
- 3.2.0-beta.0 — 2023-11-19
- 3.1.1 — 2023-08-21
- 3.1.0 — 2023-08-20
- 3.1.0-beta.8 — 2023-08-16
- … 87 more at https://npm.io/package/taro-ui/versions

## README

# Taro UI

[![NPM][npm-version-image]][npm-version-url] [![NPM Downloads][npm-downloads-image]][npm-downloads-url] [![david-dm][david-dm-image]][david-dm-url] [![License][license-image]][license-url]

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

## 特性

- 基于 `Taro` 开发 UI 组件
- 一套组件可以在 `微信小程序`，`支付宝小程序`，`百度小程序`，`H5`，`ReactNative` 多端适配运行
- 提供友好的 API，可灵活的使用组件

## 关于 Taro

Taro 是由 [凹凸实验室](https://aotu.io) 倾力打造的多端开发解决方案。现如今市面上端的形态多种多样，Web、ReactNative、微信小程序等各种端大行其道，当业务要求同时在不同的端都要求有所表现的时候，针对不同的端去编写多套代码的成本显然非常高，这时候只编写一套代码就能够适配到多端的能力就显得极为需要。

使用 Taro，我们可以只书写一套代码，再通过 Taro 的编译工具，将源代码分别编译出可以在不同端（微信小程序、H5、RN等）运行的代码。

## 体验

请使用微信扫一扫以下体验码

![QRCode](https://user-images.githubusercontent.com/1240899/46650700-25a4e600-cbd0-11e8-90ff-905edb39c340.jpg)

## 相关链接

- [Taro UI 使用文档](https://jd-opensource.github.io/taro-ui/#/)
- [Taro UI 官方示例](https://github.com/NervJS/taro-ui-demo)
- [Taro](https://taro.jd.com/)
- [Taro 物料市场](https://taro-ext.jd.com)
- [Taro 论坛 Taro-UI 板块](https://taro-club.jd.com/category/11/taro-ui)

## 安装

### 2.x
当 Taro 版本 < 3 时，使用 2.x 版本

```bash
$ npm install taro-ui@2.3.4
```

### 3.x
当 Taro 版本 ≥ 3 时，使用 3.x 版本

```bash
$ npm install taro-ui@latest
```

## 使用

在代码中 `import` 需要的组件并按照文档说明使用

```js
import { AtButton } from 'taro-ui'
```

## 开发交流

[官方微信交流群](https://github.com/NervJS/taro-ui/issues/16)

## 开发计划

[查看 Roadmap →](../../ROADMAP.md)

## 路线图

Taro UI 正在积极恢复维护中，当前重点完成 Monorepo 重构、CSS 预编译和 Taro v4 兼容性验证。详细规划请查看 [ROADMAP.md](../../ROADMAP.md)。

## 贡献

如果你在使用 `Taro UI` 时遇到问题，或者有好的建议，欢迎给我们提 `Issue` 或 `Pull Request`。在开始之前，请阅读 [贡献指南](../../.github/CONTRIBUTING.md)

## License

MIT

[npm-version-image]: https://img.shields.io/npm/v/taro-ui.svg?style=flat-square
[npm-version-url]: https://www.npmjs.com/package/taro-ui
[npm-downloads-image]: https://img.shields.io/npm/dm/taro-ui?style=flat-square
[npm-downloads-url]: https://www.npmjs.com/package/taro-ui
[david-dm-image]: https://david-dm.org/NervJS/taro-ui.svg?style=flat-square
[david-dm-url]: https://david-dm.org/NervJS/taro-ui
[license-image]: https://img.shields.io/github/license/jd-opensource/taro-ui?style=flat-square
[license-url]: ../../LICENSE
[roadmap-image]: ../../docs/assets/taro-ui-roadmap.svg

---
_Source: https://npm.io/package/taro-ui · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
