Dynamic Content Layout with Resizable Panels
At Netflix, providing a flexible and customizable user experience is paramount, even for our internal tools. Imagine an analytics dashboard or a content configuration editor where engineers need to view and manipulate data across multiple panes. This problem focuses on building a core UI primitive: a container with two vertical panels separated by a draggable divider, allowing users to dynamically adjust the layout. This component is fundamental for creating adaptable and user-friendly interfaces.
Your task is to implement a ResizablePanelGroup React component that satisfies the following requirements:
ResizablePanelGroup container.ResizablePanelGroup's total width, and the right panel should occupy 40%.ew-resize.ResizablePanelGroup itself will have a fixed total width and height, provided by the surrounding application.ResizablePanelGroup component renders two distinct panels and a visible, interactive divider.100px each; they cannot be shrunk below this size.ew-resize when hovering over the divider.Constraints
react-resizable-panels, react-split-pane). The core resizing logic must be implemented from scratch.ResizablePanelGroup container will have a fixed width (e.g., 800px) and height (e.g., 400px).ResizablePanelGroup components.Loading editor...