Current version 22.0.0

Layers directive

import { TgLayerDirective } from '@trademe/tangram';

The layers directive allows the layer system to be applied to an element.

Layers can be applied to any element, a box has been used in this example. Card and dropdown components have layers applied by default and do not need to be added.

Use z-index to control how elements stack. The layers directive does not add z-index to elements.

Example

Box on the card layer

Behaviour

Below the md breakpoint, overlay and notification layer shadows are smaller.

Proudly made by © 2026 Trade Me Limited