{
  "id": "uilib/components/global-error",
  "name": "GlobalError (404)",
  "description": "The GlobalError is a simple component to integrate where a 404 or 500 message has to be shown.",
  "group": "components",
  "slug": "/uilib/components/global-error/",
  "props": [
    {
      "name": "statusCode",
      "doc": "Defines a status code as a string. When `404` or `500` is given, predefined `text` and `title` will be shown. Defaults to `404`.",
      "type": [
        "404",
        "500",
        "string"
      ],
      "status": "optional",
      "defaultValue": null
    },
    {
      "name": "status",
      "doc": "Defines a status code as a string. When `404` or `500` is given, predefined `text` and `title` will be shown. Defaults to `404`. This prop is deprecated and will be removed in v11, please use `statusCode` instead.",
      "type": [
        "404",
        "500",
        "string"
      ],
      "status": "deprecated",
      "defaultValue": null
    },
    {
      "name": "title",
      "doc": "Overwrites the default title for the provided `statusCode`.",
      "type": "React.ReactNode",
      "status": "optional",
      "defaultValue": null
    },
    {
      "name": "text",
      "doc": "Overwrites the default text for the provided `statusCode`.",
      "type": "React.ReactNode",
      "status": "optional",
      "defaultValue": null
    },
    {
      "name": "code",
      "doc": "Overwrites the default error message code text `Feilmeldings-kode:`. . This prop is deprecated and will be removed in v11, please use `errorMessageCode` instead.",
      "type": "React.ReactNode",
      "status": "deprecated",
      "defaultValue": null
    },
    {
      "name": "errorMessageCode",
      "doc": "Overwrites the default error message code text `Feilmeldings-kode: %statusCode`.",
      "type": "React.ReactNode",
      "status": "optional",
      "defaultValue": null
    },
    {
      "name": "help",
      "doc": "Overwrites the default additional help text `Her er noen lenker som kanskje kan hjelpe:`. This text is only rendered when `links` are provided.",
      "type": "React.ReactNode",
      "status": "optional",
      "defaultValue": null
    },
    {
      "name": "links",
      "doc": "Provide an array with objects `{ text: \"Text\", url: \"https://...\" }` to display a list of anchor links.",
      "type": [
        "Array<GlobalErrorLink>"
      ],
      "status": "optional",
      "defaultValue": null
    },
    {
      "name": "center",
      "doc": "If true, it will use `80vh` as the height and center its content.",
      "type": "boolean",
      "status": "optional",
      "defaultValue": null
    },
    {
      "name": "skeleton",
      "doc": "If set to `true`, an overlaying skeleton with animation will be shown.",
      "type": "boolean",
      "status": "optional",
      "defaultValue": null
    },
    {
      "name": "locale",
      "doc": "Set a [supported locale](/uilib/usage/customisation/localization/) if needed.",
      "type": "string",
      "status": "optional",
      "defaultValue": null
    },
    {
      "name": "children",
      "doc": "To display additional related content, like useful links etc.",
      "type": "React.Node",
      "status": "optional",
      "defaultValue": null
    }
  ],
  "events": [],
  "related": [
    "Space"
  ],
  "checksum": "5e0c84ec243d98d87199fc1baecfb9237d38a56f96fe572930e8bb5534ada9cc",
  "source": {
    "repo": "https://github.com/dnbexperience/eufemia",
    "file": "packages/dnb-eufemia/src/components/global-error/index.ts",
    "permalink": "https://github.com/dnbexperience/eufemia/blob/main/packages/dnb-eufemia/src/components/global-error/index.ts"
  },
  "sources": {
    "entry": {
      "local": "src/docs/uilib/components/global-error.mdx",
      "public": "https://c301bb6f.eufemia-e25.pages.dev/uilib/components/global-error/"
    },
    "props": {
      "local": "src/docs/uilib/components/global-error/properties.mdx",
      "public": "https://c301bb6f.eufemia-e25.pages.dev/uilib/components/global-error/properties/"
    },
    "events": null,
    "demos": {
      "local": "src/docs/uilib/components/global-error/demos.mdx",
      "public": "https://c301bb6f.eufemia-e25.pages.dev/uilib/components/global-error/demos/"
    }
  },
  "version": "0.0.0-development",
  "generatedAt": "2025-12-18T11:12:43.955Z",
  "schemaVersion": 1
}
