Eidetic

AI Response Cards

AI
Results

Multiple response options carousel with swipeable cards, tone variants (professional, casual, creative, concise, detailed), and confidence scores. Lets users choose the best AI response for their needs.

Preview - Carousel Variant

Swipeable carousel with navigation

Professional

1 of 4

Here is a professional response tailored to your business needs. This approach focuses on clear communication and measurable outcomes.

BusinessFormal

Stack Variant

All responses visible in a vertical stack

Professional

90%

This is the recommended approach based on industry best practices and your specific requirements.

Was this helpful?

Casual

85%

Here's an alternative approach that might work better for your use case.

Was this helpful?

Grid Variant

2-column grid layout for quick comparison

Without Navigation

Minimal carousel without arrows

Professional

1 of 4

Here is a professional response tailored to your business needs. This approach focuses on clear communication and measurable outcomes.

BusinessFormal

Props

AIResponseCards component API reference

PropTypeDefaultDescription
responses*AIResponseOption[]Array of response options
selectedIdstringCurrently selected response ID
onSelect(responseId: string) => voidCallback when a response is selected
onCopy(responseId: string) => voidCallback when user copies a response
onRegenerate() => voidCallback when user wants to regenerate
onFeedback(responseId: string, positive: boolean) => voidCallback for feedback (thumbs up/down)
showNavigationbooleantrueShow navigation arrows
showIndicatorsbooleantrueShow response indicators (dots)
enableSwipebooleantrueEnable swipe navigation
autoSelectbooleanfalseAuto-select first response
variant'carousel' | 'stack' | 'grid''carousel'Display variant
classNamestringAdditional CSS classes

AIResponseOption Type

PropTypeDefaultDescription
id*stringUnique identifier
content*stringResponse content
tone'professional' | 'casual' | 'creative' | 'concise' | 'detailed'Tone/style of this response
labelstringCustom label for this option
confidencenumberConfidence score (0-100)
iconLucideIconIcon for this response type
colorstringColor accent classes
tagsstring[]Tags or categories

Usage

Import and implementation example

import { AIResponseCards } from '@/blocks/ai-transparency/ai-response-cards'
import { useState } from 'react'
export default function Example() {
const [selected, setSelected] = useState<string>()
const responses = [
{
id: '1',
content: 'Professional response with formal tone...',
tone: 'professional',
confidence: 92,
tags: ['Business', 'Formal'],
},
{
id: '2',
content: 'Casual, friendly response...',
tone: 'casual',
confidence: 88,
},
{
id: '3',
content: 'Brief, to-the-point answer',
tone: 'concise',
confidence: 95,
},
]
return (
<AIResponseCards
responses={responses}
selectedId={selected}
onSelect={setSelected}
variant="carousel"
onCopy={(id) => {
console.log('Copied response:', id)
}}
onFeedback={(id, positive) => {
console.log(`Feedback for ${id}: ${positive ? 'positive' : 'negative'}`)
}}
onRegenerate={() => {
console.log('Generate new responses')
}}
/>
)
}

Built With

1 component

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

Features

Built-in functionality

  • Three display variants: Carousel, stack, or grid layout
  • Five tone options: Professional, casual, creative, concise, detailed
  • Swipe navigation: Touch-friendly swipe on carousel variant
  • Confidence scores: Show AI confidence for each response
  • Copy to clipboard: One-click copy with visual feedback
  • Thumbs feedback: Rate responses with thumbs up/down
  • Regenerate option: Request new response variations
  • Tag system: Categorize responses with custom tags
  • Selection state: Clear visual indication of selected response
  • Dark mode support: Full dark mode with proper contrast

Response Tone Options

Built-in tone configurations

Professional

Formal, business-appropriate tone. Best for work-related content, reports, and formal communication.

Casual

Friendly, conversational tone. Great for approachable content and everyday communication.

Creative

Imaginative, out-of-the-box thinking. Ideal for brainstorming and innovative solutions.

Concise

Brief, direct answers. Perfect when you need quick, to-the-point information.

Detailed

Comprehensive, in-depth explanations. Best for learning and understanding complex topics.

Accessibility

ARIA support and keyboard navigation

ARIA Attributes

Response cards are keyboard accessibleCopy and feedback buttons have clear labelsSelected state is visually distinct

Keyboard Navigation

KeyAction
TabNavigate between responses and actions
Arrow Left/RightNavigate carousel (carousel variant)
Enter / SpaceSelect response or activate button

Notes

  • Confidence scores should be announced to screen readers
  • Copy action should provide confirmation feedback
  • Tone indicators help users understand response style
  • Tags provide additional context for each response