diff --git a/src/components/ui/resizable.tsx b/src/components/ui/resizable.tsx new file mode 100644 index 0000000..02e9460 --- /dev/null +++ b/src/components/ui/resizable.tsx @@ -0,0 +1,37 @@ +import { GripVertical } from "lucide-react"; +import { Group, Panel, Separator } from "react-resizable-panels"; + +import { cn } from "@/lib/utils"; + +const ResizablePanelGroup = ({ className, ...props }: React.ComponentProps) => ( + +); + +const ResizablePanel = Panel; + +const ResizableHandle = ({ + withHandle, + className, + ...props +}: React.ComponentProps & { + withHandle?: boolean; +}) => ( + div]:rotate-90", + className, + )} + {...props} + > + {withHandle && ( +
+ +
+ )} +
+); + +export { ResizablePanelGroup, ResizablePanel, ResizableHandle };