IPositionProps

interface
Layout & Sizing

CSS position contract — the positioning scheme plus numeric/string inset values for each side. Consumed by fixed or sticky surfaces such as app bars, FABs and snackbars.

TypeScript

Definition

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

typescript

API

Properties

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

position
TPosition
CSS position scheme — "static" | "relative" | "absolute" | "fixed" | "sticky". Maps directly to the position CSS property.
top
number | string
Top inset. A number is resolved to "Npx"; a string is used verbatim (any CSS length).
bottom
number | string
Bottom inset. Same value shapes as `top`.
left
number | string
Left inset. Same value shapes as `top`.
right
number | string
Right inset. Same value shapes as `top`.

Ecosystem

Used by

Components and composables that extend or consume this interface.

Usage

Examples

Ready-to-paste code snippets using this interface.

Extending the interface for a sticky component

typescript