← All dialogs Drawers, four sides 7 of 10
‹ ›

Drawers

Same element, same JavaScript, four positions.

A drawer must also be a <dialog>. Porting an offcanvas div across is the second most common v5 mistake — and if you leave it as a div inside a navbar-expand ancestor, its contents render inline on desktop instead of staying hidden.

Filters

Faceted filters usually belong on the start edge, near the results they modify.

Basket

Baskets, notifications and detail panels read better from the end edge.

Announcement

Top drawers suit site-wide notices. Use them sparingly.

Quick actions

Bottom is the natural place on a phone — it is where thumbs are.