Skip to content

Compose a page

Drag a card from the Components palette onto the canvas. While you drag, Mica highlights where the component will land:

  • Before or after a component — aim at its near edge; a line shows the insertion point.
  • Inside a container — aim at the centre of a Page, Stack, Grid, or Signal’s Section. An empty container shows a Drop here area.

The new component is selected as soon as it lands, with the props its pack defines as the insertion example. Use the search box above the palette to find a component by name or description.

Hover a component to reveal its toolbar, then drag the handle to move it. The same before/after/inside targets apply, so you can reorder within a container or move a component into another one. The canvas scrolls automatically when you drag near its edge, and the hover outline always marks the deepest component under the pointer.

Click a component to select it. The inspector shows one control per prop, generated from the component’s schema:

  • text props get text fields, numbers get number fields, booleans get switches, and fixed choices get segmented buttons;
  • a nullable prop (marked nullable) can be cleared to Auto / none and set again with Set value.

The schema checks every edit before it is applied — an invalid value shows an error instead of changing the document.

Map in the top bar swaps this canvas for a data map and a page-flow map of the same document. Filters and the selected field survive closing the map; Show on canvas brings the highlights back onto the live page. See Explore the data and page maps.

Press the trash icon in the component’s hover toolbar or in the inspector header. Deleting a container deletes everything inside it. The page stack and the pages themselves are removed differently — see Pages and navigation.

Every change is a transaction: Undo and Redo in the top bar, or ⌘Z and ⌘⇧Z, step through them. Several edits to the same property in quick succession collapse into one step.

Component Use it for Key props
Stack A row or column of items direction (vertical/horizontal), gap, align, justify, wrap, padding, surface
Grid Equal columns side by side columns (1–4), gap, padding, minCellWidth (120–420 px, or none)
Section (Signal) A framed card with an optional eyebrow and title eyebrow, title, tone (plain/outlined/raised/ink), padding
Spacer Deliberate empty space size (4–160 px), axis

Nocturne has no Section; use a Stack with a surface (paper, soft, ink, citrus) and a Divider for the same effect.

A Grid always lays out columns equal columns. Its minCellWidth prop is stored and handed to the grid as the --ui-min-cell CSS custom property, but the shipped mica/runtime.css does not use it yet, so today the column count does not change with the width of the screen.