UNPKG

@stackoverfloweth/prefect-design

Version:

A collection of low-level Vue components.

10 lines (8 loc) 492 B
export const LayoutResizablePlacements = ['left', 'right', 'top', 'bottom'] as const export type LayoutResizablePlacement = typeof LayoutResizablePlacements[number] export function isResizablePlacement(placement: unknown): placement is LayoutResizablePlacement { return LayoutResizablePlacements.includes(placement as LayoutResizablePlacement) } export function isHorizontalPlacement(placement: LayoutResizablePlacement): boolean { return placement === 'left' || placement === 'right' }