Skip to content

Commit

Permalink
SelectField.d.ts - fix typings
Browse files Browse the repository at this point in the history
  • Loading branch information
zbigg committed May 8, 2023
1 parent af53458 commit 1792ee1
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/react-ui/src/components/atoms/SelectField.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { TextFieldProps } from '@mui/material/TextField';

export type SelectFieldProps = TextFieldProps & {
items: [
{
label: string;
value: string | number;
}
];
type SelectFieldItem = {
label: string;
value: string | number;
};

export type SelectFieldProps = Omit<TextFieldProps, 'placeholder'> & {
items: SelectFieldItem[];
multiple?: boolean;
placeholder: string;
placeholder?: React.ReactNode;
size?: 'small' | 'medium';
};

Expand Down

0 comments on commit 1792ee1

Please sign in to comment.