New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@thaddeusjiang/react-sortable-list

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thaddeusjiang/react-sortable-list

## Features

0.0.1
Source
npm
Version published
Weekly downloads
230
-40.41%
Maintainers
1
Weekly downloads
 
Created
Source

React Sortable List

Features

  • Easy Drag & Drop sort items

Install

npm install @thaddeusjiang/react-sortable-list

Usage

const [items, setItems] = useState<SortableItemProps[]>([
    { id: '1', name: 'Item 1' },
    { id: '2', name: 'Item 2' },
  ]);

<SortableList items={items} setItems={setItems}>
  {({ item }: SortableListRenderProps) => (
    <YourComponent />
  )}
</SortableList>

Development

Storybook

Run inside another terminal:

yarn storybook

Example

Then run the example inside another:

yarn link "@thaddeusjiang/react-sortable-list"

cd example
npm i # or yarn to install dependencies
npm start # or yarn start

FAQs

Package last updated on 12 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts