Skip to content
Dashboard DashboardResizeHandle

DashboardResizeHandle

A separator that resizes the panel before it with the mouse or the keyboard.

On this page

Examples

Between two panels

Use Resizable on a panel for the common case; place a handle yourself to control where it goes.

Editor

Preview

Razor
@* A handle placed between two panels, instead of Resizable on the first. It resizes the panel before it. *@
<div class="h-56 w-full overflow-hidden rounded-xl border border-(--klyroo-border)" data-testid="dashboard-handle-frame">
    <KlyDashboardGroup>
        <KlyDashboardPanel Size="50" data-testid="dashboard-handle-left">
            <Body><p class="text-sm text-(--klyroo-text-muted)">Editor</p></Body>
        </KlyDashboardPanel>
        <KlyDashboardResizeHandle Label="Resize editor" Value="50" data-testid="dashboard-handle" />
        <KlyDashboardPanel Size="50" data-testid="dashboard-handle-right">
            <Body><p class="text-sm text-(--klyroo-text-muted)">Preview</p></Body>
        </KlyDashboardPanel>
    </KlyDashboardGroup>
</div>

API

KlyDashboardResizeHandle

Draggable separator between two dashboard panels, operable with the keyboard.

Parameters

Name Type Default Description
Class string Classes added to the root element, merged last so they win over the theme.
Controls string The id of the panel before the handle.
Label string Accessible name. Defaults to the built-in text.
Step Double 5 Size change of an arrow key press, in percent.
Ui DashboardResizeHandleUi Per-instance class overrides of the slots of the dashboard resize handle, see DashboardResizeHandleUi . They are merged after the theme and the Class parameter wins on the root slot.
Value Double 50 The size in percent of the panel before the handle, as shown until the browser takes over.

Ui slots

Ui takes a DashboardResizeHandleUi with one class string per slot, merged after the theme.

Slot Styles
Root Classes merged into the root slot of KlyDashboardResizeHandle , after the theme and the app configuration.