Skip to main content

NotFound

Storybook​

Go to Story

NotFoundProps​

Defined in: src/molecules/NotFound/NotFound.tsx:85

Properties​

PropertyTypeDescriptionDefined in
backPageobjectConfigures where the user should go instead. Example { name: "users list", href: "/user" }src/molecules/NotFound/NotFound.tsx:94
backPage.nameReactNode-src/molecules/NotFound/NotFound.tsx:95
backPage.hrefstring-src/molecules/NotFound/NotFound.tsx:96
entityNameReactNodeSingular name of accessed entity. Example "user"src/molecules/NotFound/NotFound.tsx:102
className?string-src/molecules/NotFound/NotFound.tsx:103

NotFoundIcon()​

function NotFoundIcon(__namedParameters): Element;

Defined in: src/molecules/NotFound/NotFound.tsx:18

Icon component for the 404 not found state.

Parameters​

ParameterType
__namedParametersOmit<ComponentProps<"div">, "children">

Returns​

Element


NotFoundContainer()​

function NotFoundContainer(__namedParameters): Element;

Defined in: src/molecules/NotFound/NotFound.tsx:34

Container component that centers and arranges not found content vertically.

Parameters​

ParameterType
__namedParametersDetailedHTMLProps<HTMLAttributes<HTMLDivElement>>

Returns​

Element


NotFoundTitle()​

function NotFoundTitle(__namedParameters): Element;

Defined in: src/molecules/NotFound/NotFound.tsx:49

Title component for the not found state. Displays the main error message.

Parameters​

ParameterType
__namedParametersDetailedHTMLProps<HTMLAttributes<HTMLHeadingElement>>

Returns​

Element


NotFoundParagraph()​

function NotFoundParagraph(__namedParameters): Element;

Defined in: src/molecules/NotFound/NotFound.tsx:64

Paragraph component for the not found state. Provides additional context and instructions to the user.

Parameters​

ParameterType
__namedParametersDetailedHTMLProps<HTMLAttributes<HTMLParagraphElement>>

Returns​

Element


NotFoundAction()​

function NotFoundAction(props): Element;

Defined in: src/molecules/NotFound/NotFound.tsx:81

Action component that provides navigation options from the not found state. Renders as a small button.

Parameters​

ParameterType
propsNotFoundActionProps

Returns​

Element


NotFound()​

function NotFound(__namedParameters): Element;

Defined in: src/molecules/NotFound/NotFound.tsx:120

A complete 404 page component for handling non-existent resources.

Ensures consistent error messaging and clear navigation options.

Parameters​

ParameterType
__namedParametersNotFoundProps

Returns​

Element

Example​

// Basic usage
<NotFound
entityName="user"
backPage={{ name: "users list", href: "/users" }}
/>