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

@easyv/react-components

v0.3.11

Published

a react component library base on arco design

Downloads

556

Readme

@easyv/react-components

NPM version NPM downloads

a react component library base on arco design

Usage

安装包

基础包

pnpm add @arco-design/web-react @arco-plugins/vite-react

主题包,例如 @arco-themes/react-easytwin

pnpm add @arco-themes/react-easytwin

配置

以 vite 为例

配置 vite.config.ts

import { vitePluginForArco } from '@arco-plugins/vite-react';

export default defineConfig({
  // ...
  plugins: [
    // ...
    vitePluginForArco({
      theme: '@arco-themes/react-easytwin',
    }),
  ],
});

如果是应用的暗色主题,请在 index.html 的 body 上添加 arco-theme="dark",如果是亮色的,可以不加。

使用

可以统一在 components 目录下新建一个 ui.ts 文件,这个文件的主要作用就是从 @easyv/react-components 中导入组件并导出

export { Input } from '@easyv/react-components';

这样方便统一管理,后面如果要迁移组件库,只需要修改这个文件即可。

注意:不要引 @arco-design/web-react,这是依赖的基础库,但不是直接使用的库。@easyv/react-components 会基于它做一些定制。

Options

TODO

Development

# install dependencies
$ pnpm install

# develop library by docs demo
$ pnpm start

# build library source code
$ pnpm run build

# build library source code in watch mode
$ pnpm run build:watch

# build docs
$ pnpm run docs:build

# check your project for potential problems
$ pnpm run doctor

Buglist

  • radius 没有应用四种尺寸
  • select 下的 tag 颜色没有应用对
  • input disabled background-color 优先级问题
  • radio 中心点的样式 为 color-white 暗色模式下 为透明色,应该为白色,文档中为 hsla(0,0%,100%,0.9),实际配置 rgba(255,255,255,0)
  • input 聚焦的输入框圆角问题

LICENSE

MIT