Skip to content

Framed card

404 page framed in a rounded card.

Usage

Usage
import { NotFoundCard } from '@/components/blocks/not-found-02'


<NotFoundCard />


// Swap in your own content
<NotFoundCard
  eyebrow="Not found"
  title="We lost this one"
  description="The page you are after has moved or no longer exists."
  primaryAction={{ label: 'Go to dashboard', href: '/dashboard' }}
  secondaryAction={{ label: 'Contact support', href: '/support' }}
/>

Install

pnpm dlx shadcn@latest add @pastaui-pro/not-found-02

Source

Props

Framed card props
PropTypeDefaultDescription
codestring= '404'Error code shown at the start of the eyebrow.
eyebrowstring= 'Page missing'Short label shown after the code in the eyebrow.
titlestring= 'Well, this is awkward'Main headline, rendered as the page h1.
descriptionstring= Short friendly noteSupporting text under the headline.
primaryActionNotFoundCardAction= { label: 'Head back home', href: '/' }Label and href for the blue pill button.
secondaryActionNotFoundCardAction= undefinedOptional quieter link shown beside the button.
classNamestring= undefinedExtra classes for the outer section, e.g. a fixed min height.