addMiddleware

fun addMiddleware(middleware: Middleware)

Adds a new Middleware to the array of middlewares.

For example

addMiddleware(offset(10))

Be aware to follow the recommended precedences by floating-ui's middlewares: https://floating-ui.com/docs/middleware#ordering

Check https://floating-ui.com/docs/middleware for available middlewares.

See also