# @atlaskit/code

> Code highlights short strings of code snippets inline with body text.

Latest version **19.2.4** (published 2026-09-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @atlaskit/code
pnpm add @atlaskit/code
yarn add @atlaskit/code
bun add @atlaskit/code
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 19.2.4 |
| Published | 2026-09-17 |
| First published | 2017-05-01 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 11 |
| Unpacked size | 343.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Atlassian Pty Ltd |
| Maintainers | atlassianartifactteam |
| Keywords | atlaskit, react, ui |

## Links

- npm: https://www.npmjs.com/package/@atlaskit/code
- Repository: https://bitbucket.org/atlassian/atlassian-frontend-mirror
- Homepage: https://atlassian.design/components/code/
- Issues: https://bitbucket.org/atlassian/atlassian-frontend-mirror/issues
- npm.io page: https://npm.io/package/@atlaskit/code

## Dependencies (11)

- [raf-schd](https://npm.io/package/raf-schd.md) ^4.0.3
- [refractor](https://npm.io/package/refractor.md) ^3.6.0
- [memoize-one](https://npm.io/package/memoize-one.md) ^6.0.0
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0
- [@compiled/react](https://npm.io/package/@compiled/react.md) ^1.0.2
- [@atlaskit/tokens](https://npm.io/package/@atlaskit/tokens.md) ^18.0.0
- [@atlaskit/tooltip](https://npm.io/package/@atlaskit/tooltip.md) ^24.3.0
- [bind-event-listener](https://npm.io/package/bind-event-listener.md) ^3.0.0
- [@atlaskit/visually-hidden](https://npm.io/package/@atlaskit/visually-hidden.md) ^4.4.0
- [@atlaskit/react-compiler-gating](https://npm.io/package/@atlaskit/react-compiler-gating.md) ^0.2.0
- [@atlaskit/platform-feature-flags](https://npm.io/package/@atlaskit/platform-feature-flags.md) ^2.2.0

## 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

- 19.2.4 (latest) — 2026-09-17
- 14.6.2 (next) — 2023-05-17
- 14.0.0 (design-system-lite-mode) — 2021-05-10
- 19.2.3 — 2026-09-15
- 19.2.2 — 2026-09-03
- 19.2.1 — 2026-09-02
- 19.2.0 — 2026-08-29
- 19.1.0 — 2026-08-20
- 19.0.0 — 2026-08-10
- 18.2.2 — 2026-07-29
- 18.2.1 — 2026-07-17
- 18.2.0 — 2026-06-26
- 18.1.0 — 2026-06-26
- 18.0.1 — 2026-06-23
- 18.0.0 — 2026-06-16
- … 200 more at https://npm.io/package/@atlaskit/code/versions

## README

# Code

Code renders inline code snippets and code blocks.

## Installation

```sh
yarn add @atlaskit/code
```

## Usage

Detailed docs and example usage can be found [here](https://atlassian.design/components/code/).

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