npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@any-design/anyui

v0.4.0

Published

A cute UI components library for Vue 3

Downloads

283

Readme

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