Backdrop
A backdrop is used to focus a user on a particular sub task of a page. They block the ability to interact with other page elements while active. Backdrops always accompany a dialog, modal or module.
Content should never be directly placed on the backdrop.
Backdrop color and opacity will not change. There are no custom sizes for Backdrops. They will always span the full width and height of the view.
Basic Usage
template
<Button @click="isVisible = true">Show Backdrop</Button>
<div
class="relative transition-opacity"
:class="{
'z-behind opacity-0 invisible': !isVisible,
'z-modal opacity-100 visible': isVisible,
}"
>
<Backdrop @click="isVisible = false" />
</div>Anatomy
- Container