()
| 1 | import { Box, ButtonLink, Flex, IconButton, Tooltip } from 'gestalt'; |
| 2 | |
| 3 | export default function Example() { |
| 4 | return ( |
| 5 | <Flex alignItems="center" height="100%" justifyContent="center" width="100%"> |
| 6 | <ButtonLink |
| 7 | color="red" |
| 8 | disabled |
| 9 | href="https://www.pinterest.com/" |
| 10 | onClick={({ event }) => event.preventDefault()} |
| 11 | size="lg" |
| 12 | text="Visit Pinterest" |
| 13 | /> |
| 14 | <Box> |
| 15 | <Tooltip text="You need to fill in a username to create an account"> |
| 16 | <IconButton |
| 17 | accessibilityLabel="Additional info." |
| 18 | bgColor="white" |
| 19 | icon="info-circle" |
| 20 | iconColor="gray" |
| 21 | size="lg" |
| 22 | /> |
| 23 | </Tooltip> |
| 24 | </Box> |
| 25 | </Flex> |
| 26 | ); |
| 27 | } |
nothing calls this directly
no outgoing calls
no test coverage detected