| 1 |
import { Tile } from '@patternfly/react-core/deprecated'; |
| 2 |
import PlusIcon from '@patternfly/react-icons/dist/esm/icons/plus-icon'; |
| 3 |
|
| 4 |
export const TileWithIcon: React.FunctionComponent = () => ( |
| 5 |
<div role="listbox" aria-label="Tiles with icon"> |
| 6 |
<Tile title="Default" icon={<PlusIcon />} isSelected={false}> |
| 7 |
Subtext goes here |
| 8 |
</Tile>{' '} |
| 9 |
<Tile title="Selected" icon={<PlusIcon />} isSelected> |
| 10 |
Subtext goes here |
| 11 |
</Tile>{' '} |
| 12 |
<Tile title="Disabled" icon={<PlusIcon />} isDisabled isSelected={false}> |
| 13 |
Subtext goes here |
| 14 |
</Tile> |
| 15 |
</div> |
| 16 |
); |