Component Overview
Components are the building blocks of interactive experiments in the HyperStudy platform. They provide the interface elements that participants see and interact with. This guide provides an overview of all available components and their uses.
Understanding Components
HyperStudy has two types of components:
- Focus Components: The main interactive element in each experiment state. Only one focus component can be active per state.
- Global Components: Elements that persist across multiple states, providing consistent functionality throughout the experiment.
Focus Components
Focus components are the primary content of each experiment state. When you add a state to your experiment, you select a focus component for that state.
| Component | Description | Common Uses |
|---|---|---|
| Text Display | Shows formatted text content | Instructions, stories, scenarios |
| Image | Displays static images | Visual stimuli, diagrams, photos |
| Synchronized Video | Plays video with precise synchronization | Stimuli, demonstrations, scenarios |
| Multiple Choice | Presents a question with selectable options | Quizzes, surveys, decision tasks |
| Text Input | Field for free text entry | Open questions, form fields |
| VAS Rating | Visual analog scale for continuous ratings | Subjective ratings, evaluations |
| Audio Recording | Records participant audio responses | Voice responses, think-aloud tasks |
| Code | Display syntax-highlighted code | Programming tasks, code review |
| Waiting | Empty state with optional message | Transitions, synchronization points |
| Trigger | Hardware trigger send/receive | fMRI sync, equipment time-locking |
| Likert Scale | Standard agreement/frequency scales | Surveys, questionnaires |
| Ranking | Drag-and-drop ranking of items | Preference ordering, prioritization |
| Rapid Rate | Multi-dimensional quick rating | Emotion ratings, fast assessments |
Global Components
Global components persist across multiple experiment states. Configure them once and control their visibility per state.
| Component | Description | Common Uses |
|---|---|---|
| Video Chat | Real-time audio/video communication | Participant interactions, interviews |
| Text Chat | Text messaging between participants | Text-based communication |
| Continuous Rating | Real-time rating during stimuli | Moment-by-moment evaluations |
| Sparse Rating | Time-based rating prompts | Moment-specific evaluations |
| Scanner Pulse Recorder | Records fMRI scanner TR pulses | fMRI hyperscanning synchronization |
How Global Components Work
- Enable global components in the "Global Components" tab
- Configure their settings (position, appearance, behavior)
- Control visibility per state using the visibility matrix
- Global components overlay on top of focus components
Component Configuration
Each component has its own set of configurable properties, but they share some common elements:
Common Properties
- Title: Optional heading text for the component
- Instructions: Optional guidance text for participants
- Width/Height: Size settings (percentage or pixels)
- Position: Placement within the state (if supported)
- Styling: Visual appearance options
- Data Collection: Variables to store participant responses
- Visibility: Which roles can see this component
Component-Specific Properties
Each component type has unique properties related to its function:
- Text Component: Text content, formatting, font options
- Video Component: Video source, playback controls, synchronization settings
- Rating Scales: Min/max values, labels, step size, orientation
- Multiple Choice: Questions, answer options, selection type (single/multiple)
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.
Using Components
Adding Components to States
To add a focus component to a state:
- Select a state in the States panel
- In the Properties panel, find "Focus Component"
- Select a component type from the dropdown
- Configure the component properties
Configuring Global Components
To set up global components:
- Go to the "Global Components" tab
- Enable the components you want to use
- Configure their properties
- Use the matrix view to set which states show which components
Component Interactions
Components can interact with each other and with experiment variables:
- Use variables to pass data between components
- Configure component visibility based on interactions with other components
- Use component output to control experiment flow
Component Layout and Styling
Basic Layout Options
Control how components appear:
- Size: Set width and height
- Position: Top, bottom, left, right, or center
- Margins: Space around the component
- Padding: Space inside the component
- Alignment: Text and content alignment
Advanced Styling
For more control over appearance:
- Colors: Background, text, borders
- Fonts: Family, size, weight, style
- Borders: Width, style, radius
- Shadows: Box and text shadows
- Transitions: Animation effects
Use the style panel to configure these options.
Data Collection with Components
Most interactive components can capture participant responses:
- In the component properties, find "Data Collection"
- Specify a variable to store the response
- Configure what data to capture and when
For example:
- Rating scales store the selected rating value
- Multiple choice stores the selected option(s)
- Text input stores the entered text
- Video components can track viewing time and interactions
Component Best Practices
General Guidelines
- Consistency: Use similar components consistently throughout your experiment
- Simplicity: Keep components focused on a single task or purpose
- Clear Instructions: Provide clear guidance on how to use each component
- Responsiveness: Test components on different screen sizes
- Accessibility: Ensure components are usable by all participants
Component-Specific Tips
- Text: Keep text concise and scannable
- Video: Ensure videos are high quality and properly compressed
- Rating Scales: Provide clear labels and appropriate scale ranges
- Multiple Choice: Write clear, unambiguous questions and answers
- Input Fields: Validate user input when necessary
Available Components
Focus Components
- Text Display
- Image
- Synchronized Video
- Multiple Choice
- Text Input
- VAS Rating
- Audio Recording
- Code
- Waiting
- Trigger
- Likert Scale
- Ranking
- Rapid Rate