# ink-divider

> Divider component for Ink

Latest version **4.1.1** (published 2025-03-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install ink-divider
pnpm add ink-divider
yarn add ink-divider
bun add ink-divider
```

## Health

**Score 45/100 (D)** — status: maintenance-mode.

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

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.1 |
| Published | 2025-03-25 |
| First published | 2018-07-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 13 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 44 |
| Author | Jure Sotosek |
| Maintainers | juresotosek |
| Keywords | ink, ink-component, ink-divider, ink-cli |

## Links

- npm: https://www.npmjs.com/package/ink-divider
- Repository: https://github.com/JureSotosek/ink-divider
- Homepage: https://github.com/JureSotosek/ink-divider#readme
- Issues: https://github.com/JureSotosek/ink-divider/issues
- npm.io page: https://npm.io/package/ink-divider

## Dependencies (1)

- [ink](https://npm.io/package/ink.md) ^5.1.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 4.1.1 (latest) — 2025-03-25
- 4.1.0 — 2025-01-14
- 4.0.3 — 2024-12-21
- 4.0.2 — 2024-12-13
- 4.0.1 — 2024-12-10
- 4.0.0 — 2024-12-10
- 2.4.0 — 2024-12-10
- 2.3.2 — 2024-12-10
- 2.3.1 — 2024-12-10
- 2.3.0 — 2024-12-10
- 2.2.0 — 2024-12-09
- 3.0.0 — 2020-09-01
- 2.0.3 — 2020-09-01
- 2.1.1 — 2020-09-01
- 2.1.0 — 2020-09-01
- … 9 more at https://npm.io/package/ink-divider/versions

## README

<!-- # ${\color{gray}\tiny\textrm{──────}}$  ink-divider  ${\color{gray}\tiny\textrm{──────}}$ -->
# ink-divider

[![NPM Downloads](https://img.shields.io/npm/dw/ink-divider?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjRweCIgdmlld0JveD0iMCAtOTYwIDk2MCA5NjAiIHdpZHRoPSIyNHB4IiBmaWxsPSIjMDAwMDAwIj48cGF0aCBkPSJNNDgwLTMyMCAyODAtNTIwbDU2LTU4IDEwNCAxMDR2LTMyNmg4MHYzMjZsMTA0LTEwNCA1NiA1OC0yMDAgMjAwWk0xNjAtMTYwdi0yMDBoODB2MTIwaDQ4MHYtMTIwaDgwdjIwMEgxNjBaIi8%2BPC9zdmc%2B&labelColor=FAFAFA&color=212121)](https://www.npmjs.com/package/ink-divider) [![NPM Version](https://img.shields.io/npm/v/ink-divider?logo=npm&logoColor=212121&label=version&labelColor=FAFAFA&color=212121)](https://www.npmjs.com/package/ink-divider)


👩🏼‍🎨 Divider component for [Ink](https://github.com/vadimdemedes/ink).

## 📥 Install

```bash
npm i ink-divider
```

## 🚀 Usage

Here is the basic usage:

```jsx
import { render } from 'ink'
import Divider from 'ink-divider'

render(<Divider title='Title' />)

// ─────────── Title ───────────
```

The `<Divider>` component can also automatically adjust to the width of the container!
We advise you to view this example - [`examples/auto-grow.tsx`](https://github.com/JureSotosek/ink-divider/blob/master/examples/auto-grow.tsx), more examples in the [`examples`](https://github.com/JureSotosek/ink-divider/tree/master/examples) folder

<!-- markdownlint-disable-next-line-->
<img src="media/example.png" alt="example" width="550">

## 🤝 Contributing

Thank you for your interest in helping this project 😎, detailed instructions on contributing are at [CONTRIBUTING.md](CONTRIBUTING.md)

## 📝 License

MIT © [Jure Sotosek](https://github.com/JureSotosek)

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