Skip to content

Commit b9670fe

Browse files
committed
Added Error State Example.
1 parent ea521ba commit b9670fe

3 files changed

Lines changed: 27 additions & 64 deletions

File tree

module.js

Lines changed: 0 additions & 64 deletions
This file was deleted.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
# Sidenav top-level section
3+
# should be the same for all markdown files
4+
section: extensions
5+
# Sidenav secondary level section
6+
# should be the same for all markdown files
7+
id: extended-components
8+
# Tab (react | react-demos | html | html-demos | design-guidelines | accessibility)
9+
source: react
10+
# If you use typescript, the name of the interface to display props for
11+
# These are found through the sourceProps function provided in patternfly-docs.source.js
12+
propComponents: ['ErrorState']
13+
---
14+
15+
import { ErrorState } from "@patternfly/extended-components";
16+
17+
## Basic usage
18+
19+
### Example
20+
21+
```js file="./ErrorStateExample.tsx"
22+
23+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import React from 'react';
2+
import { ErrorState } from '@patternfly/extended-components';
3+
4+
export const BasicExample: React.FunctionComponent = () => <ErrorState errorTitle='A Basic Error' errorDescription='The following is an example of a basic error' />;

0 commit comments

Comments
 (0)