Improve FilterableSelect to support optional grouping by option field

This commit is contained in:
carlosmonastyrski
2025-03-28 16:17:14 -03:00
parent 2a7679005e
commit e639f5ee49
3 changed files with 132 additions and 73 deletions
@@ -2,6 +2,7 @@ import {
ClearIndicatorProps,
components,
DropdownIndicatorProps,
GroupProps,
MultiValueRemoveProps,
OptionProps
} from "react-select";
@@ -45,3 +46,7 @@ export const Option = <T,>({ isSelected, children, ...props }: OptionProps<T>) =
</components.Option>
);
};
export const Group = <T,>(props: GroupProps<T>) => {
return <components.Group {...props} />;
};