UNPKG

@lion/ui

Version:

A package of extendable web components

20 lines (17 loc) 517 B
import { withClickInteraction } from './visibility-trigger-partials/withClickInteraction.js'; /** * @typedef {import('../../types/OverlayConfig.js').OverlayConfig} OverlayConfig */ export const withBottomSheetConfig = () => /** @type {OverlayConfig} */ ({ hasBackdrop: true, preventsScroll: true, trapsKeyboardFocus: true, hidesOnEsc: true, placementMode: 'global', viewportConfig: { placement: 'bottom', }, handlesAccessibility: true, ...withClickInteraction(), });