Interactive components create answers, submissions, bookings, payments, timers, and step-by-step flows.
Use Question.Select, Question.Open, Question.Match, Question.Fill, Question.Sort, and Question.Voice for quiz-style interactions.
Which syntax adds a Docmino component?
What should component IDs be?
Match each component to its use.
Put the publishing flow in order.
Say the word Docmino.
<Question.Select
id="interactive-question-select"
prompt="Which syntax adds a Docmino component?"
options={["JSX", "CSV", "SQL"]}
answer="JSX"
/>
<Question.Open
id="interactive-question-open"
prompt="What should component IDs be?"
answer="stable"
/>
<Question.Match
id="interactive-question-match"
prompt="Match each component to its use."
left={["Poll", "Timer"]}
right={["Collects a choice", "Tracks time"]}
/>
<Question.Fill
id="interactive-question-fill"
prompt="Complete the sentence."
text="Use [blank] props to reveal content based on answers."
answer={["conditional"]}
/>
<Question.Sort
id="interactive-question-sort"
prompt="Put the publishing flow in order."
items={["Validate", "Publish", "Spot check"]}
answer={["Validate", "Publish", "Spot check"]}
/>
<Question.Voice
id="interactive-question-voice"
prompt="Say the word Docmino."
language="en"
answer="Docmino"
/>
Use Poll when there is no correct answer.
<Poll
id="interactive-poll"
prompt="What should this guide cover next?"
options={["Examples", "Best practices", "Troubleshooting"]}
multiple
/>
Use Timer for timed activities.
<Timer
id="interactive-timer"
label="Read the prompt"
seconds={60}
/>
Use Booking for appointment selection.
<Booking
id="interactive-booking"
label="Book a session"
duration={30}
timezone="America/New_York"
schedule={{ monday: [{ start: "09:00", end: "12:00" }] }}
/>
Use Payment when a doc needs to collect payment.
<Payment
id="interactive-payment"
label="Pay deposit"
price="$25.00"
amount={2500}
currency="USD"
/>
Use Steps for guided flows and Submit to persist the completed form.
Review the details, then submit.
<Steps>
<Steps.Item id="interactive-step-one" label="Details">
<Input.Text
id="interactive-step-name"
name="name"
label="Name"
value=""
/>
</Steps.Item>
<Steps.Item id="interactive-step-two" label="Confirm" previous="interactive-step-one">
Review the details, then submit.
<Submit id="interactive-submit" label="Submit guide" submit="default" />
</Steps.Item>
</Steps>