NotFound
Lo que se buscó no existe (o ya no): una tabla borrada, un enlace viejo. Dice qué se buscaba y ofrece el camino de vuelta.
import { NotFound } from '@sypnia/ui/react'
En esta página
Una tabla borrada
The table old_orders no existe
It was deleted on 12 November by Ana Ruiz. Its last backup is kept for 7 days.
Código
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>;
} Cuándo usarlo
Úsalo cuando
- Una página de detalle cuya cosa se borró o nunca existió.
- Di qué le pasó cuando lo sepas.
No lo uses cuando
- Una página entera del sitio que no existe: usa el patrón NotFoundPage.
Para todos
- El título dice qué no existe; el camino de vuelta es un enlace.
Props
| NotFound | Tipo | Por defecto |
|---|---|---|
whatobligatorioWhat was looked for, as the start of a sentence: «The table orders». | string | |
backHref | string | |
backLabel | string |