Bleed
Bleed lets authored content extend beyond the inset of its immediate container using responsive, theme-aware logical spacing.
Built from the published package
Release story
The parent keeps its reading inset while selected artwork reaches the edge.Know when Bleed is the right part
Use it when
Use Bleed for edge media, editorial artwork, or another deliberate child that must cross a parent's padding while the parent keeps owning that inset.
Choose another path when
Use Frame for size constraints, Stack/Grid for arrangement, Surface for paint, and application CSS for unrelated positioning. Do not use Bleed to conceal an incorrect container measure.
Installation and imports
With modular styles load styles/core.css once and styles/bleed.css.
Quick start
Visual recipes and states
Bleed has no visual recipe or interaction state. It changes only logical margin, converting public positive spacing into negative margins internally.
Examples
API
Start with the public parts and root options below. Components with multiple parts separate each area into its own named subsection.
Public exports are Bleed, BleedProps, and BleedElement.
| Prop | Value | Default |
|---|---|---|
as | div, span, section, article, aside, main, header, footer, nav, ul, ol, li | div |
asChild | boolean | false |
inline | responsive Brick spacing value | 0 |
block | responsive Brick spacing value | 0 |
inlineStart | responsive Brick spacing value | inherited from inline |
inlineEnd | responsive Brick spacing value | inherited from inline |
blockStart | responsive Brick spacing value | inherited from block |
blockEnd | responsive Brick spacing value | inherited from block |
slot | string | bleed |
Spacing props accept non-negative Brick spacing values or responsive values
with initial and optional sm, md, lg, and xl overrides. Directional
values override their matching axis edge. asChild preserves one non-Fragment
child.
Accessibility
Bleed adds no semantics or behavior. Verify the resulting composition does not introduce horizontal page scrolling, crop meaningful content, or obscure focus indicators.
Responsive behavior
Values follow Brick's mobile-first breakpoint grammar and carry forward until a later authored value replaces them.
Styling and tokens
Customization
Prefer the spacing props. Bleed intentionally has no paint, size, overflow, position, or z-index customization surface.
Tokens and CSS hooks
Stable hooks are .brick-bleed, data-bleed, data-slot, and
data-slot="bleed".
Spacing variables are implementation details generated from the public props.
Advanced reference
Open these details only when you need to inspect DOM ownership, native forwarding, or lower-level composition.