Resizable
Preview Resizable, copy setup snippets, review examples, and inspect API exports for @tuturuuu/ui/resizable.
Preview
A contained preview using the same shared primitive exported by the package.
Installation
Install the shared UI package, import global styles once, then import the component from its public subpath.
bun add @tuturuuu/uiimport '@tuturuuu/ui/globals.css';import { ResizablePanelGroup, ResizablePanel, ResizableHandle } from '@tuturuuu/ui/resizable';Usage
Copy the default usage snippet and adapt labels, state, and event handlers to the product surface.
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from '@tuturuuu/ui/resizable';
<ResizablePanelGroup direction="horizontal">
<ResizablePanel>Primary</ResizablePanel><ResizableHandle withHandle /><ResizablePanel>Secondary</ResizablePanel>
</ResizablePanelGroup>Examples
Examples reuse the registry snippets so the docs stay aligned with the component catalog.
Default
A minimal implementation using the current registry snippet.
import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from '@tuturuuu/ui/resizable';
<ResizablePanelGroup direction="horizontal">
<ResizablePanel>Primary</ResizablePanel><ResizableHandle withHandle /><ResizablePanel>Secondary</ResizablePanel>
</ResizablePanelGroup>Composition
Use the grouped exports when the primitive has slots, triggers, content regions, or providers.
import {
ResizablePanelGroup,
ResizablePanel,
ResizableHandle,
} from '@tuturuuu/ui/resizable';Package import
Import through the public package path so workspace and external apps share the same contract.
// Public package import
import { ResizablePanelGroup } from '@tuturuuu/ui/resizable';
// Workspace apps should keep importing through the package boundary.API reference
The public exports currently available from this component entry.
| Name | Kind | Description |
|---|---|---|
ResizablePanelGroup | Component | ResizablePanelGroup is exported from @tuturuuu/ui/resizable. Inspect the source for component-specific props and composition details. |
ResizablePanel | Component | ResizablePanel is exported from @tuturuuu/ui/resizable. Inspect the source for component-specific props and composition details. |
ResizableHandle | Component | ResizableHandle is exported from @tuturuuu/ui/resizable. Inspect the source for component-specific props and composition details. |
Customization
Common props, states, and composition points to review before using this component.