Vivid API

Elevation

Represents underlying elevation custom element. Applies a perceived visual elevation to a direct child element.

Members

DP

Use the dp attribute to change the elevation’s level in Density-Independent Pixels (DP).

  • Type: 0|2|4|8|12|16|24
  • Default: 2

No Shadow

Use the no-shadow attribute to toggle off the elevation’s drop shadow.

Not Relative

When there’s no need for position:relative set on the slotted content. Used in Dialog - caused issues with positioning and scroll to top.
This is for use only if the slotted content contain position absolute or fixed. Otherwise, the :before element will be mispositioned.