import React, { InputHTMLAttributes, FunctionComponent } from 'react'; import { FormLabel } from '../FormLabel/FormLabel'; export interface Props extends InputHTMLAttributes { label: string; labelWidth?: number; inputWidth?: number; } const defaultProps = { labelWidth: 6, inputWidth: 12, }; const FormField: FunctionComponent = ({ label, labelWidth, inputWidth, ...inputProps }) => { return (
{label}
); }; FormField.defaultProps = defaultProps; export { FormField };