Componentdata1.12 KB gzipZero dependencies

Inbox List

Email inbox list: unread dots, senders, stars, subject previews.

Preview

Live Preview
Open ↗

Installation

Tokens guide →

Add to your project via CLI (zero dependencies, code you own):

npx bigbullui add inbox-list

Or install the full npm package:

npm install bigbullui

Usage

tsx3 lines
import { InboxList } from "@/components/ui/inbox-list"; <InboxList />

Source code

inbox-list.tsx + 1 helper

Zero third-party dependencies (2 local files shown in tabs below).

tsxinbox-list.tsx84 lines
"use client"; import * as React from "react";import { cn } from "./lib/utils"; export interface InboxItem {  id: string;  from: string;  initials: string;  subject: string;  preview: string;  time: string;  unread?: boolean;  starred?: boolean;} export interface InboxListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onSelect"> {  items: InboxItem[];

Props

PropTypeDescription
itemsInboxItem[]Structured list of items rendered by the component. (Default: [])
onSelect(id: string) => voidCallback invoked on select.