TidalUI

Resizable panels preview

A controlled two-panel layout with a labelled separator, direction-aware keyboard resizing, native pointer drag and an automatic stacked…

pro · Essentials · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/resizable-panels

Import components/ui/tidal.css, components/ui/resizable-panels.css. Wrap installed components in tidal-scope.

Preview

Resizable panels component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/resizable-panels.css";
import{TidalResizablePanels}from"./components/ui/resizable-panels";
export default()=><div className="tidal-scope"><TidalResizablePanels onValueChange={() => {}} primaryPanel={{content:"value"}} secondaryPanel={{content:"value"}} separatorLabel={"Demo"} value={1}/></div>;

API and props

TidalResizablePanels.onValueChange (required)
(value: number, event: TidalResizableChangeEvent, source: TidalResizableChangeSource) => void

Callback invoked when the value change interaction is proposed.

TidalResizablePanels.primaryPanel (required)
TidalResizablePanel

Required primary panel value accepted by this exported component.

TidalResizablePanels.secondaryPanel (required)
TidalResizablePanel

Required secondary panel value accepted by this exported component.

TidalResizablePanels.separatorLabel (required)
string

Required separator label value accepted by this exported component.

TidalResizablePanels.value (required)
number

Required value value accepted by this exported component.

TidalResizablePanels.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalResizablePanels.formatValue
((value: number) => string) | undefined

Optional format value value accepted by this exported component.

TidalResizablePanels.maxValue
number | undefined

Optional max value value accepted by this exported component.

TidalResizablePanels.minValue
number | undefined

Optional min value value accepted by this exported component.

TidalResizablePanels.separatorProps
Omit<HTMLAttributes<HTMLDivElement>, "tabIndex" | "role" | "aria-controls" | "aria-disabled" | "aria-label" | "aria-orientation" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children"> | undefined

Optional separator props value accepted by this exported component.

TidalResizablePanels.separatorRef
Ref<HTMLDivElement> | undefined

Optional separator ref value accepted by this exported component.

TidalResizablePanels.step
number | undefined

Optional step value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas