Homecomponentsstructural

Bleed

A container that extends its contents out of its bounds.


Use Bleed to make the contents extend out of the available space. This works as the opposite of Inset and is designed to visually break out of a parent container.

I bleed it out 🗣

Horizontal

Use horizontal to bleed out horizontally.

Horizontal

Vertical

Use vertical to bleed out vertically.

Vertical

Top

Use top to bleed out from the top.

Top

Right

Use right to bleed out to the right.

Right

Bottom

Use bottom to bleed out from the bottom.

Bottom

Left

Use left to bleed out to the left.

Left

All sides equally

Use space to bleed out from all sides.

All

Examples

A common use of Bleed is to break images out of container to make them stand out.

API

children
Required
The content to bleed.
ReactNode

space
The amount of bleed to apply.

vertical
The amount of bleed to apply to the horizontally.

horizontal
The amount of bleed to add vertically.

top
The amount of bleed to apply to the top.

bottom
The amount of bleed to apply to the bottom.

left
The amount of bleed to apply to the left.

right
The amount of bleed to apply to the right.

asChild
Absorb the child along with their styles. This is usually used to combine components together.
true
false

data
An object with the data keys and values.
DataAttributeMap