Skip to content

Error message

Error

The component that can be used to display any global errors on the page.

jsx
import Error from '@semcore/ui/errors';
<Error />;

ErrorsProps

& {...}
NameTypeDescription
iconstring | React.ReactNode Error icon

Error.Title

Error title. Extends for <Box/>.

jsx
import Error from '@semcore/ui/errors';
<Error.Title />;

Error.Description

Error description. Extends for <Box/>.

jsx
import Error from '@semcore/ui/errors';
<Error.Description />;

Error.Controls

Container for controls. Extends for <Box/>.

jsx
import Error from '@semcore/ui/errors';
<Error.Controls />;

AccessDenied

Template for the 403 error: user has no access to the page.

jsx
import { AccessDenied } from '@semcore/ui/errors';
<AccessDenied />;

AccessDeniedProps

& {...}
NameTypeDescription
homeLinkstring href of the home link
titleTag"h1" | "h2" | "h3" | "h4" | "h5" | "p" HTML tag of the error title

Maintenance

Template for the global state for the period of technical works.

jsx
import { Maintenance } from '@semcore/ui/errors';
<Maintenance />;

MaintenanceProps

& {...}
NameTypeDescription
toolNamestring Tool name
homeLinkstring href of the home link
titleTag"h1" | "h2" | "h3" | "h4" | "h5" | "p" HTML tag of the error title

PageError

Template for the 500 error, caused by some technical problems.

jsx
import { PageError } from '@semcore/ui/errors';
<PageError />;

PageErrorProps

& {...}
NameTypeDescription
onClick(e: React.MouseEvent) => void Page reloading button click handler
titleTag"h1" | "h2" | "h3" | "h4" | "h5" | "p" HTML tag of the error title

PageNotFound

Template for the 404 error: page not found.

jsx
import { PageNotFound } from '@semcore/ui/errors';
<PageNotFound />;

PageNotFoundProps

& {...}
NameTypeDescription
homeLinkstring href of the home link
titleTag"h1" | "h2" | "h3" | "h4" | "h5" | "p" HTML tag of the error title

ProjectNotFound

Template for the 404 error, but for a project page.

jsx
import { ProjectNotFound } from '@semcore/ui/errors';
<ProjectNotFound />;

ProjectNotFoundProps

& {...}
NameTypeDescription
projectsLinkstring Link to the projects
contactsLinkstring
supportTeamLinkstring
titleTag"h1" | "h2" | "h3" | "h4" | "h5" | "p" HTML tag of the error title

Released under the MIT License.

Released under the MIT License.