{"id":15380949,"url":"https://github.com/educastellano/react-sortable-dnd","last_synced_at":"2026-05-17T17:38:21.947Z","repository":{"id":149711677,"uuid":"55784567","full_name":"educastellano/react-sortable-dnd","owner":"educastellano","description":"React component to sort any element with DnD","archived":false,"fork":false,"pushed_at":"2017-05-22T12:01:35.000Z","size":309,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T00:46:23.909Z","etag":null,"topics":["dnd","drag-and-drop","react","react-sortable","sortable"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/educastellano.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-08T14:21:36.000Z","updated_at":"2017-03-28T17:06:43.000Z","dependencies_parsed_at":"2023-06-29T13:31:22.608Z","dependency_job_id":null,"html_url":"https://github.com/educastellano/react-sortable-dnd","commit_stats":{"total_commits":19,"total_committers":1,"mean_commits":19.0,"dds":0.0,"last_synced_commit":"fe339b9002264685d4356e032ded2df2296b5ff9"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educastellano%2Freact-sortable-dnd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educastellano%2Freact-sortable-dnd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educastellano%2Freact-sortable-dnd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/educastellano%2Freact-sortable-dnd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/educastellano","download_url":"https://codeload.github.com/educastellano/react-sortable-dnd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245934989,"owners_count":20696556,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dnd","drag-and-drop","react","react-sortable","sortable"],"created_at":"2024-10-01T14:25:07.243Z","updated_at":"2026-05-17T17:38:16.908Z","avatar_url":"https://github.com/educastellano.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-sortable-dnd\n\nA React component to sort elements of any type. It also supports dropping external elements in any position.\n\n\u003e [Demo](http://educastellano.github.io/react-sortable-dnd)\n\n## Install\n\n```\nnpm i react-sortable-dnd --save \n```\n\n## Usage\n\n```html\n\u003cSortable onSort={components =\u003e console.log(components)}\u003e\n    \u003cdiv\u003eApple\u003c/div\u003e\n    \u003cdiv\u003eMango\u003c/div\u003e\n    \u003cdiv\u003ePineapple\u003c/div\u003e\n\u003c/Sortable\u003e\n```\n\n## Props\n\nProp                | Type/Options              | Default             | Description\n---                 | ---                       | ---                 | ---\n`className`         | *string*                  | `Sortable`          | **`Optional`** The class name of the component\n`classPlaceholder`  | *string*                  | `Placeholder`       | **`Optional`** The class name of the placeholder component when dragging external elements.\n`enabled`           | *boolean*                 | `true`              | **`Optional`** Enable/disable the sorting \n`type`              | *string*                  | ``                  | **`Optional`** Type of the elements to sort, in case you want to restrict elements of other Sortable lists.\n\n## Event Props\n\nProp                | Parameters                | Description\n---                 | ---                       | ---\n`onSort`            | *(components)*            | The sorting callback function.\n`onSortStart`       | *(components)*            | Triggered when an element starts being dragged.\n`onDrop`            | *(e, data, index)*        | **`Optional`** Called when an external element is dropped.\n\n\n## Changelog\n\n* 1.0.0 \n    * Initial release :tada:\n\n## License\n\n[ISC License](http://opensource.org/licenses/ISC)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feducastellano%2Freact-sortable-dnd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feducastellano%2Freact-sortable-dnd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feducastellano%2Freact-sortable-dnd/lists"}