dioxus-dnd-kit 0.1.0

A flexible, performant, and layout-stable Drag-and-Drop library for Dioxus.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mod context;
mod draggable;
mod droppable;
mod hooks;

pub trait DndItem: PartialEq + Clone + 'static {}

impl<T: PartialEq + Clone + 'static> DndItem for T {}

pub mod prelude {
    pub use crate::DndItem;
    pub use crate::context::DndContext;
    pub use crate::context::DraggableView;
    pub use crate::draggable::{Draggable, DraggableHandler, DraggableOverlay};
    pub use crate::droppable::Droppable;
    pub use crate::hooks::{use_body_on_mouse_up, use_dnd_context, use_droppable_context};
}