Select

Confirm Change Select

A select with staged confirmation for value changes: picking a new option does not apply it right away — it opens a panel with the old and new values and "Confirm" / "Cancel" buttons.

React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.

What you can change

  • the field caption through label
  • the set of options through options
  • the consequence warning text through warningText

A link for your AI agent: preview, code and instructions.

Preview

1440pxHost theme
Confirm Change Select — A select with staged confirmation for value changes: picking a new option does not apply it right away — it opens a panel with the old and new values and "Confirm" / "Cancel" buttons.

Use it with AI

  1. 1. Copy the link.
  2. 2. Write to your agent in your own words and drop the link into the sentence.
  3. 3. The agent opens the link and installs the component from the registry.
AI
1Pick it here

put this on the home page as the hero:

https://vibeui.club/c/select-032?lang=en&theme=dark

2Paste into the chat
3Get it in your project

Not sure where to paste it? Step-by-step guide

Show the full instructions

What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.

Loading…

How to use

<Select032
  label="Publication status"
  defaultValue="published"
/>

A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.

Settings

Label
label · default: Publication status
Value
defaultValue · default: draft
Accent
accent · default: theme colour
Background
background · default: theme colour

FAQ

How do I add Confirm Change Select with Cursor or Claude Code?
Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
What does Confirm Change Select depend on?
No npm packages beyond React and Tailwind CSS.
What can I change in Confirm Change Select?
Adapt: the field caption through label; the set of options through options; the consequence warning text through warningText. Keep as installed: the local --vibeui-select-032-* palette — do not swap it for your theme tokens; the deferred value application: setValue is only called from the "Confirm" button, never from the select's change handler; role="alertdialog" and aria-label on the confirmation panel — otherwise a screen reader never announces it as requiring a decision.
Is Confirm Change Select free?
Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.

For developers

npx shadcn@latest add https://vibeui.club/r/pro/select-032.json

This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options

Technical notes

Client component: value holds the applied value, and pending the one proposed but not yet confirmed. The select always shows pending ?? value, so visually it reacts to the choice at once rather than only after confirmation. A change in the select calls handleSelectChange: if the new value equals value, the panel does not open; otherwise it goes into pending and a panel with role="alertdialog" is drawn. useEffect moves focus to the "Confirm" button when pending appears. confirm() moves pending into value and returns focus to the select, while cancel() and Escape in handleKeyDown discard pending without changing value. The palette lives in --vibeui-select-032-*.

Tags

  • select
  • confirm
  • dialog
  • form
Component source

The same file your agent installs. Here in case you would rather copy it by hand.

Loading…