Tooltip
Attaches a popover to a target component. Built with DynamicPopover.
import { Tooltip, TooltipProps } from '@ensdomains/thorin'
<divstyle={{width: '100%',display: 'flex',flexDirection: 'column',alignItems: 'center',gap: 20,}}><TooltipadditionalGap={0}content={<div>Content</div>}mobilePlacement="top"mobileWidth={250}placement="top"targetId="buttonIdTop"width={250}><Buttonid="buttonIdTop"psuedoDisabledshadowlessshouldShowTooltipIndicatorstyle={{ width: 250 }}>Top</Button></Tooltip><Tooltipcontent={<div>Content</div>}mobilePlacement="left"mobileWidth={50}placement="left"targetId="buttonIdLeft"width={100}><Buttonid="buttonIdLeft"psuedoDisabledshadowlessshouldShowTooltipIndicatorstyle={{ width: 250 }}>Left</Button></Tooltip><TooltipadditionalGap={0}content={<div>Content</div>}mobilePlacement="bottom"mobileWidth={250}openplacement="bottom"targetId="buttonIdBottom"width={250}><Buttonid="buttonIdBottom"psuedoDisabledshadowlessshouldShowTooltipIndicatorstyle={{ width: 250 }}>Bottom</Button></Tooltip><Tooltipcontent={<div>Content</div>}mobilePlacement="right"mobileWidth={50}openplacement="right"targetId="buttonIdRight"width={100}><Buttonid="buttonIdRight"psuedoDisabledshadowlessshouldShowTooltipIndicatorstyle={{ width: 250 }}>Right</Button></Tooltip></div>
name | type | default | description |
---|---|---|---|
background | any | background | The background color for the tooltip |
children* Required | ReactElement<any, string | JSXElementConstructor<any>> | - | The anchor element for the popover |
content | ReactNode | - | A text or component containg the content of the popover. |