diff --git a/striker-ui/components/SelectWithLabel.tsx b/striker-ui/components/SelectWithLabel.tsx index 5552eadd..d976184b 100644 --- a/striker-ui/components/SelectWithLabel.tsx +++ b/striker-ui/components/SelectWithLabel.tsx @@ -1,4 +1,4 @@ -import { FC } from 'react'; +import { FC, ReactNode } from 'react'; import { Checkbox as MUICheckbox, FormControl as MUIFormControl, @@ -13,9 +13,12 @@ import OutlinedInputLabel, { } from './OutlinedInputLabel'; import Select, { SelectProps } from './Select'; -type SelectItem = { - displayValue?: SelectItemValueType; - value: SelectItemValueType; +type SelectItem< + ValueType = string, + DisplayValueType = ValueType | ReactNode, +> = { + displayValue?: DisplayValueType; + value: ValueType; }; type SelectWithLabelOptionalProps = {