@react-next-calendar/dnd
v1.0.2
Published
[Docs](https://newsiberian.github.io/react-next-calendar/?path=/docs/dnd-basic-usage--basic-usage)
Downloads
11
Readme
Drag and Drop plugin for React Next Calendar
import { Calendar } from '@react-next-calendar/core'
import useDragAndDrop from '@react-next-calendar/dnd'
import '@react-next-calendar/core/styles.css'
import '@react-next-calendar/dnd/styles.css'
function MyCalendar(props) {
const [
context,
components,
selectable,
elementProps,
] = useDragAndDrop(props);
/* ... */
return (
<Calendar
{...props}
context={context}
components={components}
selectable={selectable}
elementProps={elementProps}
/>
)
}