northants-design-system
Version:
Design system for West & North Northamptonshire Councils, two unitary councils encompassing Wellingborough, Corby, Daventry, East Northants, Kettering, Northampton, Northamptonshire County and South Northants.
18 lines (17 loc) • 410 B
TypeScript
export interface QuestionAndAnswerProps {
/**
* What is this?
*/
questionText: string;
hintText?: string | null;
answers: AnswerProps[];
category?: string | null;
icon?: string | null;
onSubmit?: (answer: boolean, index: number) => void;
index?: number;
}
export interface AnswerProps {
answerText: string;
correctAnswer: boolean;
answerSummary: string;
}