6bd751957c
CI Pipeline / test (20) (pull_request) Successful in 3m0s
CI Pipeline / test (18) (pull_request) Successful in 3m18s
CI Pipeline / e2e (firefox) (pull_request) Successful in 3m20s
CI Pipeline / e2e (chromium) (pull_request) Successful in 3m54s
CI Pipeline / e2e (webkit) (pull_request) Successful in 3m41s
CI Pipeline / performance (pull_request) Successful in 3m3s
CI Pipeline / visual-regression (pull_request) Successful in 7m12s
CI Pipeline / storybook (pull_request) Successful in 1m29s
CI Pipeline / lint (pull_request) Failing after 1m7s
CI Pipeline / build (pull_request) Successful in 1m20s
22 lines
586 B
JavaScript
22 lines
586 B
JavaScript
import ErrorBoundary from "../app/components/ErrorBoundary";
|
|
|
|
export default {
|
|
title: "Components/ErrorBoundary",
|
|
component: ErrorBoundary,
|
|
parameters: {
|
|
layout: "centered",
|
|
docs: {
|
|
description: {
|
|
component:
|
|
"An error boundary component that catches JavaScript errors in its child component tree. Displays a fallback UI when errors occur and logs error information for debugging.",
|
|
},
|
|
},
|
|
},
|
|
argTypes: {
|
|
children: {
|
|
control: { type: "text" },
|
|
description: "Child components to wrap with error boundary",
|
|
},
|
|
},
|
|
};
|