NotFound
The thing asked for does not exist (any more): a deleted table, an old link. It says what was looked for and offers the way back.
import { NotFound } from '@sypnia/ui/react'
On this page
A deleted table
The table old_orders does not exist
It was deleted on 12 November by Ana Ruiz. Its last backup is kept for 7 days.
Code
import { NotFound, Panel } from '@sypnia/ui/react';
// Inside a page, when the thing in the address no longer exists.
export default function Missing() {
return <Panel><NotFound what="The table old_orders" backHref="#tables" backLabel="All tables">It was deleted on 12 November by Ana Ruiz. Its last backup is kept for 7 days.</NotFound></Panel>;
} When to use it
Use it when
- A detail page whose thing was deleted or never existed.
- Say what happened to it when you know.
Do not use it when
- A whole site page that does not exist: use the NotFoundPage pattern.
For everyone
- The title says what does not exist; the way back is a link.
Props
| NotFound | Type | Default |
|---|---|---|
whatrequiredWhat was looked for, as the start of a sentence: «The table orders». | string | |
backHref | string | |
backLabel | string |