Tesserae

Description

The Modal component provides a temporary overlay window that can be used to display contextual information or gather user input. It is ideal for presenting dialogs, alerts, or small interactive forms within your application. The Modal belongs to the Surfaces group and offers both blocking and non-blocking modes, light dismiss behavior, customizable headers and footers, and various styling options.

Usage

Instantiate a Modal using the Tesserae.UI helper methods. You can optionally pass in a header component. The Modal supports chaining configuration methods such as adding a footer, enabling light dismiss, adjusting dimensions, and more.

API reference

Samples

Basic Modal Example

This sample demonstrates creating a simple modal with a header, a footer, and centered content. It showcases how to enable light dismiss and display the modal with default settings.

Positioned and Async Modal

This sample shows how to display a modal at custom screen positions and use the asynchronous show method to perform actions after the modal is hidden.

See also

  • Dialog – For quick user decision making.
  • Panel – For side-surface interactions.
  • Float – For floating panels and tooltips.
© 2026 Tesserae. All rights reserved.