Skip to content

Conversation

@psatala-box
Copy link
Contributor

@psatala-box psatala-box commented Feb 21, 2025

This PR adds noItemsRenderer prop to ContentExplorerModalContainer. When this prop is passed, it will be used instead of the default value. noItemsRenderer will only be rendered when items array is empty. This will be useful for specifying custom empty states.

This implements an idea suggested in #3241.

Here is an example:

Screenshot 2025-02-21 at 18 38 52

To recreate this example, add the following line of code to examples/src/ContentExplorerMultiSelectModalContainerExamples.js:

noItemsRenderer={() => <p>This is a no items renderer</p>}

@psatala-box psatala-box requested a review from a team as a code owner February 21, 2025 17:38
@mergify mergify bot merged commit 46fc21f into box:master Feb 24, 2025
6 checks passed
@psatala-box psatala-box deleted the add-no-items-renderer-prop-to-content-explorer-modal-container branch February 24, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants