Skip to Content
OpenPerf

Components

Standalone

Full-page layout with one centered card for sign-in, onboarding and error screens outside the Shell.

import { Standalone } from "@openperf/deft";

<Standalone.Root>
  <Standalone.Panel>
    <Standalone.Header>
      <Standalone.Logo />
    </Standalone.Header>
    <Standalone.Body>
      <Standalone.Heading title="Create your first project" />
    </Standalone.Body>
  </Standalone.Panel>
</Standalone.Root>;

When to use

NeedComponent
Screen without navigation: sign-in, onboarding, invitation, full-page errorStandalone
Screen with a SidebarShell
Card inside a page of the shellPanel
Page inside the shell that failed to loadEmpty

Anatomy

<Standalone.Root>
  <Backdrop.Root /> {/* optional */}
  <Standalone.Corner /> {/* pinned to the top right of the page */}
  {/* Panel with 24px padding */}
  <Standalone.Panel>
    <Standalone.Header>
      <Standalone.Logo />
    </Standalone.Header>
    <Standalone.Body>
      <Standalone.Heading />
      {content}
    </Standalone.Body>
  </Standalone.Panel>
</Standalone.Root>

Standalone.Root is at least as tall as the viewport and centers its children in one column at most 420px wide. Everything rendered next to the panel joins that column — Logo.Particles from Logo above the card, for example — except Standalone.Corner.

Error page

code prints a large status code above the title. It is hidden from assistive technology, so say what went wrong in title and description.

Steps and connected apps

Put a Step progress between the header and the body to show the position in a flow of several pages. In the header, Avatar.Bridge from Avatar links the logo of another app to Standalone.Logo.

API

Standalone.Panel accepts the props of Panel.Root in Panel, and Standalone.Logo takes no props.

Standalone.Heading

The title is the <h1> of the page: render one heading per page.

Prop

Type

On this page