项目作者: juanca

项目描述 :
React ARIA-compliant Components
高级语言: JavaScript
项目地址: git://github.com/juanca/react-aria-components.git
创建时间: 2018-05-25T21:52:47Z
项目社区:https://github.com/juanca/react-aria-components

开源协议:MIT License

下载


React ARIA Components

Disclaimer: this is in an alpha stage.

For a hands-on approach to this library, see the documentation site.

Browsers support

This library publishes uncompiled source code.
It is expected for host applications to set up compilation processes.
For example, there is a Webpack configuration used for the documentation site.

Getting started

  1. npm install
  2. npm start

Visit the webpage listed in the output.
The URL should have been copied to the clipboard.
Otherwise, please inspect the console output.

High-level design

The components available through this module are inspired from the WAI-ARIA Authoring Practices.
Each component is driven by three principles:

  1. A component is accessible.
  2. A component can be used in composition (favoring web components interfaces).
  3. A component has a minimal footprint.

Contributing

Code requirements will be evaluated through peer review.
CI will run tests and linter rules — see below for running the same scripts locally.
CI will also deploy branches to Github pages — see CI output for URL.

  1. npm test
  2. npm run lint

Docker

  1. Install node modules:

    1. docker-compose run npm install
  2. Start

    1. docker-compose up web
  1. Test / Lint

    1. docker-compose run npm test / run test:debug / run lint

    For example:

    1. docker-compose run npm test listbox