# solid-sortablejs

> A sortable library for solid

Latest version **2.1.8** (published 2025-06-28) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.8 |
| Published | 2025-06-28 |
| First published | 2022-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 20.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Supertigerr |
| Maintainers | supertiger |
| Keywords | solid |

## Links

- npm: https://www.npmjs.com/package/solid-sortablejs
- Repository: https://github.com/Supertigerr/solid-sortablejs
- Homepage: https://github.com/Supertigerr/solid-sortablejs#readme
- Issues: https://github.com/Supertigerr/solid-sortablejs/issues
- npm.io page: https://npm.io/package/solid-sortablejs

## Dependencies (1)

- [sortablejs](https://npm.io/package/sortablejs.md) ^1.15.6

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

- 2.1.8 (latest) — 2025-06-28
- 2.1.7 — 2025-06-28
- 2.1.6 — 2025-06-28
- 2.1.5 — 2025-06-03
- 2.1.4 — 2025-06-02
- 2.1.3 — 2025-05-31
- 2.1.2 — 2023-12-23
- 2.1.1 — 2023-12-05
- 2.1.0 — 2023-09-19
- 2.0.9 — 2023-04-29
- 2.0.8 — 2023-04-29
- 2.0.7 — 2023-04-28
- 2.0.6 — 2023-04-28
- 2.0.5 — 2023-04-28
- 2.0.4 — 2023-04-28
- … 6 more at https://npm.io/package/solid-sortablejs/versions

## README

<p>
  <img width="100%" src="https://assets.solidjs.com/banner?type=solid-sortablejs&background=tiles&project=%20" alt="solid-sortablejs">
</p>

# Solid SortableJS

Easily sort your list. solid-sortablejs is using the SortableJS library to sort your list.  
This library is in WIP


## Quick start

Install it:

```bash
npm install solid-sortablejs
```

Use it:

```tsx
import Sortable from "solid-sortablejs";
import {createStore} from "solid-js/store";
import { JSX } from "solid-js";

const App = () => {
  const itemStyles: JSX.CSSProperties = {"user-select": "none", background: "green", padding: "10px", "min-width": "100px", margin: "5px", "border-radius": "4px", color: "white"};
  const containerStyles = {display: "inline-block", background: "gray", padding: "10px", "border-radius": "4px"};

  const [items, setItems] = createStore([
    { id: 0, name: 0 },
    { id: 1, name: 1 },
    { id: 2, name: 2 },
    { id: 3, name: 3 },
  ])

  return (
    <div style={containerStyles}>
      <Sortable idField="id" items={items} setItems={setItems} >
        {item => <div style={itemStyles}>{item.name} {Math.random()}</div>}
      </Sortable>
    </div>
  );
};
```

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