@react-next-calendar/dnd
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Drag and Drop plugin for React Next Calendar

Docs

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}
    />
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i @react-next-calendar/dnd

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

121 kB

Total Files

40

Last publish

Collaborators

  • newsiberian