()
| 1 | import { Dropdown, IconButton, Image, PageHeader } from 'gestalt'; |
| 2 | |
| 3 | export default function IncludeImageExample() { |
| 4 | return ( |
| 5 | <PageHeader |
| 6 | dropdownAccessibilityLabel="Additional options" |
| 7 | primaryAction={{ |
| 8 | component: ( |
| 9 | <IconButton |
| 10 | accessibilityLabel="Refresh page" |
| 11 | icon="refresh" |
| 12 | iconColor="darkGray" |
| 13 | onClick={() => {}} |
| 14 | size="lg" |
| 15 | tooltip={{ text: 'Refresh page', idealDirection: 'up' }} |
| 16 | /> |
| 17 | ), |
| 18 | dropdownItems: [ |
| 19 | <Dropdown.Item |
| 20 | key="refresh" |
| 21 | onSelect={() => {}} |
| 22 | option={{ value: 'Refresh page', label: 'Refresh page' }} |
| 23 | />, |
| 24 | ], |
| 25 | }} |
| 26 | subtext="Last updated 5 hours ago" |
| 27 | thumbnail={ |
| 28 | <Image |
| 29 | alt="square" |
| 30 | fit="cover" |
| 31 | naturalHeight={1} |
| 32 | naturalWidth={1} |
| 33 | src="https://i.ibb.co/LQc8ynn/image.png" |
| 34 | /> |
| 35 | } |
| 36 | title="Pinterest app" |
| 37 | /> |
| 38 | ); |
| 39 | } |
nothing calls this directly
no outgoing calls
no test coverage detected