Skip to content

Commit

Permalink
Merge e7a1584 into 1f1b451
Browse files Browse the repository at this point in the history
  • Loading branch information
boaz0 committed Feb 24, 2019
2 parents 1f1b451 + e7a1584 commit 334b0fc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { EmptyState, EmptyStateBody, EmptyStateSecondaryActions } from '@patternfly/react-core';
import Simple from './examples/SimpleEmptyState';
import IconSize from './examples/IconSize';

export default {
title: 'EmptyState',
Expand All @@ -8,6 +9,10 @@ export default {
{
component: Simple,
title: 'Simple'
},
{
component: IconSize,
title: 'Icon size'
}
]
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import React from 'react';
import {
Title,
Button,
EmptyState,
EmptyStateIcon,
EmptyStateBody,
EmptyStateSecondaryActions
} from '@patternfly/react-core';
import { CommentDollarIcon } from '@patternfly/react-icons';

class IconSize extends React.Component {
render() {
return (
<EmptyState>
<EmptyStateIcon icon={CommentDollarIcon} size="xl" />
<Title size="xl">Title</Title>
<EmptyStateBody>This represents an empty state pattern in Patternfly 4.</EmptyStateBody>
<Button variant="primary">Primary Action</Button>
<EmptyStateSecondaryActions>
<Button variant="link">Secondary Action</Button>
</EmptyStateSecondaryActions>
</EmptyState>
);
}
}

export default IconSize;

0 comments on commit 334b0fc

Please sign in to comment.