import Bleed from '@precursor/bleed';Example
Content follows the panel inset.
The divider reaches beyond it.
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
| Prop | Type | Default | Notes |
|---|---|---|---|
childrenRequired | ReactNode | — | — |
amount | "xxs" | "xs" | "s" | "m" | "l" | "xl" | "xxl" | "xxxl" | 'm' | — |
axis | "inline" | "block" | "both" | 'inline' | — |