import React, { DetailedHTMLProps, SelectHTMLAttributes } from "react"; import { FieldInputProps } from "../../../types"; import { useIds } from "../../../hooks/util"; import { SelectWrapper, StyledSelect } from "./Select.styles"; import { ErrorMessage, Label, Message } from "../../Fields"; import { useRenderProps } from "@hooks/useRenderProps"; type LimitedSelectProps = Omit< DetailedHTMLProps, HTMLSelectElement>, "className" | "id" | "size" | "onChange" >; export type SelectValue = string | number | readonly string[] | undefined; export interface SelectProps extends Omit, LimitedSelectProps { onChange?: (value: T) => void; } /** Select Component. Simple wrapper around native `