Files
directus/src/components/v-overlay
Rijk van Zanten 668056f3b0 Base component var scoping (#480)
* Avatar / badge

* Move base component vars to body scope

* Fix global icon override
2020-04-24 18:52:27 -04:00
..

Overlay

<v-overlay :active="overlay">
	<v-button @click="overlay = false">Close overlay</v-button>
</v-overlay>

The overlay is a fairly barebones component that's meant to be used with modals / confirms / other attention requiring actions.

Color

The colors can be changed via the css variable --v-overlay-color.

<v-overlay :active="overlay">
	<v-button @click="overlay = false">Close overlay</v-button>
</v-overlay>
<style>
.v-overlay {
	--v-overlay-color: rgba(255, 0, 0, 0.5);
}
</style>

Props

Prop Description Default
active Show / hide the overlay false
absolute Add position: absolute; false

Slots

Slot Description Data
default --

Events

Event Description Value
click MouseEvent

CSS Variables

Variable Default
--v-overlay-color var(--overlay-color)
--v-overlay-z-index 500