Giter Club home page Giter Club logo

arco-design's Introduction

Arco Design

A comprehensive React UI components library based on the Arco Design system.

license Awesome

English | 简体中文

arco-video.mp4

Features

Comprehensive

With more than 60 crafted components that you can use out of the box.

Customizable theme

Extensive design tokens can be customized to build your own theme. Two ways of customization are supported:

Reusable custom materials

Material market provides a one-stop solution for materials management. Reuse customized modules to make a breakthrough in efficiency.

TypeScript friendly

All components are written in TypeScript so it's type friendly.

Installation

Available as an npm package

// with npm
npm install @arco-design/web-react

// with yarn
yarn add @arco-design/web-react

Examples

import React from 'react';
import ReactDOM from 'react-dom';
import { Button } from '@arco-design/web-react';
import '@arco-design/web-react/dist/css/arco.css';

function App() {
  return (
    <Button type='secondary'>
      Hello World
    </Button>
  );
}

ReactDOM.render(<App />, document.getElementById('app'));

Useful Links

Ecosystems

Project Description
Vue Component Library A comprehensive Vue UI components library based on the Arco Design system
Design Lab A platform to create and manage your themes with ease.
Material Market A platform that provides massive high-quality customized materials to greatly boost development efficiency.
Icon Box One-stop platform to manage your icons.
Arco Pro A solution to quickly building applications from scratch.

Browser Support

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
Opera
Opera
Electron
Electron
Edge 16 31 49 31 36 last 2 versions

Contributing

Developers interested in contributing should read the Code of Conduct and the Contributing Guide.

Thank you to all the people who already contributed to ArcoDesign!

License

This project is MIT licensed.

arco-design's People

Contributors

2239559319 avatar bestlyg avatar bluesky1997al avatar chelestewang avatar chenc041 avatar ederzz avatar feiyan-nan avatar feliuyg avatar fengxinhhh avatar flsion avatar gitducheng avatar headwindz avatar jiahao-c avatar kirazxyun avatar kungege avatar leadn avatar lianghx-319 avatar lrenc avatar luckyship avatar masterx89 avatar megrax avatar misterluffy avatar nmsn avatar pengjiyuan avatar show8e avatar sleepdevil avatar slevisp avatar windrunnermax avatar yinkaihui avatar yuhan0709 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arco-design's Issues

Part of Popconfirm not move together with the core part of Popconfirm once mounted on Slider button

Basic Info

预期结果

The triangle part of Popconfirm should move together with the core part of Popconfirm at all cases.

复现步骤

Once the given codesandbox opened, you can find that the triangle part of Popconfirm mounted on Slidrer button and the core part get separated, and, what's more, the problem remains when you shift the slider.

Menu组件使用深色模式时点击更多菜单按钮弹出的气泡箭头颜色错误

Basic Info

预期结果

气泡箭头颜色应该跟深色模式颜色一致

复现步骤

  1. 查看深色模式导航示例
  2. 缩小视图让Menu组件出现更多按钮
  3. 鼠标移入更多按钮,弹出气泡,此时可见气泡箭头颜色错误(颜色为白色)

ICONXXX 希望支持 import * as 方式引入

Basic Info

What are the similar cases of this feature

例如antd 可以使用以下方式遍历所有可渲染的图标

import * as ALLICONS from '@ant-design/icons';

const allIcons = ALLICONS as Record<string, ReactNode>;

render:

{Object.keys(ALLICONS).map((icon: string) => {
        const Icon = allIcons[icon];
        if (
          [
            'default',
            'IconProvider',
            'AntdIcon',
            'setTwoToneColor',
            'createFromIconfontCN',
            'getTwoToneColor',
          ].indexOf(icon) === -1
        ) {
          return <Icon key={icon} />;
        }
        return null;
      })}

What problem does this feature solve?

有很多需要选图标的场景,当前通过import * 引入所有图标会导致loadComponent报错,只能在项目中一个个枚举所需图标然后自己组装数组,挺难用的,而且文件头上引入几十上百icon属实难看

pr-check ci problem of permissions github secret

Basic Info

预期结果

 - name: report coverage
        uses: mattallty/jest-github-action@v1
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          test-command: echo "done"

复现步骤

创建 pr 时由于创建 pr 的人权限不足导致 secret 出现问题
Error: Resource not accessible by integration

表单 自定义分页 pageSize切换

Basic Info

What is expected?

切换pageSize后,当前页不是第一页,且第一页不可点击

Steps to reproduce

官网的table部分的自定义分页

  1. 10条每页时点击第10页 2.切换pageSize为50条每页

DatePicker显示异常

基本信息

额外补充

实际展示为 Invalid Date

预期结果

DatePicker正确展示日期

复现步骤

DatePicker 增加 showTime、format="YYYY-MM-DD HH:mm:ss"这两个props,传入的value格式为 "YYYY-MM-DD"

Support press enter to confirm

Basic Info

现有案例

Enter to confirm is normal behaviour

预期解决问题

Add the ability to confirm or submit a Modal using keyboard.

Proposed methods:

  1. focus on ok button by default
    or
  2. add a boolean prop "enterToConfirm" as "escToExit" is already implemented

Cascader组件对于设置disableCheckbox=true的叶子选项还是可以选中

Basic Info

预期结果

disableCheckbox=true 的时候对选项选择也禁用。

复现步骤

1、 选择 beijing-beijing 之后,点击 dongcheng 前边的 checkbox 不能选中,但是点击文字可以选中。
2、 选择 beijing ,点击 beijing 的文字会发现被禁用的子项也一并选中了。

Menu component error with next/link: Cannot read properties of null (reading 'children')

基本信息

预期结果

页面切换并且不会出现错误
Page switches and no errors

复现步骤

nextjs 使用 arco Menu 组件,嵌套 next/link 进行页面切换会出现错误
nextjs uses the arco menu component, with the next/link component Switching page results in this error

Unhandled runtime errors
TypeError. cannot read null properties (read 'children').

Snipaste_2021-11-04_10-59-42.jpg

just wonder where is the `package-lock.json` file

https://docs.npmjs.com/cli/v7/configuring-npm/package-lock-json

This file is intended to be committed into source repositories, and serves various purposes:

Describe a single representation of a dependency tree such that teammates, deployments, and continuous integration are guaranteed to install exactly the same dependencies.

Provide a facility for users to "time-travel" to previous states of node_modules without having to commit the directory itself.

Facilitate greater visibility of tree changes through readable source control diffs.

Optimize the installation process by allowing npm to skip repeated metadata resolutions for previously-installed packages.

As of npm v7, lockfiles include enough information to gain a complete picture of the package tree, reducing the need to read package.json files, and allowing for significant performance improvements.

it is suggested to commit package-lock.json file so that all the contributors are guaranteed to install the exactly same dependencies.

Avatar Group shows all avatars when maxCount equals 0

Basic Info

What is expected?

set maxCount = 0, Avatar Group only shows an avatar with +x.

Steps to reproduce

If I want to let Avatar Group only shows an avatar with +x, I have to set maxCount = -x or '0', because when I set maxCount = 0, all avatars will show.

menu在pop模式,菜单收起状态下,传入包含 trrigerProps的tooltipProps属性时,覆盖了内置类名,导致只有一层的菜单项内的a标签样式错误

Basic Info

What is expected?

hover只有一层的菜单项时,文字颜色应该跟随组件内置样式

Steps to reproduce

hover只有一层的菜单项时,看到文字颜色为a标签本身样式,不美观

DOC: Icon's name element overflows

Basic Info

预期结果

the element should be inside its parent element
It should be:
截屏2021-10-31 下午6 15 30

while currently:
截屏2021-10-31 下午6 16 48

复现步骤

  1. open that URL,
  2. scroll to the Icon section
  3. mouse hover on the name element
  4. you will find out that

maybe useful code

.ac-content ul.iconlist .icon-cell .name {
    /*...*/
    text-align: center;
    box-sizing: border-box;
    padding: 12px;
    margin: 0;
}

inputTag

ArcoDesign有个小组件叫inputTag,element ui和antd都没有这个组件,这个组件在非常有用,也很常用。不过发现是ArcoD的inputTag在输入之后没有考虑重复输入情况,如果弥补这个缺点将非常good。

Table 组件点击展开、收起按钮,触发了 Form 组件的 onSubmit 回调

Basic Info

预期结果

Table 组件点击展开、收起按钮,不应该触发 Form 组件的 onSubmit 回调

复现步骤

Table 组件点击展开、收起按钮,会触发了 Form 组件的 onSubmit 回调

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.