Skip to the page
Supply UI

Bleed

A band the full width of the window, from inside a page's Container: a tinted section, a row of pictures. What is in it lines up with the page again by itself (contained, on by default); contained={false} lets it run edge to edge.

Preview

Use

The code of the preview above
import { Bleed, Grid, Picture } from '@/components/ui';

<Bleed>
  <Grid min="8rem" gap={3}>
    <Picture seed="Harbour Room" ratio="4 / 3" />
    <Picture seed="Quay Room" ratio="4 / 3" />
    <Picture seed="Garden Room" ratio="4 / 3" />
  </Grid>
</Bleed>

This page as text, for an AI

Options

OptionTypeWhat it does
contained boolean · default trueLines what is inside up with the page column again (default); false lets it run edge to edge.

It also takes the 280 attributes of the element or UI SDK part it draws: className, aria-label, events and the rest.

Without React

The same look on any HTML, with the classes div.ui-bleed > div.ui-container.

Layout: states, do and don’t

A band the full width of the window from inside a Container: a tinted section, a row of pictures. What is in it lines up with the page column again; contained={false} runs it edge to edge.

States. Layout follows the box it is in, not the window: Split, Grid, AppShell and the site parts stack when their box is narrow, at any width of the window.

Do

  • Space with gap (Stack, Row, Grid), never with margins on children.
  • Put the page's sections straight on the page, under their titles; a Card is one thing a person picks or acts on.
  • Check every screen at 320, 375 and 768 px with the narrow check of rule 10.

Don't

  • Don't give a box a fixed width, or a min-height together with an aspect-ratio.
  • Don't nest a card in a card.
  • Don't put two <main>s on a page: a screen shown inside another page takes Main as="div".