Layout
Box Decoration Break
Utilities for controlling how element fragments should be rendered across multiple lines, columns, or pages.
Basic usage
Setting the box decoration break
Use the box-decoration-slice
and box-decoration-clone
utilities to control whether properties like background, border, border-image, box-shadow, clip-page, margin, and padding should be rendered as if the element were one continuous fragment, or distinct blocks.
box-decoration-slice
Hello
World
World
box-decoration-clone
Hello
World
World
<span
className="**box-decoration-slice** bg-gradient-to-r from-indigo-600 to-pink-500 text-white px-2 ..."
>
Hello<br />
World
</span>
<span
className="**box-decoration-clone** bg-gradient-to-r from-indigo-600 to-pink-500 text-white px-2 ..."
>
Hello<br />
World
</span>