Componentdata1.12 KB gzipZero dependencies
Inbox List
Email inbox list: unread dots, senders, stars, subject previews.
Preview
Live Preview
Installation
Tokens guide →Add to your project via CLI (zero dependencies, code you own):
npx bigbullui add inbox-listOr install the full npm package:
npm install bigbulluiUsage
tsx3 lines
import { InboxList } from "@/components/ui/inbox-list"; <InboxList />Source code
inbox-list.tsx + 1 helperZero 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
| Prop | Type | Description |
|---|---|---|
| items | InboxItem[] | Structured list of items rendered by the component. (Default: []) |
| onSelect | (id: string) => void | Callback invoked on select. |