Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 282 Bytes

StatusBox.md

File metadata and controls

20 lines (13 loc) · 282 Bytes

Status Box

This is used to display an error on the browser page.

Props:

  1. status = the error object that might be returned from a promise

Example

import { StatusBox } from 'simple-widgets';

try {
    ...
} catch (err) {
    <StatusBox status={err} />
}