ui/position_helpers.ts view source
Alignment Alignment options for positioned elements.
CSS position calculation helpers for popovers and floating UI elements.
4 declarations
ui/position_helpers.ts view source
Alignment Alignment options for positioned elements.
ui/position_helpers.ts view source
CardinalPosition Basic position options for UI elements (cardinal directions).
ui/position_helpers.ts view source
(position?: Position, align?: Alignment, offset?: string): Record<string, string> Generates CSS positioning styles for UI elements.
positionwhere to position the element ('left', 'right', etc.)
'center'alignalignment along the position edge ('start', 'center', 'end')
'center'offsetdistance from the position (CSS value)
string'0'Record<string, string> CSS styles as a Record
ui/position_helpers.ts view source
Position Extended position options including overlay and center.