Layout primitives

Bleed

Offsets surrounding padding on logical axes

tsx
import Bleed from '@precursor/bleed';

Example

Content follows the panel inset.

The divider reaches beyond it.
tsx
import Bleed from '@precursor/bleed';
import Divider from '@precursor/divider';
import Panel from '@precursor/panel';
import Stack from '@precursor/stack';
export default function Example() {
    return (
        <Panel>
            <Stack gap="s">
                <span>Content follows the panel inset.</span>
                <Bleed amount="m" axis="inline">
                    <Divider />
                </Bleed>
                <span>The divider reaches beyond it.</span>
            </Stack>
        </Panel>
    );
}

Props

Bleed props
PropTypeDefaultNotes
childrenRequiredReactNode——
amount"xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl"'m'—
axis"inline" | "block" | "both"'inline'—