@hmlr/govuk-react-components-library
Version:
These are common component use for React applications based on GDS and govuk-frontend
22 lines (21 loc) • 590 B
TypeScript
import { ErrorMessageProps } from "../ErrorMessage/ErrorMessage.types";
import { HintProps } from "../Hint/Hint.types";
import { LabelProps } from "../Label/Label.types";
export interface Option {
reactListKey?: string | number;
children: React.ReactNode;
[key: string]: unknown;
}
export interface SelectProps {
className?: string;
"aria-describedby"?: string;
errorMessage?: ErrorMessageProps;
formGroup?: {
className?: string;
[key: string]: unknown;
};
hint?: HintProps;
id: string;
items?: Option[];
label: LabelProps;
}