Syed Hasnain

Background Inbox

Backgrounds 26

About

Work still running elsewhere and completed results waiting to be collected.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Background Inbox to your project and fits it to your theme.

Code

How Background Inbox is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { useState } from 'react'
import BackgroundInbox from '@/components/ui/background-inbox'

export default function Demo() {
  const [hiddenIds, setHiddenIds] = useState<string[]>([])
  const items = [
    {
      id: 'audit',
      title: 'Registry audit complete',
      detail: '8 new product patterns are ready to review.',
      status: 'ready' as const,
      time: 'Just now',
    },
    {
      id: 'visual',
      title: 'Visual regression pass',
      detail: 'Comparing 116 documentation routes.',
      status: 'running' as const,
      time: '2m elapsed',
    },
    {
      id: 'report',
      title: 'Market report',
      detail: 'Waiting for two remaining sources.',
      status: 'waiting' as const,
      time: 'Queued 8m',
    },
  ].filter((item) => !hiddenIds.includes(item.id))

  return (
    <BackgroundInbox
      className="w-full max-w-lg"
      items={items}
      onDismiss={(id) => setHiddenIds((current) => [...current, id])}
    />
  )
}

Dependencies

More by Syed Hasnain

View all
  • Color Picker

    Color Picker

    111
  • Cost Meter

    Cost Meter

    34
  • Message Scroller

    Message Scroller

    28
  • Quota Banner

    Quota Banner

    25
  • Commit

    Commit

    23
  • Attachments

    Attachments

    22
  • Image Generation Loader

    Image Generation Loader

    20
  • Approval Card

    Approval Card

    19

More in Backgrounds

View all
  • Elegant Dark Pattern

    Elegant Dark Pattern

    846
  • Light theme Tailwind CSS Background Snippet

    Light theme Tailwind CSS Background Snippet

    229
  • Tailwind CSS Background Snippet

    Tailwind CSS Background Snippet

    552
  • Gradient Backgrounds

    Gradient Backgrounds

    23
  • Background snippets

    Background snippets

    110
  • Background Components

    Background Components

    45
  • Jade Sky

    Jade Sky

    93
  • Gradient Blur Bg

    Gradient Blur Bg

    51

Explore more

Part of Pasta UI — browse the full library on 21st.dev.