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
エージェントに追加してもらう
インストールコマンド、使いどころ、props、デザインルールを一度にコピーできます。Claude Code、Cursor、Codex に貼り付けてください。
これは Pro ブロックです
ひとつのライセンスで、今後追加されるものも含めてすべての Pro ブロックが使えます。
買い切り $129(1 年間のアップデート付き)または月額 $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





