Pro点按
Restock Notify
Product panel whose action changes with the size you pick: in-stock sizes show Add to bag (with an honest few-left line when stock is low), sold-out sizes are struck through and turn the same action area into an email field with Notify me and the expected restock date when you know it.
适合使用的场景
- Product pages for drops and limited runs where some sizes or colours sell out
- Capturing back-in-stock demand per variant instead of one generic waitlist
- Apparel or footwear stores that want the sold-out state to stay useful instead of a disabled button
注意事项
- Only pass restock when you actually know it; the line is omitted otherwise, never guess a date
- position is optional; leave it out if your list cannot tell people where they are in line
- onNotify should be idempotent per variant and email; the also-notify link reuses the same address
- Low stock text uses lowStockAt (default 3); do not set it high to fake scarcity
交给你的 agent 安装
一次复制就包含安装命令、使用时机、props 与设计规则。粘贴到 Claude Code、Cursor 或 Codex 即可。
这是 Pro 区块
一份许可即可解锁所有 Pro 区块,包括以后新增的。
一次付清 $129 含一年更新,或每月 $19。自己的项目和客户项目都能用,数量不限;已经装好的区块一直是你的。
使用你的许可安装
- 1. 把 SunUI Pro registry 添加到
components.json。components.json{ "registries": { "@sunui-pro": { "url": "https://sunui.synvize.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${SUNUI_LICENSE_KEY}" } } } } - 2. 把许可密钥写入
.env.local。$ SUNUI_LICENSE_KEY=your-license-key - 3. 安装区块。
$ npx shadcn@latest add @sunui-pro/restock-notify
相似区块
- Pro
- Pro
- Pro





