ProPress
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.
When to use 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
Watch out
- 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
Let your agent add it
One copy holds the install command, when to use it, the props and the design rules. Paste it into Claude Code, Cursor or Codex.
This is a Pro block
One license unlocks every Pro block, now and in the future.
One-time $129 with a year of updates, or $19 a month. Use it in unlimited personal and client projects; installed blocks stay yours.
Install with your license
- 1. Add the SunUI Pro registry to
components.json.components.json{ "registries": { "@sunui-pro": { "url": "https://sunui.synvize.com/r/pro/{name}.json", "headers": { "Authorization": "Bearer ${SUNUI_LICENSE_KEY}" } } } } - 2. Put your license key in
.env.local.$ SUNUI_LICENSE_KEY=your-license-key - 3. Install the block.
$ npx shadcn@latest add @sunui-pro/restock-notify
Similar blocks
- Pro
- Pro
- Pro





