projex-ui-dev
Version:
Projex' user interface
18 lines (17 loc) • 555 B
TypeScript
import React from 'react';
import { FormItemProps } from '../FormItem/FormItem';
type Option = {
value: string;
text: string;
};
type Props = Omit<FormItemProps, 'children'> & {
name?: string;
options: Option[];
displayNullOption?: boolean;
nullOptionText?: string;
large?: boolean;
value: string | undefined;
setValue: (value: string) => void;
};
declare const Select: ({ label, disabled, name, options, displayNullOption, nullOptionText, large, value, setValue, }: Props) => React.JSX.Element;
export default Select;