Logo

Backdrop

The Backdrop component is a semi-transparent overlay that appears on top of its child component to obscure or highlight the content behind it.
<App>
  <Backdrop opacity="0.6">
    <Image 
      src="/resources/images/components/image/breakfast.jpg" 
      fit="cover" width="400px" />
    <property name="overlayTemplate">
      <VStack verticalAlignment="center" height="100px">
        <H1 color="white" textAlign="center">Great breakfast!</H1>
      </VStack>
    </property>
  </Backdrop>
</App>
Example: using Backdrop
<App>
  <Backdrop opacity="0.6">
    <Image 
      src="/resources/images/components/image/breakfast.jpg" 
      fit="cover" width="400px" />
    <property name="overlayTemplate">
      <VStack verticalAlignment="center" height="100px">
        <H1 color="white" textAlign="center">Great breakfast!</H1>
      </VStack>
    </property>
  </Backdrop>
</App>

Properties

backgroundColor

The background color of the backdrop.

opacity

The opacity of the backdrop.

overlayTemplate

This property defines the component template for an optional overlay to display over the component.

Events

This component does not have any events.

Exposed Methods

This component does not expose any methods.

Styling

Theme Variables

VariableDefault Value (Light)Default Value (Dark)
backgroundColor-Backdropblackblack
opacity-Backdrop0.10.1
This site is an XMLUI™ app.