Components
TooltipArrow
Code

TooltipArrow

TooltipArrow(props): null | ReactElement<any, string | JSXElementConstructor<any>>

Arrow of the Tooltip

Parameters

NameType
propsTooltipArrowProps & RefAttributes<HTMLDivElement (opens in a new tab)>

Returns

null | ReactElement<any, string | JSXElementConstructor<any>>

Example

example.tsx
<TooltipProvider>
  <TooltipPopover>
    <TooltipAnchor />
  </TooltipPopover>
</TooltipProvider>
import React from 'react'
import { TooltipProvider, TooltipPopover, TooltipAnchor } from '@vtex/shoreline-components'

export default function App() {
return (<>
<TooltipProvider>
<TooltipPopover>
<TooltipAnchor />
</TooltipPopover>
</TooltipProvider>
</>
)}

Defined in

node_modules/.pnpm/@types+react@18.2.14/node_modules/@types/react/ts5.0/index.d.ts:355