FLEX_DIRECTION
enum
Layout & Sizing
CSS flex-direction values exposed as a TypeScript enum. Used by OrigamRow to control the main axis of a grid row.
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Members
Members
All members of this enum. Click a value to copy it to clipboard.
- FLEX_DIRECTION.ROW
- Items are laid out left to right (default).
- FLEX_DIRECTION.COLUMN
- Items are stacked top to bottom.
- FLEX_DIRECTION.COLUMN_REVERSE
- Items are stacked bottom to top.
- FLEX_DIRECTION.ROW_REVERSE
- Items are laid out right to left.
Ecosystem
Used by
Components and props that accept this enum as a value.
Usage
Examples
Ready-to-paste code snippets using this enum.
Reversing a grid row