result

A collection of react components using antd to show 403, 404, 500 errors and generic errors

Installation#

npm install @iqmetrix/result

Props#

NameTypeRequiredDefault
responsePartial<Response> or Stringno{status: null, statusText: string}
statusCoceStringno'error'
colsAntdCols Objectnoxs={24} sm={20} md={20} lg={16} xl={12}

It also acepts the antd/result props such as (status, title, subTitle, icon, ...).

Examples#

<Result statusCode="403" />
<Result statusCode="404" />
<Result statusCode="500" response="Additional information from the server" />
<Result response={{status: 409, statusText:"This id already exists"}} />
<Result response='You did something wrong' />

You can find more examples on the storybook

Sources#

Last updated on by Paulo Andrade