| 1 |
import { Button, EmptyState, EmptyStateBody, EmptyStateActions, EmptyStateFooter } from '@patternfly/react-core'; |
| 2 |
import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon'; |
| 3 |
|
| 4 |
export const EmptyStateBasic: React.FunctionComponent = () => ( |
| 5 |
<EmptyState titleText="Empty state" headingLevel="h4" icon={CubesIcon}> |
| 6 |
<EmptyStateBody> |
| 7 |
This represents the empty state pattern in PatternFly. Hopefully it's simple enough to use but flexible enough to |
| 8 |
meet a variety of needs. |
| 9 |
</EmptyStateBody> |
| 10 |
<EmptyStateFooter> |
| 11 |
<EmptyStateActions> |
| 12 |
<Button variant="primary">Primary action</Button> |
| 13 |
</EmptyStateActions> |
| 14 |
<EmptyStateActions> |
| 15 |
<Button variant="link">Multiple</Button> |
| 16 |
<Button variant="link">Action Buttons</Button> |
| 17 |
<Button variant="link">Can</Button> |
| 18 |
<Button variant="link">Go here</Button> |
| 19 |
<Button variant="link">In the secondary</Button> |
| 20 |
<Button variant="link">Action area</Button> |
| 21 |
</EmptyStateActions> |
| 22 |
</EmptyStateFooter> |
| 23 |
</EmptyState> |
| 24 |
); |