
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
drag-drop-custom
Advanced tools
A powerful drag-and-drop custom dashboard builder for React applications with complete widget library and state management
A powerful, feature-rich drag-and-drop dashboard builder for React applications. This library provides a complete solution for creating interactive dashboards with customizable widgets, real-time data visualization, and intuitive drag-and-drop functionality.
npm install drag-drop-custom
# or
yarn add drag-drop-custom
# or
pnpm add drag-drop-custom
import React from 'react';
import { DashboardBuilder } from 'drag-drop-custom';
function App() {
return (
<div className="h-screen">
<DashboardBuilder />
</div>
);
}
export default App;
The library includes all necessary CSS. You just need to import the styles:
import 'drag-drop-custom/styles.css';
Or if you're using Tailwind CSS, add to your tailwind.config.js:
module.exports = {
content: [
"./src/**/*.{js,ts,jsx,tsx}",
"./node_modules/drag-drop-custom/**/*.{js,ts,jsx,tsx}"
],
// ... rest of your config
}
The main dashboard builder component that provides the complete interface with all providers included.
import { DashboardBuilder } from 'drag-drop-custom';
<DashboardBuilder />
The core component without providers (if you want to add your own providers).
import { CoreDashboardBuilder } from 'drag-drop-custom';
<CoreDashboardBuilder />
The library includes a complete set of UI components based on shadcn/ui:
import {
Button,
Card,
Dialog,
Input,
Table,
Tabs,
Toast,
Tooltip
} from 'drag-drop-custom';
// Use any UI component
<Button variant="default" size="lg">
Click me
</Button>
<Card>
<CardHeader>
<CardTitle>Dashboard</CardTitle>
</CardHeader>
<CardContent>
Your content here
</CardContent>
</Card>
import { useDashboardStore } from 'drag-drop-custom';
function MyComponent() {
const { widgets, addWidget, removeWidget, updateWidget } = useDashboardStore();
return (
<div>
{widgets.map(widget => (
<div key={widget.id}>{widget.type}</div>
))}
</div>
);
}
import { useGraphStore } from 'drag-drop-custom';
function GraphComponent() {
const { nodes, edges, addNode, addEdge } = useGraphStore();
return (
<div>
{/* Your graph visualization */}
</div>
);
}
import React from 'react';
import { DashboardBuilder } from 'drag-drop-custom';
import 'drag-drop-custom/styles.css';
export default function BasicDashboard() {
return (
<div className="h-screen w-full">
<DashboardBuilder />
</div>
);
}
import React, { useState } from 'react';
import { DashboardCanvas, WidgetSidebar } from 'drag-drop-custom';
import 'drag-drop-custom/styles.css';
export default function CustomDashboard() {
const [widgets, setWidgets] = useState([
{
id: '1',
type: 'metrics',
position: { x: 0, y: 0, w: 3, h: 2 },
data: { title: 'Total Users', value: 1234 }
}
]);
return (
<div className="flex h-screen">
<WidgetSidebar onWidgetAdd={(widget) => setWidgets([...widgets, widget])} />
<DashboardCanvas
widgets={widgets}
onWidgetChange={setWidgets}
/>
</div>
);
}
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you encounter any issues or have questions, please:
FAQs
A powerful drag-and-drop custom dashboard builder for React applications with complete widget library and state management
We found that drag-drop-custom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.