"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",r="NiceErrorBoundary",o="Error boundary component for catching React errors.",t="feedback",n="1.0.0",c="stable",s=[{name:"children",type:"React.ReactNode",required:!0,description:"Child components"},{name:"fallback",type:"React.ReactNode | ((error: Error, reset: () => void) => React.ReactNode)",description:"Fallback UI"},{name:"onError",type:"(error: Error, errorInfo: ErrorInfo) => void",description:"Error callback"},{name:"onReset",type:"() => void",description:"Reset callback"},{name:"resetKeys",type:"any[]",description:"Keys that trigger reset"},{name:"showDetails",type:"boolean",default:"false",description:"Show error details"}],a=[{title:"Error Boundary",description:"Catch errors",code:`<NiceErrorBoundary
  fallback={(error, reset) => (
    <div>
      <h2>Something went wrong</h2>
      <button onClick={reset}>Try again</button>
    </div>
  )}
  onError={logError}
>
  <MyComponent />
</NiceErrorBoundary>`}],i={keyboard:["Tab to reset action"],aria:["Error region","Error description"]},d=["NiceResult","NiceEmptyState"],l={$schema:e,name:r,description:o,category:t,since:n,status:c,props:s,examples:a,accessibility:i,seeAlso:d};exports.$schema=e;exports.accessibility=i;exports.category=t;exports.default=l;exports.description=o;exports.examples=a;exports.name=r;exports.props=s;exports.seeAlso=d;exports.since=n;exports.status=c;
