spartan-ui
Version:
React component library that focusses on getting the basics right leaving the design up to you
19 lines (18 loc) • 506 B
TypeScript
import { FunctionComponent, ReactNode } from 'react';
import { CommonProps } from '../../types';
interface RenderProps {
ids: object;
inputProps: object;
labelProps: object;
}
interface FieldProps extends CommonProps {
children: (props: RenderProps) => ReactNode;
name: string;
error?: boolean;
info?: boolean;
required?: boolean;
optional?: boolean;
optionList: boolean;
}
declare const Field: FunctionComponent<FieldProps>;
export default Field;