Component libraryResizable panels
Resizable panels
ProA controlled two-panel layout with a labelled separator, direction-aware keyboard resizing, native pointer drag and an automatic stacked phone layout.
npx shadcn@latest add @tidal-pro/resizable-panelsInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/resizable-panels.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
primaryPanel and secondaryPanel are required consumer-owned panel definitions with content plus optional accessible label or labelledBy, native panel attributes and refs. value is the controlled primary-panel percentage; onValueChange receives the clamped stepped value, native event and keyboard or pointer source. separatorLabel gives the separator its required accessible name. Optional minValue, maxValue and step define the normalized range; reversed finite bounds are normalized and invalid values use safe defaults. formatValue localizes the announced split. disabled or an equal bound range removes the separator tab stop and suppresses value requests. Native separator handlers run first and prevention suppresses owned key or pointer-start behavior. The separator supports Home/End and direction-aware Left/Right keys in the wide inline split, then reports horizontal orientation and uses Up/Down keys in the automatic stacked layout. Pointer drag uses capture on the separator without document listeners. Root and separator native attributes and root, separator and panel refs pass through. The component performs no data mutation, request, route, network, storage or persistence action.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.