This library is still in development and is available only for internal usage at VTEX.
Skip to main content

Bleed

Bleed

Version: Next

Bleed

Sometimes a component needs to trespass the parent padding to achieve alignment harmony and visual compensation to the layout. You can accomplish this with Bleed, which applies a negative margin to represent the amount of trespassing desired.

Usage

function Example() {
return (
<Card>
<Bleed>
<img src="..." />
</Bleed>
</Card>
)
}

Examples

Basic

vtex-brand

VTEX is the Enterprise Digital Commerce Platform for brands and retailers looking to build a future-proof digital commerce strategy. Powered by a modern platform and a team of digital commerce experts, we enable enterprises to achieve faster time-to-market, reach their customers across any channel and uncover new areas of growth.

With Inline

Brazil
Argentina
Chile
Uruguai

Props

NameTypeDescriptionRequiredDefault
topVSpaceTokens or numberTop bleed🚫'0rem'
bottomVSpaceTokens or numberBottom bleed🚫'0rem'
leftHSpaceTokens or numberLeft bleed🚫'0rem'
rightHSpaceTokens or numberRight bleed🚫'0rem'