GRID_PLACE_ITEMS

const
Layout & Sizing

Closed list of valid alignItems / justifyItems values for OrigamGrid. Also aliased as GRID_PLACE_SELF for the per-item self-axis.

TypeScript

Definition

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

typescript

Entries

Values

All entries in this constant. Click a value to copy it to clipboard.

'start'
Align items to the start of their cell.
'center'
Center items within their cell.
'end'
Align items to the end of their cell.
'stretch'
Stretch items to fill their cell (default).

Ecosystem

Used by

Composables and components that consume this constant.

  • OrigamGrid

Usage

Examples

Ready-to-paste code snippets using this constant.

Validating an alignItems value

typescript