Skip to main content

Component Overview

Components are the building blocks of interactive experiments in HyperStudy. They provide the interface elements that participants see and interact with.

HyperStudy has two types of components:

  1. Focus Components: The main interactive element in each experiment state. Only one focus component can be active per state.
  2. Global Components: Elements that persist across multiple states, providing consistent functionality throughout the experiment.
Interactive Demos

Each component page below includes interactive demos from storybook.hyperstudy.io where you can explore configurations live.

Focus Components

Focus components are the primary content of each experiment state. When you add a state, you select a focus component for that state.

ComponentDescriptionCommon Uses
Text DisplayShows formatted text contentInstructions, stories, scenarios
ImageDisplays static imagesVisual stimuli, diagrams, photos
Synchronized VideoPlays video with precise synchronizationStimuli, demonstrations, scenarios
Multiple ChoicePresents a question with selectable optionsQuizzes, surveys, decision tasks
Text InputField for free text entryOpen questions, form fields
VAS RatingVisual analog scale for continuous ratingsSubjective ratings, evaluations
Audio RecordingRecords participant audio responsesVoice responses, think-aloud tasks
CodeDisplay syntax-highlighted codeProgramming tasks, code review
WaitingEmpty state with optional messageTransitions, synchronization points
TriggerHardware trigger send/receivefMRI sync, equipment time-locking
Likert ScaleStandard agreement/frequency scalesSurveys, questionnaires
RankingDrag-and-drop ranking of itemsPreference ordering, prioritization
Rapid RateMulti-dimensional quick ratingEmotion ratings, fast assessments

Global Components

Global components persist across multiple experiment states. Configure them once and control their visibility per state using the visibility matrix.

ComponentDescriptionCommon Uses
Video ChatReal-time audio/video communicationParticipant interactions, interviews
Text ChatText messaging between participantsText-based communication
Continuous RatingReal-time rating during stimuliMoment-by-moment evaluations
Sparse RatingTime-based rating promptsMoment-specific evaluations
Scanner Pulse RecorderRecords fMRI scanner TR pulsesfMRI hyperscanning synchronization
Gaze OverlayReal-time eye tracking visualizationGaze monitoring, calibration verification

Common Properties

All components share these configurable properties:

  • Title: Optional heading text for the component
  • Instructions: Optional guidance text for participants
  • Width/Height: Size settings (percentage or pixels)
  • Visibility: Which roles can see this component

Stimulus Display

Seven input components support showing an image alongside the response interface: Text Input, Likert Scale, VAS Rating, Multiple Choice, Ranking, Audio Recording, and Rapid Rate. Enable "Show Stimulus Image" in the component config to display a static or dynamic image in one of four layout positions (above, below, left, right). See Stimulus Display for details.

Text Formatting

All text fields in components support:

  • Variables: Insert dynamic values using {variableName} syntax
  • HTML Tags: Format text with <b>, <i>, <u>, <s>, <h1>-<h6>, <br>, <p>

See Text Component - HTML Formatting for details.