0.3.3 • Published 12 days ago

@any-design/anyui v0.3.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 days ago

AnyUI

English | 中文

This is a cute UI components library for Vue 3.

IMPORTANT: This project is still working in progress.

How to use

Step 1: Install the @any-design/anyui package.

# Suggested to use npm@8
$ npm install @any-design/anyui
$ yarn add @any-design/anyui

Step 2: Import the library into your project.

This is a minimal example:

import { createApp } from 'vue';
import AnyUI from '@any-design/anyui';
// DON'T forget to import the style file
import '@any-design/anyui/styles/index.css'; // or '@any-design/anyui/styles/index.scss'

const app = createApp(App);

app.use(AnyUI);

app.mount('#app');

Import on demand

We've added support for unplugin-vue-components, it's easily to enable "Importing on demand" on your project.

To enable this feature, you need to do the following steps:

Step 1: Install unplugin-vue-components and unplugin-auto-import.

npm i unplugin-vue-components unplugin-auto-import -D

Step 2: Import the resolver to your project configuration.

import { AnyUIResolver } from '@any-design/anyui/lib/resolver';
import AutoImport from 'unplugin-auto-import/vite';
import Components from 'unplugin-vue-components/vite';

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    vue(),
    AutoImport({
      resolvers: [AnyUIResolver()],
    }),
    Components({
      resolvers: [AnyUIResolver()],
    }),
  ],
});

Step 3: Directly using components in the template:

<template>
  <div class="container">
    <a-button type="primary">Button</a-button>
  </div>
</template>

The related component and styles will be imported automatically.

Step 4 (Optional): Import styles on demand:

In the main file you imported @any-design/anyui, replace @any-design/anyui/style/index.css to @any-design/anyui/style/theme.css.

import { createApp } from 'vue';
import AnyUI from '@any-design/anyui';
// Modify the following line:
import '@any-design/anyui/styles/theme.css'; // or '@any-design/anyui/styles/theme.scss'

const app = createApp(App);

app.use(AnyUI);

app.mount('#app');

Custom Theme

See Theme Customization for more details.

TypeScript Support

This project is written in TypeScript, providing a built-in Typescript definition file.

Contributing

Code development

You can fork this project to your GitHub project repository, and clone the repository to your local machine. Of coures, you can also use GitHub Dev.

Git clone instructions:

$ git clone https://github.com/any-design/anyui.git
$ cd anyui
$ npm install
$ npm run dev

Pull requests

AnyDesign team members use our spare time to develop this project, we will review any contribution, and merge it into the main branch.

We have set up a CI pipeline to ensure that your code meets our prefer code standards, you have to pass the tests to merge your code into the main branch.

Welcome pull requests from anyone.

Need help?

If you have any questions, please contact us. We also encourage the community members to help each other.

Before you start contributing, please read the How To Ask Questions The Smart Way, to make sure you can get the best answer.

  1. GitHub Issues
  2. Coming soon...

Documentation

You can find all the documents under the docs folder.

Documents were generated by gpt-3.5-turbo-16k (some new documents were generated by gpt-4).

⚠ We do not guarentee the accuracy of the documents as this time, they're for reference only. We will verify and modify all the documents in the future.

Testground

We've deployed a testground, where you can explore all of our UI components.

https://anyui-testground.pwp.app

License

MIT

0.3.3

12 days ago

0.3.2

2 months ago

0.3.1

3 months ago

0.3.0

3 months ago

0.2.7

6 months ago

0.2.6

6 months ago

0.2.9

6 months ago

0.2.8

6 months ago

0.1.11

6 months ago

0.1.12

6 months ago

0.1.13

6 months ago

0.1.14

6 months ago

0.1.15

6 months ago

0.1.20

6 months ago

0.1.21

6 months ago

0.2.1

6 months ago

0.2.0

6 months ago

0.1.16

6 months ago

0.1.17

6 months ago

0.1.18

6 months ago

0.1.19

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago

0.2.5

6 months ago

0.2.4

6 months ago

0.1.10

7 months ago

0.1.0

9 months ago

0.1.2

8 months ago

0.1.1

8 months ago

0.1.8

7 months ago

0.1.9

7 months ago

0.1.4

8 months ago

0.1.3

8 months ago

0.1.6

8 months ago

0.1.5

8 months ago

0.0.53

10 months ago

0.0.54

10 months ago

0.0.55

10 months ago

0.0.56

9 months ago

0.0.51

1 year ago

0.0.52

1 year ago

0.0.50

1 year ago

0.0.49

1 year ago

0.0.46

1 year ago

0.0.47

1 year ago

0.0.48

1 year ago

0.0.40

1 year ago

0.0.41

1 year ago

0.0.42

1 year ago

0.0.43

1 year ago

0.0.44

1 year ago

0.0.45

1 year ago

0.0.28-f1

2 years ago

0.0.28-f2

2 years ago

0.0.28-f3

2 years ago

0.0.28-f4

2 years ago

0.0.28-f5

2 years ago

0.0.28-f6

2 years ago

0.0.37

2 years ago

0.0.38

2 years ago

0.0.39

2 years ago

0.0.30-f1

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.0.32

2 years ago

0.0.33

2 years ago

0.0.34

2 years ago

0.0.35

2 years ago

0.0.36

2 years ago

0.0.28

2 years ago

0.0.31-f1

2 years ago

0.0.29

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.23

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.19

2 years ago

0.0.26

2 years ago

0.0.27

2 years ago

0.0.10

2 years ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.14

2 years ago

0.0.9

2 years ago

0.0.16

2 years ago

0.0.8

2 years ago

0.0.17

2 years ago

0.0.18

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago