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 2ec6ffa
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 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';

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';
};

Expand Down

0 comments on commit 2ec6ffa

Please sign in to comment.