Components / AI components / Forms & generated UI
AI formsExperimental alpha

ClarificationRequest

Resolve uncertainty with a focused question.

ClarificationRequest preview

Which environment should I use?

Interactions use local sample data.

Usage and props

Validate the answer on the host and acknowledge receipt.

Supported inputs

This is the public signature used by this example. Open Code to see how the values and callbacks fit together.

question · value · onValueChange · onSubmit · choices? · state?
How state and callbacks work

These are the main props for the example. The package's TypeScript declarations include the full API.

Customize and use with a keyboard