MCPcopy Create free account
hub / github.com/pinterest/gestalt / Example

Function Example

docs/examples/buttonlink/iconTooltipToExplainDo.tsx:3–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import { Box, ButtonLink, Flex, IconButton, Tooltip } from 'gestalt';
2
3export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected