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.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- positionTPosition
- CSS position scheme — "static" | "relative" | "absolute" | "fixed" | "sticky". Maps directly to the position CSS property.
- topnumber | string
- Top inset. A number is resolved to "Npx"; a string is used verbatim (any CSS length).
- bottomnumber | string
- Bottom inset. Same value shapes as `top`.
- leftnumber | string
- Left inset. Same value shapes as `top`.
- rightnumber | 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