Eidetic

AI Paginated Prompt

AI
Authoring
Block

Step-by-step prompt wizard that breaks complex prompts into manageable steps with progress tracking and navigation.

Card Variant

Full card with step indicator and navigation

Content Generator Wizard

Step 1 of 3

Content

What do you want to create?

*

Inline Variant

Compact inline layout

Step 1: Content
*

Minimal Variant

Streamlined step-through experience

1/3

Content

What do you want to create?

*

Props

Component API reference

PropTypeDefaultDescription
title*stringTitle of the wizard
steps*PromptStep[]Steps of the prompt wizard
variant'card' | 'inline' | 'minimal''card'Display variant
onComplete(values: Record<string, string>) => voidCallback when all steps completed
onStepChange(stepIndex: number) => voidCallback on each step change
loadingbooleanfalseWhether final submission is loading
submitLabelstring'Generate'Submit button text

Usage

Import and examples

import { AIPaginatedPrompt } from '@/blocks/ai-conversation/ai-paginated-prompt'
<AIPaginatedPrompt
title="Content Wizard"
steps={[
{
id: 'topic',
title: 'Topic',
fields: [{ id: 'topic', label: 'Topic', type: 'text', required: true }],
},
{
id: 'style',
title: 'Style',
fields: [{ id: 'tone', label: 'Tone', type: 'radio', options: ['Casual', 'Formal'] }],
},
]}
onComplete={(values) => console.log(values)}
/>

Built With

1 component

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

Features

Built-in functionality

  • Step navigation: Back/next navigation with clickable step indicators
  • Per-step validation: Required field validation before advancing
  • Step icons: Custom icons per step via Lucide icons
  • Progress tracking: Visual step completion indicators
  • Three variants: Card, inline, and minimal display modes
  • Dark mode: Full dark mode support

Accessibility

Accessibility considerations

ARIA Attributes

Step indicators are focusable and clickableCurrent step announced via text

Keyboard Navigation

KeyAction
TabNavigate between fields and buttons
EnterAdvance to next step or submit

Notes

  • Step completion shown via check icon
  • Disabled navigation when required fields missing