Menu

Components

Overlay

The page's own ground at 62 percent over a blur, edged like a card, for a panel that floats over content.

Usage

Uses.aka-overlay

<div className="aka-overlay rounded-lg p-1.5">
  <p className="px-3 pb-1 pt-2 text-10 font-medium uppercase tracking-[0.14em] text-foreground">Rebuilt here</p>
  <a href="/demo/ubik" className="block rounded-md px-3 py-2 text-13 transition-colors hover:bg-muted/40">
    The three-pane workspace
  </a>
</div>

Over content the panel's ground is whatever shows through it, which no floor can be measured against, so every line on it is the full ink. A third material rather than a card, because a card sits on the page and this sits over it: whatever is underneath still shows through. The archive menu on /demo/ubik is the working instance, absolutely positioned against its button so opening it reflows nothing. Here it is held open over a strip of the accent ramp, so the page can show what reads through it.

Best practices

When to use

  • A menu, a popover, anything that floats over content and must stay readable while the content moves underneath.
  • A card instead for anything that sits in the flow.

Behaviour

  • The fill was 82 percent and buried the blur; at 62 what is behind moves through the panel and the text still has ground under it.
  • The site header uses the same material when it detaches, so a menu reads as the same thing arriving.

Accessibility

  • The rows are links or buttons with their own names; the panel itself is not a control.
  • Position it so opening it reflows nothing, and close it on Escape.