TCols

type
Layout & Sizing

Column span value for OrigamCol — accepts a numeric 1–12 grid column count, "auto" (content-sized), or true (fill remaining space).

TypeScript

Definition

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

typescript

Accepted

Values

Accepted string literal values for this type. Click a value to copy it.

true
Column expands to fill all remaining space in the row (flex-grow: 1 equivalent).
1
Spans 1 column out of 12 — approximately 8.33 % of the row width.
2
Spans 2 columns — approximately 16.67 % of the row width.
auto
Column shrinks to fit its content — no fixed grid-column span.
3
Spans 3 columns — one quarter of the row (25 %).
4
Spans 4 columns — one third of the row (33.33 %).
5
Spans 5 columns — approximately 41.67 % of the row width.
6
Spans 6 columns — exactly half the row width.
7
Spans 7 columns — approximately 58.33 % of the row width.
8
Spans 8 columns — two thirds of the row (66.67 %).
9
Spans 9 columns — three quarters of the row (75 %).
10
Spans 10 columns — approximately 83.33 % of the row width.
11
Spans 11 columns — approximately 91.67 % of the row width.
12
Spans 12 columns — the full row width.

Ecosystem

Used by

Components and props that accept this type as a value.

Usage

Examples

Ready-to-paste code snippets using this type.

Responsive 3-column layout collapsing to 12 on mobile

html