Layout

Isolation

Utilities for controlling whether an element should explicitly create a new stacking context.

Basic usage

Setting the stacking context

Use the isolate and isolation-auto utilities to control whether an element should explicitly create a new stacking context.

<div className="isolate ...">
  <!-- ... -->
</div>