# nxt-sortablejs

> Angular sortablejs bindings.

Latest version **22.0.0** (published 2026-07-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install nxt-sortablejs
pnpm add nxt-sortablejs
yarn add nxt-sortablejs
bun add nxt-sortablejs
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 22.0.0 |
| Published | 2026-07-13 |
| First published | 2022-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 35.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 26 |
| Maintainers | hitko |
| Keywords | nxt-sortablejs, ng-sortablejs, angular-sortablejs, sortablejs, angular, sortable, draggable |

## Links

- npm: https://www.npmjs.com/package/nxt-sortablejs
- Repository: https://github.com/Liquid-JS/nxt-components
- Homepage: https://github.com/Liquid-JS/nxt-components/tree/master/packages/sortablejs
- Issues: https://github.com/Liquid-JS/nxt-components/issues
- npm.io page: https://npm.io/package/nxt-sortablejs

## Dependencies (1)

- [tslib](https://npm.io/package/tslib.md) ^2.3.0

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 22.0.0 (latest) — 2026-07-13
- 22.0.0-alpha.0 (prerelease) — 2026-07-10
- 21.0.0 — 2026-01-16
- 21.0.0-alpha.0 — 2026-01-10
- 20.0.0 — 2025-06-30
- 19.0.4 — 2025-01-10
- 19.0.2 — 2024-12-17
- 19.0.1 — 2024-12-09
- 19.0.0 — 2024-12-02
- 18.0.0 — 2024-06-03
- 17.0.1 — 2023-12-13
- 17.0.0 — 2023-11-09
- 16.2.0 — 2023-08-24
- 16.1.0 — 2023-06-19
- 16.0.0 — 2023-05-04
- … 7 more at https://npm.io/package/nxt-sortablejs/versions

## README

# Angular Sortablejs directive

[![GitHub license](https://img.shields.io/github/license/Liquid-JS/nxt-components.svg)](https://github.com/Liquid-JS/nxt-components/blob/master/LICENSE)
[![npm](https://img.shields.io/npm/dm/nxt-sortablejs.svg)](https://www.npmjs.com/package/nxt-sortablejs)
[![scope](https://img.shields.io/npm/v/nxt-sortablejs.svg)](https://www.npmjs.com/package/nxt-sortablejs)

This package provides Angular binding for [Storablejs](https://github.com/SortableJS/Sortable) which works with standard arrays as well as Angular `FormArray` objects.

## Quick links

-   [Demo](https://liquid-js.github.io/nxt-components/demo/sortablejs)
-   [Getting started](https://liquid-js.github.io/nxt-components/demo/sortablejs/getting-started)
-   [API docs](https://liquid-js.github.io/nxt-components/nxt-sortablejs)

### Installing

```sh
npm install --save nxt-sortablejs sortablejs
```

### Import Sortablejs directive

```ts
import { SortablejsDirective } from 'nxt-sortablejs'

@Component({
    ...
    imports: [
        ...
        SortablejsDirective
    ]
})
```

If you want to cofigure global Sortablejs options, include `provideGlobalSortableOptions` in your application.

```ts
import { ApplicationConfig } from '@angular/core'
import { provideGlobalSortableOptions } from 'nxt-sortablejs'

export const appConfig: ApplicationConfig = {
    providers: [
        provideGlobalSortableOptions({
            animation: 150
        })
    ]
}
```

### Use it in a template

```html
<ul [nxtSortablejs]="items">
    <li *ngFor="let item of items">{{ item }}</li>
</ul>
```

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