From ba34a95a3c89b16bb1b2417cda3aaff79f306218 Mon Sep 17 00:00:00 2001 From: Roman Barlos Date: Fri, 15 Sep 2023 13:21:59 +0300 Subject: [PATCH] fix(List): custom empty placeholder --- src/components/List/README.md | 2 +- src/components/List/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/List/README.md b/src/components/List/README.md index 28b6a448c..7bdefcb24 100644 --- a/src/components/List/README.md +++ b/src/components/List/README.md @@ -243,7 +243,7 @@ Likewise, you can forward `onFocus` and `onBlur` if you need to repeat the behav | filterClassName | Class for filter input styles | `String` | | | onChangeFilter | Filter change handler (if external sorting is used). `(filter: string) => void` | `Function` | | | onFilterEnd | Function invoked after internal filtering is completed. `({items}: {items: T[]}) => void` | `Function` | | -| emptyPlaceholder | Placeholder for an empty list. | `String` | | +| emptyPlaceholder | Placeholder for an empty list. | `React.ReactNode` | | | sortable | Flag that enables list sorting. | `Boolean` | | | sortHandleAlign | Sorting indicator alignment (left or right). | `left` `right` | | | onSortEnd | Sorting event handler. `({oldIndex: number, newIndex: number}) => void` | `Function` | | diff --git a/src/components/List/types.ts b/src/components/List/types.ts index cd03e07b0..c55aa7448 100644 --- a/src/components/List/types.ts +++ b/src/components/List/types.ts @@ -15,7 +15,7 @@ export type ListProps = QAProps & { itemClassName?: string; itemsClassName?: string; filterClassName?: string; - emptyPlaceholder?: string; + emptyPlaceholder?: React.ReactNode; filterPlaceholder?: string; filter?: string; activeItemIndex?: number;