MODE

enum
Layout & Sizing

Scroll / expand axis for components like InfiniteScroll and Transition (horizontal, vertical, shift).

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

MODE.HORIZONTAL
Operate along the horizontal axis.
MODE.VERTICAL
Operate along the vertical axis.
MODE.SHIFT
Shift mode — translates content diagonally or based on pointer delta.

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Using MODE in script setup

typescript