Components
Tooltip
Code

Tooltip

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

Tooltip component

Parameters

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

Returns

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

Example

<Tooltip text="Text">
  <button>i</button>
</Tooltip>
import React from 'react'
import { Tooltip } from '@vtex/shoreline-components'
export default function App() { return (<><Tooltip text="Text">  <button>i</button></Tooltip></>)}

Defined in

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