Skip to content

Page

The body of a view inside the AppShell: its padding and its width, so every screen of a console sits the same way.

import { Page } from '@sypnia/ui/react'

On this page
  1. A view
  2. When to use it
  3. For everyone
  4. Props

A view

Tables

Everything your project keeps, as tables.

orders

1,240 rows · 6 columns
Code
import { Button, Page, PageHeader, Panel } from '@sypnia/ui/react';

// The body of a view inside the AppShell: its padding and width, with the header and the panels in it.
export default function PageExample() {
  return (
    <div style={{ border: '1px solid var(--line)', borderRadius: 'var(--r-3)', overflow: 'hidden' }}>
      <Page>
        <PageHeader title="Tables" lead="Everything your project keeps, as tables." actions={<Button variant="primary" icon="plus">New table</Button>} />
        <Panel title="orders">1,240 rows · 6 columns</Panel>
      </Page>
    </div>
  );
}

When to use it

Use it when

  • Every screen inside AppShell, with a PageHeader first.

Do not use it when

  • Pages without the shell: use Container.

For everyone

  • The shell's main landmark wraps it; the PageHeader gives it its level 1 heading.

Props

PageTypeDefault
wide boolean
  1. A view
  2. When to use it
  3. For everyone
  4. Props

    Search pages, sections and terms