diff --git a/packages/react-ui/src/components/atoms/SelectField.d.ts b/packages/react-ui/src/components/atoms/SelectField.d.ts index f4ed342a1..f0b1b91ca 100644 --- a/packages/react-ui/src/components/atoms/SelectField.d.ts +++ b/packages/react-ui/src/components/atoms/SelectField.d.ts @@ -1,14 +1,14 @@ import { TextFieldProps } from '@mui/material/TextField'; +type SelectFieldItem = { + label: string; + value: string | number; +}; + export type SelectFieldProps = TextFieldProps & { - items: [ - { - label: string; - value: string | number; - } - ]; + items: SelectFieldItem[]; multiple?: boolean; - placeholder: string; + placeholder?: React.ReactNode; size?: 'small' | 'medium'; };