DocSpace-client/packages/shared/components/error-container/README.md

23 lines
952 B
Markdown
Raw Normal View History

2019-07-05 09:35:34 +00:00
# ErrorContainer
Used to display full page error
### Usage
2019-07-05 09:35:34 +00:00
```js
import ErrorContainer from "@docspace/common/components/ErrorContainer";
```
```jsx
2019-07-05 09:35:34 +00:00
<ErrorContainer>Some error has happened</ErrorContainer>
```
#### Properties
| Props | Type | Required | Values | Default | Description |
| ----------- | :------------: | :------: | :----: | :-----: | ------------------------------------------------------ |
| `children` | `any` | - | - | - | If you need insert description of error or some action |
| `className` | `string` | - | - | - | Accepts class |
| `id` | `string` | - | - | - | Accepts id |
| `style` | `obj`, `array` | - | - | - | Accepts css style |