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'
With and without the bar
| Name | Rows |
|---|---|
| orders | 1,240 |
| customers | 312 |
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
| Stage | Type | Default |
|---|---|---|
caption | ReactNode | |
float | boolean | |
label | string | |
url | string |