Skip to the page
Supply UI

Separator

A line between two groups. decorative when it is only for looks.

Preview

Harbour RoomSeats 8, with a screen and a whiteboard
Mon to Fri08:00–20:00

Use

The code of the preview above
import { ItemText, Row, Separator, Stack } from '@/components/ui';

<Stack gap={4}>
  <ItemText title="Harbour Room" note="Seats 8, with a screen and a whiteboard" />
  <Separator />
  <Row gap={3}>
    <span>Mon to Fri</span>
    <Separator vertical />
    <span className="ui-mono">08:00–20:00</span>
  </Row>
</Stack>

This page as text, for an AI

Options

OptionTypeWhat it does
className stringMore classes on the outer element, for layout around it (margins, grid placement), not to restyle it.
vertical booleanAn upright line, between things in a row, in place of a flat one.

It also takes the 282 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 ui-separator.

With the CSS in parts (/ui/css/), it needs these, besides the ones every page loads:

components/card.csscomponents/separator.css

In the examples

Small screens made with it and the rest of the kit. They work: click, type and choose in them.

Sourdough€5.50
Dark rye€4.80
Seeded€6.20
Pick up at 07:00€17.20
Fresh by seven Reserve loaves the night before. The total keeps up.
4.8212 reviews
Lea Novak

"Booked at midnight, reminded the day before, in and out in forty minutes."

What people said The average, how it splits, and a voice from it

Layout: states, do and don’t

A dividing line.

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".