| 1 |
import { Flex } from '@patternfly/react-core'; |
| 2 |
import { Tile } from '@patternfly/react-core/deprecated'; |
| 3 |
import RhUiNotificationFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-notification-fill-icon'; |
| 4 |
|
| 5 |
export const TileWithExtraContent: React.FunctionComponent = () => ( |
| 6 |
<div role="listbox" aria-label="Tiles with extra content"> |
| 7 |
<Flex> |
| 8 |
<Flex flex={{ default: 'flex_1' }}> |
| 9 |
<Tile title="Default" icon={<RhUiNotificationFillIcon />} isStacked isSelected={false}> |
| 10 |
This is really really long subtext that goes on for so long that it has to wrap to the next line. This is |
| 11 |
really really long subtext that goes on for so long that it has to wrap to the next line. |
| 12 |
</Tile> |
| 13 |
</Flex> |
| 14 |
<Flex flex={{ default: 'flex_1' }}> |
| 15 |
<Tile title="Selected" icon={<RhUiNotificationFillIcon />} isStacked isSelected> |
| 16 |
This is really really long subtext that goes on for so long that it has to wrap to the next line. |
| 17 |
</Tile> |
| 18 |
</Flex> |
| 19 |
<Flex flex={{ default: 'flex_1' }}> |
| 20 |
<Tile title="Disabled" icon={<RhUiNotificationFillIcon />} isStacked isDisabled isSelected={false}> |
| 21 |
Subtext goes here |
| 22 |
</Tile> |
| 23 |
</Flex> |
| 24 |
</Flex> |
| 25 |
</div> |
| 26 |
); |