Eidetic

AI Follow-up Clarification

AI
Wayfinder

Component for requesting additional information from users when a prompt is ambiguous or incomplete. Supports pre-defined options and free-text input with card, inline, and banner variants.

Card Variant

Full card with options and free-text input

Clarification needed

I found multiple angles to approach your question

What kind of information are you looking for about this laptop?

or type your own

Simple Options

Card with options only, no free text

Clarification needed

Which format would you like the report in?

Banner Variant

Horizontal banner for embedded clarifications

Which time period should I analyze?

Your query could apply to different date ranges

Inline Variant

Minimal inline clarification with chips

Did you mean the Python library or the programming concept?

Props

AIFollowUpClarification component API reference

PropTypeDefaultDescription
question*stringThe clarification question from the AI
optionsClarificationOption[]Pre-defined options the user can pick
allowFreeTextbooleantrueAllow free-text response input
placeholderstring'Type your answer...'Placeholder for free-text input
variant'card' | 'inline' | 'banner''card'Display variant
contextstringContext about what the AI is trying to do
optionalbooleanfalseWhether the clarification can be skipped
onSelect(optionId: string) => voidCallback when user selects an option
onSubmit(text: string) => voidCallback when user submits free-text
onDismiss() => voidCallback when user dismisses/skips

Usage

Import and implementation example

import { AIFollowUpClarification } from '@/blocks/ai-conversation/ai-follow-up-clarification'
<AIFollowUpClarification
question="What kind of analysis would you like?"
options={[
{ id: '1', label: 'Statistical', description: 'Numbers and trends' },
{ id: '2', label: 'Qualitative', description: 'Themes and patterns' },
]}
onSelect={(id) => handleSelect(id)}
onSubmit={(text) => handleFreeText(text)}
optional
onDismiss={() => setDismissed(true)}
/>

Built With

1 component

This block uses the following UI components from the design system:

Features

Built-in functionality

  • Three variants: Card, inline, and banner display modes
  • Pre-defined options: Selectable options with icons and descriptions
  • Free-text input: Optional text input for custom answers
  • Skippable: Optional clarifications can be dismissed
  • Keyboard support: Enter to submit free-text input
  • Context display: Show why clarification is needed

Accessibility

Accessibility considerations

ARIA Attributes

Option selection state conveyed through visual and color changes

Keyboard Navigation

KeyAction
TabNavigate between options and input
EnterSubmit free-text or activate focused option

Notes

  • Selected state uses both color and ring indicator
  • Dismiss button clearly labeled