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