Skip to main content

NotFound

Storybook

Go to Story

NotFoundProps

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

Properties

PropertyTypeDescriptionDefined in
backPageobjectConfigures where the user should go instead. Example { name: "users list", href: "/user" }src/molecules/NotFound/NotFound.tsx:84
backPage.nameReactNode-src/molecules/NotFound/NotFound.tsx:85
backPage.hrefstring-src/molecules/NotFound/NotFound.tsx:86
entityNameReactNodeSingular name of accessed entity. Example "user"src/molecules/NotFound/NotFound.tsx:92
className?string-src/molecules/NotFound/NotFound.tsx:93

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:33

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:47

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:58

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:71

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:110

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" }}
/>