Try online demo (https://react-layout-manager.web.app/)
export const LAYOUT: ILayout = {
rows: [
{
cells: [
{ viewName: "json" },
{ viewName: "code-editor" },
{ viewName: "console" },
],
},
],
};
const layout = useLayout({
defaultLayout: LAYOUT,
});
<LayoutContext layout={layout}>
<Layout
renderView={({ draggableProps }): JSX.Element => (
<div className="card-header-icon" {...draggableProps}>
<Icon name={ICONS.DRAG_HANDLE} color={"white"} size={16} />
</div>
)}
/>
</LayoutContext>