# accessible-system

> A React-Native accessibility helper for styled-components

Latest version **0.2.4** (published 2020-10-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install accessible-system
pnpm add accessible-system
yarn add accessible-system
bun add accessible-system
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.4 |
| Published | 2020-10-09 |
| First published | 2020-09-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | francisleigh |
| Maintainers | francisleigh |
| Keywords | accessibility, a11y, accessible, accessible-system, francisleigh, package, react-native, react, react js, styled-components, styled-system |

## Links

- npm: https://www.npmjs.com/package/accessible-system
- Repository: https://github.com/FrancisLeigh/accessible-system
- Homepage: https://github.com/FrancisLeigh/accessible-system#readme
- Issues: https://github.com/FrancisLeigh/accessible-system/issues
- npm.io page: https://npm.io/package/accessible-system

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.4 (latest) — 2020-10-09
- 0.2.3 — 2020-10-09
- 0.2.2 — 2020-10-09
- 0.1.0 — 2020-09-23
- 0.0.0 — 2020-09-23

## README

# francisleigh/accessible-system
A React-Native accessibility helper for styled-components
## Usage
```javascript
import A11y from "accessible-system";

const Box = styled.View.attrs(A11y)`
  height: 100px;
  width: 100px;
`

const BoxMultiAttrs = styled.View.attrs((props) => ({
  ...A11y(props),
  ...OtherAttrLib(props),
  style: { borderBottom: 2 }
}))`
  height: 100px;
  width: 100px;
`
```

```javascript
import Box from "@components/Box";

<Box
  a11y={boolean}
  a11yLabel={string}
  a11yHint={string}
  a11yRole={string}
  a11yStates={string[]}
  a11yHideChildren={boolean}
  a11yLiveRegion={boolean}
  a11yAssertive={boolean}
  a11yNoInvert={boolean}
  a11yValue={object}
  a11yIsModal={boolean}
  a11yOnEscape={Function}
  a11yOnTap={Function}
  a11yOnMagicTap={Function}
  a11yActions={A11yAction[]}
  a11yOnAction={Function}
  disabled={boolean}
  busy={boolean}
/>
```

## Roadmap
- Implement a similiar API for web-based accessibility

---
_Source: https://npm.io/package/accessible-system · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
