# use-is-tabbing

> Hide browser tab outline until it's needed.

Latest version **0.1.1** (published 2019-12-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install use-is-tabbing
pnpm add use-is-tabbing
yarn add use-is-tabbing
bun add use-is-tabbing
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2019-12-29 |
| First published | 2019-12-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Brett Smith |
| Maintainers | jbsmith731 |
| Keywords | react, hooks, react hooks, react, accessibility, a11y |

## Links

- npm: https://www.npmjs.com/package/use-is-tabbing
- Repository: https://github.com/jbsmith731/useIsTabbing
- Homepage: https://github.com/jbsmith731/useIsTabbing#readme
- Issues: https://github.com/jbsmith731/useIsTabbing/issues
- npm.io page: https://npm.io/package/use-is-tabbing

## 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.1.1 (latest) — 2019-12-29
- 0.1.0 — 2019-12-29

## README

# useIsTabbing
Hide browser tab outline until it's needed.

## Example using Styled Components

```jsx
import React from 'react';
import { createGlobalStyle } from 'styled-components';
import { useIsTabbing } from 'use-is-tabbing';

const TabStyles = createGlobalStyle`
  a,
  button {
    &:focus {
      outline: 2px dashed var(--outline-color);
      outline-offset: 2px;
    }
  }
`;

const ActivateTabOutline = () => {
  const showTabOutline = useIsTabbing();

  return showTabOutline ? <TabStyles /> : null;
};

export default ActivateTabOutline;

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