@rhc-shared-components/questionnaire
v2.0.1
Published
Reusable Questionnaire component supporting partner (editable) and admin (read-only + approval) views
Downloads
604
Keywords
Readme
@rhc-shared-components/questionnaire
Reusable Questionnaire component supporting partner (editable) and admin (read-only + approval) views.
Installation
npm install @rhc-shared-components/questionnaireUsage
import { Questionnaire } from "@rhc-shared-components/questionnaire";
import type { QuestionnaireConfig } from "@rhc-shared-components/questionnaire";
const config: QuestionnaireConfig = {
mode: "partner",
alias: "my-questionnaire",
uniqueEntityId: "entity-123",
showBuiltInSubmitButton: true,
setStatus: (status) => console.log(status),
};
function App() {
return <Questionnaire config={config} />;
}Development
yarn dev # Start development server
yarn build # Build the package
yarn lint # Run linter
yarn lint-fix # Auto-fix lint issues
yarn test # Run tests