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

jayden-ui

v1.2.17

Published

**Github:** [Jayden-UI](https://github.com/SpinninJayWE/Jayden-UI)<br> **NPM:** [Jayden-UI](https://www.npmjs.com/package/jayden-ui)<br> **Github主页:** [Jay](https://github.com/SpinninJayWE)<br> **Docs:Components**: [Jayden-ui:Components](https://spinni

Downloads

6

Readme

Jayden-Ui

基于Vue3+Typescript开发UI组件库

Github: Jayden-UI NPM: Jayden-UI Github主页: Jay Docs:Components: Jayden-ui:Components

第一步:安装

使用包管理器

使用包管理器(如 NPM、Yarn 或 pnpm)安装 Jayden-ui,然后您就可以使用打包工具,例如 Vite 或 webpack。

npm install jayden-ui

如果有依赖未安装启动报错 请先使用以下命令按照依赖

npm install jayden-ui-utils jayden-ui-utils

第二步:使用教程

介绍如何在项目中使用Jayden-ui

用法

完整引入

如果你对打包后的文件大小不是很在乎,那么使用完整导入会更方便。

// main.ts
import { createApp } from 'vue';
import App from './App.vue';
import JayUi from 'jayden-ui';

const app = createApp(App);

app.use(JayUi);
app.mount('#app');

Volar 支持 如果您使用 Volar,请在 tsconfig.json 中通过 compilerOptions.type 指定全局组件类型。

// tsconfig.json
{
  "compilerOptions": {
    // ...
    "types": ["jayden-ui/es/src/components.d.ts"]
  }
}

手动引入

Jayden-ui 提供了基于 ES Module 的开箱即用的 Tree Shaking

因为样式和组件是捆绑在一起 所以在引入组件时不需要再单独引入css

<template>
  <button>我是 JButton</button>
</template>

<script>
  import { Button } from 'jayden-ui';
  export default {
    components: { Button }
  };
</script>