diff --git a/packages/grafana-ui/src/components/Select/types.ts b/packages/grafana-ui/src/components/Select/types.ts index 41051f7cd05..9ab7b930664 100644 --- a/packages/grafana-ui/src/components/Select/types.ts +++ b/packages/grafana-ui/src/components/Select/types.ts @@ -37,7 +37,7 @@ export interface SelectCommonProps { filterOption?: (option: SelectableValue, searchQuery: string) => boolean; formatOptionLabel?: (item: SelectableValue, formatOptionMeta: FormatOptionLabelMeta) => React.ReactNode; /** Function for formatting the text that is displayed when creating a new value*/ - formatCreateLabel?: (input: string) => string; + formatCreateLabel?: (input: string) => React.ReactNode; getOptionLabel?: (item: SelectableValue) => React.ReactNode; getOptionValue?: (item: SelectableValue) => T | undefined; hideSelectedOptions?: boolean;