ui/position_helpers.ts view source
Alignment type "start" | "center" | "end"
import type {Alignment} from '@fuzdev/fuz_app/ui/position_helpers.js'; Alignment options for positioned elements.
CSS position calculation helpers for popovers and floating UI elements.
4 declarations
ui/position_helpers.ts view source
Alignment type "start" | "center" | "end"
import type {Alignment} from '@fuzdev/fuz_app/ui/position_helpers.js'; Alignment options for positioned elements.
ui/position_helpers.ts view source
CardinalPosition type "left" | "right" | "top" | "bottom"
import type {CardinalPosition} from '@fuzdev/fuz_app/ui/position_helpers.js'; Basic position options for UI elements (cardinal directions).
ui/position_helpers.ts view source
(position?: Position, align?: Alignment, offset?: string): Record<string, string> import {generate_position_styles} from '@fuzdev/fuz_app/ui/position_helpers.js'; Generates CSS positioning styles for UI elements.
position?'center'align?'center'offset?distance from the position (CSS value)
string'0'Record<string, string>
UnreachableError - if `position` is not a known `Position` valueui/position_helpers.ts view source
Position type CardinalPosition | "overlay" | "center"
import type {Position} from '@fuzdev/fuz_app/ui/position_helpers.js'; Extended position options including overlay and center.