| 1 |
import { Button, Flex } from '@patternfly/react-core'; |
| 2 |
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon'; |
| 3 |
|
| 4 |
export const ButtonStateful: React.FunctionComponent = () => ( |
| 5 |
<Flex> |
| 6 |
<div> |
| 7 |
<div> |
| 8 |
<strong>Read</strong> |
| 9 |
</div> |
| 10 |
<Button variant="stateful" state="read" icon={<RhUiNotificationFillIcon />}> |
| 11 |
10 <span className="pf-v6-screen-reader">items</span> |
| 12 |
</Button> |
| 13 |
</div> |
| 14 |
<div> |
| 15 |
<div> |
| 16 |
<strong>Unread</strong> |
| 17 |
</div> |
| 18 |
<Button variant="stateful" state="unread" icon={<RhUiNotificationFillIcon />}> |
| 19 |
10 <span className="pf-v6-screen-reader">unread items</span> |
| 20 |
</Button> |
| 21 |
</div> |
| 22 |
<div> |
| 23 |
<div> |
| 24 |
<strong>Attention</strong> |
| 25 |
</div> |
| 26 |
<Button variant="stateful" state="attention" icon={<RhUiNotificationFillIcon />}> |
| 27 |
10 <span className="pf-v6-screen-reader">unread items, needs attention</span> |
| 28 |
</Button> |
| 29 |
</div> |
| 30 |
</Flex> |
| 31 |
); |