VOOZH about

URL: https://www.geeksforgeeks.org/css/blaze-ui-basic-overlay/

⇱ Blaze UI Basic Overlay - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Blaze UI Basic Overlay

Last Updated : 23 Jul, 2025

Blaze UI is a free open source UI Toolkit that provides a great structure for building websites quickly with a scalable and maintainable foundation. All components in Blaze UI are developed mobile-first and rely solely on native browser features, not a separate library or framework. It helps us to create a scalable and responsive website fast and efficiently with a consistent style.

In this article, we will be seeing Blaze UI Basic Overlay. The overlay component is used in many other components, like modal, to blackout the content of the page. To make use of overlays the c-overlay class is used. By default, the overlays are hidden. To make overlays visible, we can use c-overlay--visible class.

Blaze UI Basic Overlay Classes:

  • c-overlay: This class is used to create the overlay.
  • c-overlay--visible: This class is used with the c-overlay class to make the overlay visible.

Syntax:

<div class="c-overlay c-overlay--visible" 
 aria-hidden="true">
</div>

Example 1: This example shows the use of the c-overlay class to create an overlay. There will be no visual change as the overlay is hidden by default.

Output:

👁 Image
 

Example 2: This example shows the use of c-overlay--visible to make the overlay visible. You can see a greyish overlay over the content in the output image.

Output:

👁 Image
 

Reference: https://www.blazeui.com/components/overlays/

Comment