Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

25 Commits

Repository files navigation

react-sortable-list

npm version

react-sortable-list is a sortable list component using react and html5 drag and drop api.

Installation

yarn add react-sortable-list

Use

importSortableListfrom'react-sortable-list'importReactDOMfrom'react-dom'importReact,{Component}from'react'classTestComponentextendsComponent{render(){letcolors=['Red','Green','Blue','Yellow','Black','White','Orange']return(<div><SortableListdata={colors}/></div>)}}ReactDOM.render(<TestComponent/>,document.getElementById('root'))

Styles

Uses styled-components 💅 for the base styling.

Development

yarn
yarn dev

Test

yarn test

Build

yarn
yarn build

Publish

npm login
npm version patch
git add -A
git push origin master
npm publish

License

MIT

About

A sortable list component

Resources

Stars

16 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages