Skip to content

gregchamberlain/react-layout-plugin-dnd

Repository files navigation

React Layout Plugin DnD

A plugin for the react-layout-core package. This plugin enables any component to be used as a react-dnd DragSource, and wraps the layout with a DragDropContext. It supplies monitor.getItem() with the layoutState item being dragged.

Usage

import React from 'react';
import { Layout } from 'react-layout-core';
import DnD from 'react-layout-plugin-dnd';

...

<Layout
  layoutState={layoutState}
  components={{...}}
  plugins={[DnD]}
/>

...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published