Skip to content

Stage

The product shown working, on a plate: with an address it has the bar of a browser window.

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

On this page
  1. With and without the bar
  2. When to use it
  3. For everyone
  4. Props

With and without the bar

NameRows
orders1,240
customers312
The tables of a project.

Nothing is lost: every change is kept for 30 days.

Code
import { Grid, Stage, Table } from '@sypnia/ui/react';

const rows = [{ id: 1, name: 'orders', rows: '1,240' }, { id: 2, name: 'customers', rows: '312' }];
export default function Frames() {
  return (
    <Grid min="18rem" gap={6}>
      <Stage url="data.sypnia.com/tables" caption="The tables of a project." label="Tables">
        <Table label="Tables" rows={rows} rowKey={(r) => r.id} columns={[{ id: 'name', header: 'Name', cell: (r) => r.name }, { id: 'rows', header: 'Rows', cell: (r) => r.rows, numeric: true }]} />
      </Stage>
      <Stage float label="A note"><p className="sy-says sy-says--sm">Nothing is lost: every change is kept for 30 days.</p></Stage>
    </Grid>
  );
}

When to use it

Use it when

  • Showing a real screen of the product on a public page.

Do not use it when

  • Inside the app itself.

For everyone

  • It is a figure with a name; what it shows is real content, readable as such.

Props

StageTypeDefault
caption ReactNode
float boolean
label string
url string
  1. With and without the bar
  2. When to use it
  3. For everyone
  4. Props

    Search pages, sections and terms