Skip to content

Commit

Permalink
fix(List): custom empty placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkGenius committed Sep 15, 2023
1 parent 096d404 commit ba34a95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/List/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` | |
Expand Down
2 changes: 1 addition & 1 deletion src/components/List/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export type ListProps<T = unknown> = QAProps & {
itemClassName?: string;
itemsClassName?: string;
filterClassName?: string;
emptyPlaceholder?: string;
emptyPlaceholder?: React.ReactNode;
filterPlaceholder?: string;
filter?: string;
activeItemIndex?: number;
Expand Down

0 comments on commit ba34a95

Please sign in to comment.