reka-ui
Version:
Vue port for Radix UI Primitives.
12 lines (9 loc) • 310 B
text/typescript
export type Direction = 'horizontal' | 'vertical'
export type ResizeEvent = KeyboardEvent | MouseEvent | TouchEvent
export type ResizeHandler = (event: ResizeEvent) => void
export type DragState = {
dragHandleId: string
dragHandleRect: DOMRect
initialCursorPosition: number
initialLayout: number[]
}