Not Found

A beautifully designed 404 page to guide users when content is missing.

Installation

npx scrollx-ui@latest add not-found

Usage

import NotFound from "@/components/ui/not-found";
<NotFound
  particleCount={10000}
  particleSize={4}
  animate={true}
  buttonText="Go Back"
  buttonHref="/dashboard"
  className="custom-shadow"
/>

API Reference

Not Found

A polished 404 page created to assist users when a resource is unavailable.

Props

PropertyTypeDefaultDescription
particleCountnumber12500
Total number of particles rendered in the background animation.
particleSizenumber5
Size of each particle in the animation.
animatebooleanfalse
Whether particles should animate or remain static.
imageLightstring"/images/404-lightc.png"
Image shown in light mode.
imageDarkstring"/images/404-darkc.png"
Image shown in dark mode.
buttonTextstring"Back to Home"
Label text inside the call-to-action button.
buttonHrefstring"/"
URL to navigate when the button is clicked.
classNamestring""
Additional Tailwind classes for customizing the outermost container.
onButtonClick() => voidundefined
Optional click handler function when the button is clicked.

Built withby Ahdeetai.