svelte-pops
Modal Props
Placement
centered
modalOffset
modalShift
placement
noAutoUpdate

middleware Array of Floating-ui middlewares. You can configure your own by following @floating-ui/dom documentation.

Default middlewares

typescript
import { flip, offset, shift } from '@floating-ui/dom';

middleware = [offset(props.modalOffset), flip(), shift({ padding: props.modalShift })]