English | 简体中文
@tuya-miniapp/smart-ui is a lightweight and reliable smart mini app component library, implemented based on vant-weapp. It provides a complete set of UI components that comply with Tuya MiniApp mobile design specifications (currently does not support WeChat Mini Program, this component library only supports Tuya MiniApp).
Scan the MiniApp QR code below to experience the component library examples.
Before using Smart UI, make sure you have studied the official Quick Start and MiniApp Component Introduction.
# Install via yarn (recommended)
yarn add @tuya-miniapp/smart-ui
# Install via npm
npm i @tuya-miniapp/smart-uiTake the button component as an example, you only need to introduce the corresponding custom component of the button in the JSON file.
{
"usingComponents": {
"smart-button": "@tuya-miniapp/smart-ui/lib/button/index"
}
}Then you can directly use the component in TYML.
<smart-button type="primary">Button</smart-button># Install project dependencies
yarn
# Execute component compilation
yarn devOpen Tuya MiniApp Tools, add the smart-ui/example directory to preview the examples.
@tuya-miniapp/smart-ui provides stable support starting from version 2.19.0 of the Tuya MiniApp base library.
SmartUI Component Library Official Website
MiniApp SmartUI Component Library Official Website
SmartUI GitHub
MiniApp SmartUI GitHub
MiniApp Community Forum
Ray Official Website
Ray Material Market
Public Source Collection of Materials and Templates
This project follows Angular Style Commit Message Conventions
This project is licensed under the MIT license. Please feel free to enjoy and participate in open-source.
