IGridItemProps

interface
Layout & Sizing

Props for OrigamGridItem — controls CSS Grid placement via column, row and area (object or shorthand string syntax), plus per-item alignSelf and justifySelf overrides.

TypeScript

Definition

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

typescript

Inheritance

Extends

Parent interfaces this one inherits from. Their properties are available on every consumer of this interface.

API

Properties

Every property declared by this interface, with its type, optionality and default.

column
IGridLineSpec | string | number
Inline-axis placement (grid-column). Pass an object { start, end } / { start, span } or a CSS string like "1 / 5".
row
IGridLineSpec | string | number
Block-axis placement (grid-row). Same accepted shapes as column.
area
string
grid-area name. When set, overrides column and row.
alignSelf
TGridPlaceSelf
Per-item align-self override.
justifySelf
TGridPlaceSelf
Per-item justify-self override.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Placing an item across columns with object syntax

vue