Heroes & Sections
Error / 404 State Section
Centred full-page error state with a large code, message and primary/secondary actions.
$ velocityx add error-state-section Built for astro.
Full docs for Error / 404 State Section →
Needs a licence key —
subscribe here, then
velocityx loginonce.
This page packed up and left
The page you're looking for doesn't exist, or it moved somewhere we haven't linked yet.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| code | string | No | '404' | |
| title | string | Yes | ||
| sub | string | No | ||
| headingLevel | 1 | 2 | 3 | 4 | 5 | 6 | Yes | ||
| primaryCta | { label: string; href: string } | No | ||
| secondaryCta | { label: string; href: string } | No | ||
| className | string | No | '' |
File this creates
The CLI writes this path into your project, relative to its root — nothing else moves.
components/velocity/error-state-section/ErrorStateSection.astro Using the Error / 404 State Section component
Install it with velocityx add error-state-section.
The CLI writes the source straight into your project — no runtime dependency, no registry
lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.
Related components
More from Heroes & Sections.
Copy column paired with a one or two column checklist of benefits.
astroAccessible comparison table with a highlighted column and horizontal scroll on mobile.
astroFull-bleed brand-gradient CTA banner, the project's single-use-per-page gradient moment.
astroCentred call-to-action card with one or two buttons.
astro