空状态

New

带线稿动画插图的空状态区块:信封收件箱清零、悬停弹开抽屉的档案柜、来回扫描的搜索放大镜;统一「插图 + 短文案 + 主操作」结构。

收件箱清零

inbox.tsx

线稿信封开盖,最后一封信轻轻抬出,弹簧对勾徽章落定,随后缓慢浮动待机。

Inbox zero

You're all caught up. New replies will land here.

安装

$ bunx --bun shadcn add @uilab/empty-state-inbox

API 参考

title?
string
Inbox zero
message?
string
You're all caught up. New replies will land here.
actionLabel?
string
Compose
onAction?
(() => void)
className?
string

档案柜抽屉

archive.tsx

等距视角档案柜,悬停或聚焦时抽屉弹簧滑开,纸页从中探出。

Nothing archived yet

Records you file away will show up here.

安装

$ bunx --bun shadcn add @uilab/empty-state-archive

API 参考

title?
string
Nothing archived yet
message?
string
Records you file away will show up here.
actionLabel?
string
Add record
onAction?
(() => void)
className?
string

Keep in mind

Some components on this site are inspired by or recreated from existing work across the web. I'm not here to take credit; just to learn, experiment, and sometimes push things a bit further. If something looks familiar and I forgot to mention you, reach out and I'll fix that right away.