DIRECTION_ARRAY
const
Layout & Sizing
Array of all four directional values (top, bottom, left, right) combining BLOCK and INLINE axes. Used to validate and iterate the full directional surface (e.g. in anchor, popover, and tooltip positioning logic).
TypeScript
Definition
The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.
Entries
Values
All entries in this constant. Click a value to copy it to clipboard.
- BLOCK.TOP
- The top (block-start) direction.
- BLOCK.BOTTOM
- The bottom (block-end) direction.
- INLINE.LEFT
- The left (inline-start) direction.
- INLINE.RIGHT
- The right (inline-end) direction.
Ecosystem
Used by
Composables and components that consume this constant.
useAnchor
OrigamTooltip
OrigamMenu
Usage
Examples
Ready-to-paste code snippets using this constant.
Iterating the four directions