refactor radio and multi select autocomplete

This commit is contained in:
Alex Holliday committed 2026-08-05 11:44:47 -07:00
1 parent 6e1e5dd1a5
commit c5ef61e64c
5 files changed
+199 -267

No files matched your search

@@ -15,6 +15,9 @@ type AutoCompleteInputProps = Omit<
fieldLabel?: string;
required?: boolean;
renderOptionContent?: (option: any) => React.ReactNode;
placeholder?: string;
error?: boolean;
helperText?: string;
};
export const AutoCompleteInput = ({
@@ -22,6 +25,9 @@ export const AutoCompleteInput = ({
required,
renderInput,
renderOptionContent,
placeholder,
error,
helperText,
...props
}: AutoCompleteInputProps) => {
const theme = useTheme();
@@ -30,7 +36,9 @@ export const AutoCompleteInput = ({
const defaultRenderInput = (params: any) => (
<TextField
{...params}
placeholder="Type to search"
placeholder={placeholder ?? "Type to search"}
error={error}
helperText={helperText}
/>
);