ALIGN

enum
Layout & Positioning

TypeScript enum for cross-axis alignment in flex/grid layouts (start, end, center, baseline, stretch).

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.

ALIGN.START
Align items to the start of the cross axis.
ALIGN.END
Align items to the end of the cross axis.
ALIGN.CENTER
Center items on the cross axis.
ALIGN.BASELINE
Align items along their text baseline.
ALIGN.STRETCH
Stretch items to fill the cross axis.

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Using the enum in script setup

typescript