forked from patternfly/patternfly-react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButtonStateful.tsx
More file actions
31 lines (30 loc) · 1005 Bytes
/
ButtonStateful.tsx
File metadata and controls
31 lines (30 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { Button, Flex } from '@patternfly/react-core';
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon';
export const ButtonStateful: React.FunctionComponent = () => (
<Flex>
<div>
<div>
<strong>Read</strong>
</div>
<Button variant="stateful" state="read" icon={<RhUiNotificationFillIcon />}>
10 <span className="pf-v6-screen-reader">items</span>
</Button>
</div>
<div>
<div>
<strong>Unread</strong>
</div>
<Button variant="stateful" state="unread" icon={<RhUiNotificationFillIcon />}>
10 <span className="pf-v6-screen-reader">unread items</span>
</Button>
</div>
<div>
<div>
<strong>Attention</strong>
</div>
<Button variant="stateful" state="attention" icon={<RhUiNotificationFillIcon />}>
10 <span className="pf-v6-screen-reader">unread items, needs attention</span>
</Button>
</div>
</Flex>
);