app/pb_kits/playbook/pb_overlay/docs/_overlay_default

Overlays optionally accept a color, which sets the “start” (opaque) color of a gradient mask. Because this overlay is intended to reveal underlying content, the “end” color is fixed to transparent.

The optional layout prop accepts the position and size of the overlay as a key:value pair.

The position key accepts bottom (default), top, y (for both top and bottom) right, left, or x (for both left and right), which sets the side(s) where the color overlay starts. The direction of the overlay is always toward the opposite side of the position. For example, the default position of bottom starts the overlay on the bottom edge of your container and extends it toward the opposite side: the top.

The size value is full (100%) by default, but accepts our spacing tokens or a percentage value as a string, and literally translates to how much of the container is covered by the overlay(s).

By default, the overlay is rendered as a gradient. Setting the gradient prop to false renders the overlay as a solid color using the value provided by the color prop. You can adjust the transparency of the solid overlay by using the opacity prop.