Bleed

Bleeds on all sides, background reaches the parent edges
<Bleed space="xx-large">
<Box
background="infoLight"
padding="xx-large">
<Text size="small">Bleeds on all sides, background reaches the parent edges</Text>
</Box>
</Bleed>

Horizontal

TODO

Bleeds left and right only

Vertical

TODO

Bleeds top and bottom only

Individual directions

TODO

top only
bottom only
left only
right only

Prop precedence

Specific direction overrides axis, axis overrides "space". Here left="x-large" overrides horizontal="small", which overrides space="moderate" for top/bottom.

left=x-large · right=small · top/bottom=moderate

Responsive values

The "space" prop accepts responsive objects. Resize the window to see the effect.

Resize the window to see the bleed change
<Box
padding="xx-large"
background="neutralLight"
borderRadius="md">
<Bleed space={{ mobile: 'small', tablet: 'xx-large' }}>
<Box
background="infoLight"
padding="xx-large">
<Text size="small">Resize the window to see the bleed change</Text>
</Box>
</Bleed>
</Box>

as="span"

Renders both outer and inner elements as "span" with display: block. Used by Badge's "bleedY".

Span variant