Files
Web-Frontend/client/src/components/layout/Canvas/Widget.jsx
T

17 lines
367 B
React
Raw Normal View History

export default function Widget({ title }) {
return (
<>
<div
className="widget-handle"
style={{ padding: '4px', cursor: 'move', background: '#ddd' }}
>
{title}
</div>
<div style={{ padding: '8px' }}>
This is the widget content - drag or resize me!
</div>
</>
);
}