跳到主要内容

Overlays

Everything drawn above the page: modal dialogs and side panels, drop-downs and context menus, tooltips and the selector.

Overview​

The following components are available:

ComponentDescription
AsidePanel that slides in from the side of the viewport, with a header and a scrolling body.
AsideHeaderTitle bar of a side panel or a dialog, with a back arrow, extra icons and the close cross.
AvatarEditorDialogModal that frames an uploaded picture: the kit's crop window between a title and a save and cancel pair.
BackdropFull-screen layer behind an overlay, transparent by default, that catches the click meant to close it.
ContextMenuMenu opened at the pointer through a ref, with submenus, a mobile sheet form and working keyboard navigation.
DropDownItemOne row of a dropdown menu: a label, an optional icon and badges, or a separator.
DropDownMenu anchored to a control, rendered in a portal and positioned against the element you point it at.
ModalDialogDialog rendered in a portal, as a centred modal or a side panel, assembled from Header, Body, Footer and Container slots.
RoomLogoCoverDialogDialog for a room's generated logo: a colour from the palette and an optional glyph, over a live preview.
SelectorPanel for picking one or many things out of a list too long to render at once.
TooltipFloating hint attached to one or more anchors, rendered in a portal and positioned to stay in the viewport.