Not Found

A minimal, production-ready 404 / route error component featuring floating spring-physics proximity displacement on individual glyphs, clear typography hierarchy, and accessible recovery actions.

Error 404: This page took a wrong turn.

This page took a wrong turn.

The requested page doesn't exist or may have moved.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/not-found

API Reference

PropTypeDefaultDescription
errorCodestring'404'Main error code glyphs rendered as physical interactive objects
badgeLabelstringundefinedOptional status tag displayed above the glyphs
titlestring'This page took a wrong turn.'Primary heading title
descriptionstring'The requested page doesn\'t exist or may have moved.'Descriptive secondary body copy
actionLabelstring'Go back home'Label for the primary recovery action button
onAction() => voidundefinedCallback when primary action button is clicked
secondaryActionLabelstringundefinedOptional label for the secondary action button
onSecondaryAction() => voidundefinedCallback when secondary action button is clicked
classNamestringundefinedOptional custom container CSS classes