Response Area Template and Testing Sandbox¶
Template Repository¶
Response Area Template Repository can be used to create and test new response areas.
Template repository comes integrated with Storybook module, via a custom addon.
Getting started¶
-
To start, clone the repository by clicking
Use this template. -
Once cloned, navigate to the
componentsfolder, containing the following files:-
index.tscontains theMyResponseAreaTubclass. This class must extend theResponseAreaTub, and contain two fields:InputComponentandWizardComponent. -
Input.component.tsxcontains the underlying function implementingInputComponentinMyResponseAreaTub. -
Wizard.component.tsxcontains the underlying function implementingWizardComponentinMyResponseAreaTub.
-
-
Implement your response area by modifying the files listed above while not breaking the described requirements.
Testing¶
To test a new response area, run the following commands:
-
Install the required dependencies:
$ yarn install -
Run the Storybook application:
$ bash start_storybook