A simple and beautiful React js application for creating a visual playground with drag-and-drop functionality using jQuery and styled using Tailwind CSS.
Video Demonstration: https://www.webmobilefirst.com/en/screencasts/e9z0kr0eiblzak/
This app allows users to drag Text, Image, and Shape elements from the sidebar into the playground, reposition them, and edit their properties.
Clone the repository:
git clone https://github.com/ak-k13579/drag-drop-playground.git
cd drag-drop-playground
Install dependencies:
npm install
Run the app:
npm start
Open in browser:
Project Structure:
src/ āāā assets/ # Static files (icons, images)
āāā components/dragdropplayground
ā āāā Sidebar.jsx # Draggable element buttons (Text, Image, Shape)
ā āāā Playground.jsx # Main droppable canvas
ā āāā PropertiesPanel.jsx # Right panel to edit selected element
āāā App.jsx
āāā main.jsx
(1). š§± Sidebar Contains 3 draggable icons:
š
°ļø Text
š¼ Image
⬠Shape (square)
(2). š§² Playground Drop elements from sidebar into playground.
Use jQuery's draggable and droppable to move/position.
Click an element to show its editable properties.
(3). āļø Properties Panel Dynamically updates based on the selected element type.
Text: Font family, size, bold, italic, underline.
Image: Change image source.
Shape: Fill color, width, height.
All elements: Width, height.
š§āš» Author Attaullah Khan Sr. Front End Developer
Video Demonstration: https://www.webmobilefirst.com/en/screencasts/e9z0kr0eiblzak/
Portfolio: https://www.attaullahkhanweb.com
GitHub: https://github.com/ak-k13579