TPosition

type
Layout & Sizing

CSS position value accepted by the position prop on many Origam components — maps directly to the CSS position property.

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.

fixed
Positioned relative to the viewport — stays put during scroll. Used by AppBars and FABs.
static
Default CSS flow position — top/right/bottom/left have no effect.
relative
Positioned relative to its normal flow position — creates a new stacking context.
absolute
Positioned relative to the nearest positioned ancestor — used for overlays and decorative elements.
sticky
Behaves as relative until a scroll threshold, then fixed — ideal for sticky table headers and section navs.

Ecosystem

Used by

Components and props that accept this type as a value.

Usage

Examples

Ready-to-paste code snippets using this type.

Fixed toolbar that stays at the top during scroll

html

Sticky section header inside a scroll container

html