
Detached full screen design
Autocompleteโs default behavior enables detached mode when the screen is below 500 pixels wide. You can customize this behavior with thedetachedMediaQuery
option.
Detached modal design
Once youโre in detached mode, you can choose to enable the modal design, which shows the website in the background covered by an overlay. You can set when to enable this design with the--aa-detached-modal-media-query
CSS variable,
which defaults to (min-width: 500px)
.

Manually control detached mode
- To always turn on detached mode, set
detachedMediaQuery: ''
. - To always turn off detached mode, set
detachedMediaQuery: 'none'
.