An open API service indexing awesome lists of open source software.

https://github.com/goodguyry/ariacomponents

Quickly create accessible interactive components based on the W3C spec and examples
https://github.com/goodguyry/ariacomponents

a11y aria

Last synced: about 1 month ago
JSON representation

Quickly create accessible interactive components based on the W3C spec and examples

Awesome Lists containing this project

README

          

[![npm version][npmjs-img]][npmjs] [![Build Status][ci-img]][ci]

AriaComponents
==============

Quickly create accessible interactive components based on the W3C spec and examples

## Installation

```shell
npm i aria-components
```

## Usage

🌸 See the [release/v0.3](https://github.com/goodguyry/AriaComponents/tree/release/v0.3) branch for docs related to the current version.

Each component accepts an element and an `options` object.

```jsx
import Tablist, { AutomaticActivation } from 'aria-components/tablist';

new Tablist(element, { modules: [AutomaticActivation] })
```

The base class, [AriaComponent](src/), provides properties and methods available
to all components.

Each component's supplemental documentation can be found in its directory:

- [Dialog](src/Dialog/)
- [Disclosure](src/Disclosure/)
- [Listbox](src/Listbox/)
- [Menu](src/Menu/)
- [Popup](src/Popup/)
- [Tablist](src/Tablist/)

## Modules

Each component exports modules to add optional features and functionality that,
depending on the context, may simplify and/or improve UX.

General module documentation is at [`src/shared/modules/`](src/shared/modules/).
Some components have additional documentation within their local modules directory.

## References

- https://www.w3.org/WAI/ARIA/apg/patterns/
- https://www.w3.org/WAI/ARIA/apg/example-index/
- https://www.w3.org/TR/wai-aria/

## Contributing

Use `npm run dev` to run tests and watch files for changes.

Check `npm run` for more.

[npmjs-img]: https://badge.fury.io/js/aria-components.svg
[npmjs]: https://badge.fury.io/js/aria-components
[ci-img]: https://github.com/goodguyry/AriaComponents/actions/workflows/action-test.yml/badge.svg?branch=master
[ci]: https://github.com/goodguyry/AriaComponents/actions/