Files
vscode-front-matter/src/dashboardWebView/components/DataView/SortableContainer.tsx
2024-01-31 18:09:58 +02:00

18 lines
453 B
TypeScript

import * as React from 'react';
import { SortableContainer } from 'react-sortable-hoc';
export interface ISortableContainerProps { }
export const Container = SortableContainer(
({ children }: React.PropsWithChildren<ISortableContainerProps>) => {
return (
<ul
className={`-mx-4 divide-y border-t border-b divide-[var(--frontmatter-border)] border-[var(--frontmatter-border)]`}
>
{children}
</ul>
);
}
);