mirror of
https://github.com/HackPlan/UUI.git
synced 2026-04-28 10:05:40 +08:00
95 lines
3.3 KiB
Markdown
95 lines
3.3 KiB
Markdown
# UUI
|
|
|
|
Universal Utility-first React UI Library
|
|
|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|

|
|
[](https://doc.uui.cool/)
|
|
|
|

|
|
|
|
> **UUI is still heavily under development.** Specifications and Usage might change in the future and, as of now, no backwards compatibility is guaranteed!
|
|
|
|
English | [简体中文](https://github.com/HackPlan/UUI/blob/master/docs/README.zh-CN.md)
|
|
|
|
## Features
|
|
|
|
* A set of useful components out of the box.
|
|
* TypeScript based full type safety.
|
|
* Highly customizable.
|
|
* WAI-ARIA 1.2 compliance
|
|
|
|
## Installation
|
|
|
|
⚠️⚠️⚠️ UUI requires TypeScript 3.8 or higher. ⚠️⚠️⚠️
|
|
|
|
```bash
|
|
npm install @hackplan/uui --save
|
|
```
|
|
|
|
```bash
|
|
yarn add @hackplan/uui
|
|
```
|
|
|
|
## Usage
|
|
|
|
```tsx
|
|
import '@hackplan/uui/lib/index.css';
|
|
import { Button } from '@hackplan/uui';
|
|
|
|
function App() {
|
|
return (
|
|
<div>
|
|
<Button>Click me!</Button>
|
|
</div>
|
|
)
|
|
}
|
|
```
|
|
|
|
## Links
|
|
|
|
* [Documentation](https://doc.uui.cool)
|
|
* [Introduction](https://github.com/HackPlan/UUI/blob/master/docs/INTRODUCTION.zh-CN.md)
|
|
* [Using Customize](https://github.com/HackPlan/UUI/blob/master/docs/USING_CUSTOMIZE.zh-CN.md)
|
|
* [Principle & Implementation](https://github.com/HackPlan/UUI/blob/master/docs/PRINCIPLE.md)
|
|
* [Contributing](https://github.com/HackPlan/UUI/blob/master/CONTRIBUTING.md)
|
|
* [Deployment](https://github.com/HackPlan/UUI/blob/master/docs/DEVELOPMENT.md)
|
|
* [Changelog](https://github.com/HackPlan/UUI/blob/master/CHANGELOG.md)
|
|
|
|
## Development
|
|
|
|
For the development of this project, Yarn is preferred over npm. However, any Yarn command can be replaced by the npm equivalent.
|
|
|
|
```bash
|
|
git clone https://github.com/HackPlan/UUI.git
|
|
cd uui
|
|
nvm use
|
|
yarn
|
|
yarn storybook
|
|
```
|
|
|
|
Open your browser and visit http://localhost:6006 .
|
|
|
|
## Contributing
|
|
|
|
We welcome all contributions. Please read CONTRIBUTING.md first.
|
|
|
|
## Products built with UUI
|
|
|
|
| <img height="110" src="https://tuya.xinxiao.tech/assets/tuya-avator.png?rv=4" /> | <img height="80" src="https://duoshao.app/assets/logo.svg" /> | <img height="80" src="https://daylight.cool/images/6b7a7d4a-db86-46d3-80b9-fe66dcc59915.png" /> |
|
|
| :----------------------------------------------------------: | :----------------------------------------------------------: | ------------------------------------------------------------ |
|
|
| [图压](https://tuya.xinxiao.tech/) | [多少记账](https://duoshao.app/) | [昼间日历](https://daylight.cool/) |
|
|
|
|
## Licenses
|
|
|
|
All files on the UUI GitHub repository are subject to the MIT license. Please read the License file at the root of the project.
|