position_helpers.ts

Declarations
#

4 declarations

view source

Alignment
#

CardinalPosition
#

generate_position_styles
#

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.)

default 'center'

align

- Alignment along the position edge ('start', 'center', 'end')

default 'center'

offset

- Distance from the position (CSS value)

type string
default '0'

returns

Record<string, string>

CSS styles as a Record

Position
#

Imported by
#