offset

fun offset(mainAxis: Number): Middleware

See also


external fun offset(options: OffsetOptions): Middleware

Modifies the placement by translating the floating element along the specified axes. A number (shorthand for mainAxis or distance), or an axes configuration object may be passed.

See also

https

://floating-ui.com/docs/offset