UNPKG

@actinc/dls

Version:

Design Language System (DLS) for ACT & Encoura front-end projects.

40 lines 1.36 kB
/** * Copyright (c) ACT, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @prettier */ import { FormControlProps, SelectProps } from '@mui/material'; import { ReactElement } from 'react'; import { InputLabelProps } from "../InputLabel"; export interface SelectOption { disabled?: boolean; label: string | null; value: number | string; } export type FormSelectProps = SelectProps & { errorMessage?: string; formControlProps?: FormControlProps; helpText?: string; label: string; labelProps?: InputLabelProps; options?: SelectOption[]; placeholder?: string; placeholderIsDisabled?: boolean; }; export declare function FormSelect({ id, disabled, error, errorMessage, formControlProps, fullWidth, helpText, label, labelProps, options, placeholder, placeholderIsDisabled, required, ...selectProps }: FormSelectProps): ReactElement<FormSelectProps>; export declare namespace FormSelect { var defaultProps: { errorMessage: undefined; formControlProps: undefined; helpText: undefined; labelProps: undefined; options: never[]; placeholder: undefined; placeholderIsDisabled: undefined; }; } export default FormSelect; //# sourceMappingURL=index.d.ts.map