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





