Page not found block
A 404 page that says what went wrong in plain words and offers a way back.
A whole page section built from Halo components. Start from it, then change the words, data and handlers to fit the product. Keep its structure: one primary button, tokens for spacing and type, Field components in forms.
Add it to a project: npx halo-ds add not-found (saves src/blocks/NotFound.tsx). Preview: https://halodesignsystem.dev/components/blocks/not-found
import { Button, Result } from '@halo-ds/react';
import { ArrowLeft } from '@phosphor-icons/react';
export default function NotFound() {
return (
<main style={{ display: 'grid', placeItems: 'center', padding: 'var(--halo-spacing-13) var(--halo-spacing-7)' }}>
<Result
status="not-found"
title="We can't find that page"
description="It may have moved, or the link has a typo. Check the address, or head back to where you were."
actions={
<>
<Button iconLeft={<ArrowLeft />} onClick={() => window.history.back()}>Go back</Button>
<Button variant="secondary">Contact support</Button>
</>
}
/>
</main>
);
}