Update v4.2 - New components, 10+ framework guides, and quality improvements. Visit Changelog

Tailwind CSS Layout Splitter

Build resizable panel layouts with Tailwind CSS Layout Splitter examples for horizontal, vertical, mixed, and constrained layouts.

Requires JS

This page requires our Layout Splitter plugin. You can skip this step if you're already using Preline UI as a package.

Horizontal direction

A basic horizontal splitter with draggable panels.

Vertical direction

A vertical splitter with draggable panels. Drag the handles to resize each section.

Mixed directions

Combine horizontal and vertical splitters in the same resizable layout.

Manually added splitters

Add splitter controls manually when you need full control over handle placement.

Minimum sizes

Set minimum panel sizes to keep sections usable while resizing.

Destroy and Reinitialize

Use the destroy method to remove a layout splitter instance, then call HSLayoutSplitter.autoInit() to initialize it again.

© 2026 Preline Labs.