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
Variable | Default Value (Light) | Default Value (Dark) |
---|---|---|
backgroundColor-Backdrop | black | black |
opacity-Backdrop | 0.1 | 0.1 |