box / box/box-ui-elements

Add the ability to customize the preview error

Open
#3,208 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
551
Forks
351
Avg merge
5d 9h
Merged PRs (30d)
31

Description

For our implementation we would like to add a support message under the error message (rendered by ``) so that the user has some recourse.

This could be done through a render prop on the `ContentPreview` component, providing the `defaultRender` or `errorCode` as arguments; much like the `renderCustomActionButtons` on `.

**Example:**
```jsx
(
<>
{defaultRender()}

Please contact support at +1 (234) 567-8910



)}
/>
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.