vael-ui v0.3.10

Layout & Structure

Resizable

A draggable handle for letting the user resize a panel between a min and max size.

This site's own sidebar is built with Resizable. Drag its right edge to try it.

Install

import { Resizable } from 'vael-ui'

Playground

Drag the handle
import { Resizable } from 'vael-ui'

<Resizable :min="0" :max="0" direction="horizontal" edge="end" :disabled="false" ariaLabel="Resize" :size="150">Resizable</Resizable>

Props

NameTypeDefaultDescription
minnumber | undefined0
maxnumber | undefinedInfinity
direction"horizontal" | "vertical""horizontal"
edge"start" | "end""end"
disabledboolean | undefinedfalse
ariaLabelstring | undefined"Resize"
uiPartial<{ root: UiPartValue; handle: UiPartValue; }> | undefined
sizenumber

Slots

NameTypeDescription
defaultany
handleany

Events

NameTypeDescription
update:size[value: number]

Exposed

NameTypeDescription
elHTMLElement | null
handleElHTMLElement | null
isDraggingboolean