# @spark-web/a11y

> --- title: Accessibility storybookPath: accessibility-visuallyhidden--default isExperimentalPackage: false ---

Latest version **5.3.1** (published 2026-06-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @spark-web/a11y
pnpm add @spark-web/a11y
yarn add @spark-web/a11y
bun add @spark-web/a11y
```

## Health

**Score 55/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.3.1 |
| Published | 2026-06-15 |
| First published | 2022-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.17 |
| Dependencies | 5 |
| Unpacked size | 50.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | brighte, brighte-release-bot |

## Links

- npm: https://www.npmjs.com/package/@spark-web/a11y
- Repository: https://github.com/brighte-labs/spark-web
- Homepage: https://github.com/brighte-labs/spark-web#readme
- Issues: https://github.com/brighte-labs/spark-web/issues
- npm.io page: https://npm.io/package/@spark-web/a11y

## Dependencies (5)

- [polished](https://npm.io/package/polished.md) ^4.2.2
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.25.0
- [@emotion/react](https://npm.io/package/@emotion/react.md) ^11.14.0
- [@spark-web/theme](https://npm.io/package/@spark-web/theme.md) ^5.13.0
- [@spark-web/utils](https://npm.io/package/@spark-web/utils.md) ^5.1.0

## Recent versions

- 5.3.1 (latest) — 2026-06-15
- 5.3.0-rc.0 (rc) — 2025-07-24
- 5.3.0 — 2026-01-15
- 5.2.0 — 2025-06-26
- 5.1.0 — 2025-03-18
- 5.0.0 — 2025-02-10
- 5.0.0-rc.31 — 2025-02-10
- 5.0.0-rc.29 — 2025-02-06
- 5.0.0-rc.28 — 2025-02-06
- 5.0.0-rc.27 — 2025-02-05
- 5.0.0-rc.26 — 2025-02-05
- 5.0.0-rc.25 — 2025-01-31
- 5.0.0-rc.24 — 2025-01-20
- 2.0.0-rc.21 — 2025-01-07
- 2.0.0-rc.20 — 2025-01-07
- … 32 more at https://npm.io/package/@spark-web/a11y/versions

## README

---
title: Accessibility
storybookPath: accessibility-visuallyhidden--default
isExperimentalPackage: false
---

The components in this library have been implemented with accessibility built
in. This package aims to provide helpers for other occasions.

## Emoji

Emojis can add playfulness to your interface, but require formatting to ensure
that they are accessible for all users.

The `Emoji` component wraps the provided symbol, defining it as an image. The
provided label will be announced by a screen reader. If no label is provided,
the emoji is assumed to be a decorative element with no semantic meaning and is
hidden from assistive technology.

```jsx live
<Inline gap="large">
  <Emoji symbol="🎉" label="Hooray!" />
  <Emoji symbol="🎉" />
</Inline>
```

## VisuallyHidden

Content which should be visually hidden, but remain accessible to assistive
technologies such as screen readers, can be implemented using the
`VisuallyHidden` component.

This can be useful in situations where additional visual information or cues
(such as meaning denoted through the use of icons or colour) need to also be
conveyed to non-visual users.

```jsx live
<Inline gap="xsmall" alignY="center">
  <ExclamationCircleIcon tone="critical" size="xsmall" />
  <Text weight="semibold" tone="critical" baseline={false}>
    <VisuallyHidden>Danger: </VisuallyHidden>
    This action is not reversible
  </Text>
</Inline>
```

### Props

### Emoji Props

<PropsTable displayName="Emoji" />

### VisuallyHidden Props

<PropsTable displayName="VisuallyHidden" />

Additional props are passed to the `span` element and are not listed.

[data-attribute-map]:
  https://github.com/brighte-labs/spark-web/blob/e7f6f4285b4cfd876312cc89fbdd094039aa239a/packages/utils/src/internal/buildDataAttributes.ts#L1

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