Select: fix type of `formatCreateLabel` prop (#82138)

fix type of formatCreateLabel prop of Select
pull/82161/head
mikkancso 1 year ago committed by GitHub
parent 35e96d6b04
commit 7814c817b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      packages/grafana-ui/src/components/Select/types.ts

@ -37,7 +37,7 @@ export interface SelectCommonProps<T> {
filterOption?: (option: SelectableValue<T>, searchQuery: string) => boolean;
formatOptionLabel?: (item: SelectableValue<T>, formatOptionMeta: FormatOptionLabelMeta<T>) => 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<T>) => React.ReactNode;
getOptionValue?: (item: SelectableValue<T>) => T | undefined;
hideSelectedOptions?: boolean;

Loading…
Cancel
Save