import React, { BaseSyntheticEvent } from 'react'; interface LabelledInputProps { id: string, type?: 'text' | 'date' | 'password' | 'url' | 'time' | 'tel' | 'search' | 'number' | 'month' | 'email' | 'datetime-local' | 'week', label: string, value: any, onChange: (event: BaseSyntheticEvent) => void } /** * This component shows input field with its label, styled */ export const LabelledInput: React.FC = ({ id, type, label, value, onChange }) => { return (
); }